fix(lua): input_float:get_value() was returning the wrong type (#1879)
This commit is contained in:
parent
93966dc3b1
commit
fb0fb191e7
@ -12,7 +12,7 @@ namespace lua::gui
|
|||||||
ImGui::InputFloat(m_text.c_str(), &m_value);
|
ImGui::InputFloat(m_text.c_str(), &m_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
int input_float::get_value()
|
float input_float::get_value()
|
||||||
{
|
{
|
||||||
return m_value;
|
return m_value;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ namespace lua::gui
|
|||||||
// Class: input_float
|
// Class: input_float
|
||||||
// Name: get_value
|
// Name: get_value
|
||||||
// Returns: float: Get the value currently written inside the input field.
|
// Returns: float: Get the value currently written inside the input field.
|
||||||
int get_value();
|
float get_value();
|
||||||
|
|
||||||
// Lua API: Function
|
// Lua API: Function
|
||||||
// Class: input_float
|
// Class: input_float
|
||||||
|
Reference in New Issue
Block a user