This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
YimMenu/src/lua/bindings/gui/input_int.cpp
maybegreat48 70efa40afe Lua Scripting (#1334)
Closes #83
Fixes #1309
Fixes #1287
Fixes #1129 (actually fixed now)
2023-06-06 09:40:40 +02:00

24 lines
314 B
C++

#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;
}
}