 |
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../../debug_ui.h"
20 char current_font[1024] =
"";
41 std::map<std::string, Font>::iterator it;
45 std::string font_id = it->first;
49 SetActiveFont(font_id);
63 Widgets::ShowHelpMarker(
"controls width (in px) each character will be drawn with\r\n\r\nonly applies when monospaced is set to true");
69 std::string font_id =
font->id;
72 SetActiveFont(font_id);
82 memcpy(¤t_font, font_id.c_str(),
IM_ARRAYSIZE(current_font));
BLAM HRESULT ReloadFont(std::string id)
Reloads all data for the specified font.
Definition: fonts.cpp:867
~FontEditor()
Empty destructor.
Definition: font_editor.hpp:31
Class for the Font Editor.
Definition: font_editor.hpp:16
IMGUI_API bool Checkbox(const char *label, bool *v)
Definition: imgui_widgets.cpp:974
BLAM std::map< std::string, Font > * GetFontList()
Retrieves the list of loaded fonts.
Definition: fonts.cpp:835
IMGUI_API void End()
Definition: imgui.cpp:6016
FontEditor()
Empty constructor.
Definition: font_editor.hpp:26
BLAM Font * GetFont(std::string id)
Retrieves a font from the list of loaded fonts.
Definition: fonts.cpp:806
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
void SetActiveFont(std::string font_id)
Definition: font_editor.hpp:80
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
IMGUI_API bool BeginCombo(const char *label, const char *preview_value, ImGuiComboFlags flags=0)
Definition: imgui_widgets.cpp:1416
IMGUI_API bool Selectable(const char *label, bool selected=false, ImGuiSelectableFlags flags=0, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:5469
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
Structure to contain data for a Font.
Definition: fonts.h:70
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
IMGUI_API void EndCombo()
Definition: imgui_widgets.cpp:1522
IMGUI_API bool DragShort(const char *label, short *v, float v_speed=1.0f, short v_min=0, short v_max=0, const char *format="%d")
Definition: imgui_extensions.cpp:3
Legacy namespace to contain data for the legacy ImGUI console.
Definition: ui.h:14
io.Fonts->AddFontFromMemoryCompressedTTF(compressed_data, compressed_data_size, size_pixels,...) font
Definition: README.txt:86
void Draw()
Draws the contents of the group.
Definition: font_editor.hpp:33
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644