Skip to content

Commit

Permalink
📜 Scripting: Added ImGui::TextDisabled()
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp authored and Petr Ohlídal committed Aug 31, 2021
1 parent a6a305b commit d7fde3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/main/scripting/ImGuiAngelscript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ void RoR::RegisterImGuiBindings(asIScriptEngine* engine)

// Widgets: Text
engine->RegisterGlobalFunction("void Text(const string&in)", asFUNCTIONPR([](const string& n) {
ImGui::TextUnformatted(n.c_str());
ImGui::Text(n.c_str());
}, (const string&), void), asCALL_CDECL);
engine->RegisterGlobalFunction("void TextDisabled(const string&in)", asFUNCTIONPR([](const string& n) {
ImGui::TextDisabled(n.c_str());
}, (const string&), void), asCALL_CDECL);
engine->RegisterGlobalFunction("void TextColored(color col, const string&in)", asFUNCTIONPR([](ColourValue c, const string& n) {
ImGui::TextColored(ImVec4(c.r, c.g, c.b, c.a), n.c_str());
Expand Down

0 comments on commit d7fde3a

Please # to comment.