fix(lua): input_float:get_value() was returning the wrong type (#1879)

This commit is contained in:
Quentin 2023-07-28 13:59:22 +02:00 committed by GitHub
parent 93966dc3b1
commit fb0fb191e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace lua::gui
ImGui::InputFloat(m_text.c_str(), &m_value);
}
int input_float::get_value()
float input_float::get_value()
{
return m_value;
}

View File

@ -21,7 +21,7 @@ namespace lua::gui
// Class: input_float
// Name: get_value
// Returns: float: Get the value currently written inside the input field.
int get_value();
float get_value();
// Lua API: Function
// Class: input_float