UI overlay float slider
This commit is contained in:
parent
15f85d6e10
commit
287a9b5762
2 changed files with 7 additions and 0 deletions
|
|
@ -568,6 +568,12 @@ namespace vks
|
||||||
return ImGui::InputFloat(caption, value, step, step * 10.0f, precision);
|
return ImGui::InputFloat(caption, value, step, step * 10.0f, precision);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool UIOverlay::sliderFloat(const char* caption, float* value, float min, float max)
|
||||||
|
{
|
||||||
|
ImGui::SliderFloat(caption, value, min, max);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool UIOverlay::comboBox(const char *caption, int32_t *itemindex, std::vector<std::string> items)
|
bool UIOverlay::comboBox(const char *caption, int32_t *itemindex, std::vector<std::string> items)
|
||||||
{
|
{
|
||||||
if (items.empty()) {
|
if (items.empty()) {
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,7 @@ namespace vks
|
||||||
bool header(const char* caption);
|
bool header(const char* caption);
|
||||||
bool checkBox(const char* caption, bool* value);
|
bool checkBox(const char* caption, bool* value);
|
||||||
bool inputFloat(const char* caption, float* value, float step, uint32_t precision);
|
bool inputFloat(const char* caption, float* value, float step, uint32_t precision);
|
||||||
|
bool sliderFloat(const char* caption, float* value, float min, float max);
|
||||||
bool comboBox(const char* caption, int32_t* itemindex, std::vector<std::string> items);
|
bool comboBox(const char* caption, int32_t* itemindex, std::vector<std::string> items);
|
||||||
void text(const char* formatstr, ...);
|
void text(const char* formatstr, ...);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue