32 void AddInline(ImU32 color, ImVec2 text_size,
const char* text,
const char* text_end);
34 void AddWrapped(ImU32 color,
float wrap_width,
const char* text,
const char* text_end);
36 void AddMultiline(ImU32 color,
float wrap_width,
const char* text,
const char* text_end);
38 void AddRectWrapped(ImVec2
size, ImVec2 spacing,
float wrap_width, ImVec2& out_rect_min);
49void LoadingIndicatorCircle(
const char* label,
const float indicator_radius,
const ImVec4& main_color,
const ImVec4& backdrop_color,
const int circle_count,
const float speed);
52void DrawImageRotated(ImTextureID tex_id, ImVec2 center, ImVec2 size,
float angle);
55ImVec2
DrawColorMarkedText(ImDrawList* drawlist, ImVec2 text_cursor, ImVec4 default_color,
float override_alpha,
float wrap_width, std::string
const& line);
78Ogre::TexturePtr
FetchIcon(
const char* name);
95bool ImButtonHoldToConfirm(
const std::string& btn_idstr,
const bool smallbutton,
const float time_limit);
102void ImHyperlink(std::string url, std::string caption =
"",
bool tooltip =
true);
Central state/object manager and communications hub.
Quake-style console variable, defined in RoR.cfg or crated via Console UI and scripts.
Wrapper for classic c-string (local buffer) Refresher: strlen() excludes '\0' terminator; strncat() A...
void ImDrawEventHighlighted(events input_event)
void ImDummyHyperlink(std::string caption)
Looks and behaves (mouuse cursor) like a hypertext, but doesn't open URL.
ImVec2 DrawColorMarkedText(ImDrawList *drawlist, ImVec2 text_cursor, ImVec4 default_color, float override_alpha, float wrap_width, std::string const &line)
Draw multiline text with '#rrggbb' color markers. Returns total text size.
void DrawGFloatBox(CVar *cvar, const char *label)
void DrawGTextEdit(CVar *cvar, const char *label, Str< 1000 > &buf)
void ImHyperlink(std::string url, std::string caption="", bool tooltip=true)
Full-featured hypertext with tooltip showing full URL.
ImDrawList * GetImDummyFullscreenWindow(const std::string &name="RoR_TransparentFullscreenWindow")
bool ImDrawEventHighlightedButton(events input_event, bool *btn_hovered=nullptr, bool *btn_active=nullptr)
void DrawGIntSlider(CVar *cvar, const char *label, int v_min, int v_max)
void ImTextWrappedColorMarked(std::string const &text)
Prints multiline text with '#rrggbb' color markers. Behaves like ImGui::Text* functions.
void DrawGIntBox(CVar *cvar, const char *label)
void ImTerminateComboboxString(std::string &target)
ImVec2 ImCalcEventHighlightedSize(events input_event)
bool GetScreenPosFromWorldPos(Ogre::Vector3 const &world_pos, ImVec2 &out_screen)
void DrawImageRotated(ImTextureID tex_id, ImVec2 center, ImVec2 size, float angle)
Add rotated textured quad to ImDrawList, source: https://github.com/ocornut/imgui/issues/1982#issueco...
void ImAddItemToComboboxString(std::string &target, std::string const &item)
void ImDrawModifierKeyHighlighted(OIS::KeyCode key)
void DrawGFloatSlider(CVar *cvar, const char *label, float v_min, float v_max)
bool DrawGCheckbox(CVar *cvar, const char *label)
std::string StripColorMarksFromText(std::string const &text)
void DrawGIntCheck(CVar *cvar, const char *label)
bool DrawGCombo(CVar *cvar, const char *label, const char *values)
Ogre::TexturePtr FetchIcon(const char *name)
void LoadingIndicatorCircle(const char *label, const float indicator_radius, const ImVec4 &main_color, const ImVec4 &backdrop_color, const int circle_count, const float speed)
Draws animated loading spinner.
bool ImMoveTextInputCursorToEnd(const char *label)
bool ImButtonHoldToConfirm(const std::string &btn_idstr, const bool smallbutton, const float time_limit)
Helper for drawing multiline wrapped & colored text.
ImVec2 size
Accumulated text size.
void AddInline(ImU32 color, ImVec2 text_size, const char *text, const char *text_end)
No wrapping or trimming.
void AddRectWrapped(ImVec2 size, ImVec2 spacing, float wrap_width, ImVec2 &out_rect_min)
Reserves space for i.e. an image. wrap_width=-1.f disables wrapping.
void AddWrapped(ImU32 color, float wrap_width, const char *text, const char *text_end)
Wraps entire input. Trims leading blanks on extra lines. wrap_width=-1.f disables wrapping.
void AddMultiline(ImU32 color, float wrap_width, const char *text, const char *text_end)
Wraps substrings separated by blanks. wrap_width=-1.f disables wrapping.
ImVec2 cursor
Next draw position, screen space.
ImVec2 origin
First draw position, screen space.