This commit is contained in:
Isuru Samarathunga
2025-09-22 23:23:06 +05:30
parent 0e7474d4e4
commit 70bf71d2da
2 changed files with 6 additions and 3 deletions

View File

@ -377,9 +377,6 @@ namespace ia::iae
VOID UI::Terminate()
{
for (auto &v : g_eventListeners)
delete v.second;
Rml::Shutdown();
}
@ -468,6 +465,11 @@ namespace ia::iae
{
g_eventListeners[handle]->AddClickListener(elementId, callback);
}
String UI::GetInputValue(IN INT32 index)
{
return g_mainDataModel.InputValues[index].c_str();
}
} // namespace ia::iae
namespace ia::iae

View File

@ -30,6 +30,7 @@ namespace ia::iae
STATIC VOID ShowWindow(IN Handle handle);
STATIC VOID HideWindow(IN Handle handle);
STATIC String GetInputValue(IN INT32 index);
STATIC VOID AddClickEvent(IN Handle handle, IN PCCHAR elementId, IN std::function<VOID()> callback);
STATIC VOID EnableDebugger();