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.
YimMenu/src/lua/bindings/gui/input_float.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
330 B
C++

#include "input_float.hpp"
namespace lua::gui
{
input_float::input_float(std::string text) :
base_text_element(text)
{
}
void input_float::draw()
{
ImGui::InputFloat(m_text.c_str(), &m_value);
}
int input_float::get_value()
{
return m_value;
}
void input_float::set_value(float val)
{
m_value = val;
}
}