Lua Scripting (#1334)

Closes #83
Fixes #1309
Fixes #1287
Fixes #1129 (actually fixed now)
This commit is contained in:
maybegreat48
2023-06-06 07:40:40 +00:00
committed by GitHub
parent a8750a30fb
commit 70efa40afe
202 changed files with 156693 additions and 839 deletions

View File

@ -0,0 +1,24 @@
#include "input_int.hpp"
namespace lua::gui
{
input_int::input_int(std::string text) :
base_text_element(text)
{
}
void input_int::draw()
{
ImGui::InputInt(m_text.c_str(), &m_value);
}
int input_int::get_value()
{
return m_value;
}
void input_int::set_value(int val)
{
m_value = val;
}
}