 |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
6 #define DEBUG_MENU_FILE "debug_menu_init"
61 std::vector<BlamDebugMenuItem>
items;
90 std::vector<BlamDebugMenuItem>
items = std::vector<BlamDebugMenuItem>();
@ SDLK_BACKSPACE
Definition: SdlEmulationLayer.h:387
@ DebugMenu
Special widget. Used for the in-game debug menu.
@ Short
!< Represents a float.
Definition: globals.h:36
BlamColor GetColor()
Returns the evaluated color data.
Definition: ColorTransition.h:170
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
@ DataRoot
The root of all game engine data. Defaults to ./
@ SDLK_HOME
Definition: SdlEmulationLayer.h:477
@ Real
Definition: globals.h:35
@ Unknown
Indicates the font package has an unknown type. Should generally be considered an error.
void Initialize(BlamColor _c1, BlamColor _c2, float fade_duration, bool _loop)
Prepares data needed for the animation.
Definition: ColorTransition.h:132
BLAM float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: globals.cpp:403
void SetHidden(bool new_hidden) override
Sets the hidden state of the widget.
Definition: text.cpp:451
@ SDLK_UP
Definition: SdlEmulationLayer.h:485
bool boolean_value
The boolean value of the global.
Definition: globals.h:66
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:41
@ Int
Represents an int.
Definition: globals.h:40
@ SDLK_RETURN
Definition: SdlEmulationLayer.h:385
BlamGlobalType type
The type of the global.
Definition: globals.h:56
IMGUI_API bool CollapsingHeader(const char *label, ImGuiTreeNodeFlags flags=0)
Definition: imgui_widgets.cpp:5422
void Draw() override
Draws the widget on-screen.
Definition: text.cpp:53
@ TopLeft
The widget will be placed at the top-left of the screen.
BlamColor color
The text foreground color.
Definition: ui.h:522
@ SDLK_PAGEUP
Definition: SdlEmulationLayer.h:478
@ DebugMenuItem
Special widget. Represents an item within the debug menu.
@ SDLK_RIGHT
Definition: SdlEmulationLayer.h:482
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:34
Structure containing data for a game engine global.
Definition: globals.h:54
short short_value
The short value of the global.
Definition: globals.h:67
bool read_only
Whether or not the global is protected from modification.
Definition: globals.h:60
@ DefaultConfigs
Directory containing default configuration files. Defaults to ./content/blam/default_configs/
BLAM std::string GetGlobalTypeLabel(BlamGlobalType type)
Retrieves a string representation of a global's type, for use in UI.
Definition: globals.cpp:40
BLAM BlamEngineGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: globals.cpp:189
@ SDLK_LEFT
Definition: SdlEmulationLayer.h:483
@ Long
Represents a long.
Definition: globals.h:37
BLAM BlamResult RunCommandLine(std::string command_line)
Executed the provided string as a console command.
Definition: console.cpp:260
@ Boolean
Represents a boolean. Can be true or false.
Definition: globals.h:34
@ SDLK_DOWN
Definition: SdlEmulationLayer.h:484
std::string text
The text to display within this text widget.
Definition: ui.h:526
@ SDLK_TAB
Definition: SdlEmulationLayer.h:388
void Start()
Instructs the listener to start animating.
Definition: ColorTransition.h:156
int int_value
The int value of the global.
Definition: globals.h:69
BLAM void LogEventForce(std::string message)
Forcibly logs a message to the log and/or console.
Definition: aliases.cpp:262
BlamWidgetType
Enumerator listing possible UI widget types.
Definition: ui.h:60
@ DataRoot
The root of all user data. Defaults to BlamStrings::Utils::IO::GetEngineDataRoot().
float float_value
The float value of the global.
Definition: globals.h:70
std::string value_raw
The raw value of the global as a string.
Definition: globals.h:59
Class representing a Text widget.
Definition: ui.h:483
long long_value
The long value of the global.
Definition: globals.h:68