Lua Scripting (#1334)
Closes #83 Fixes #1309 Fixes #1287 Fixes #1129 (actually fixed now)
This commit is contained in:
24
src/lua/bindings/gui/input_int.cpp
Normal file
24
src/lua/bindings/gui/input_int.cpp
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user