mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-05 00:00:42 -07:00
overlay: simplify various input controls by introducing new custom ImGUI widgets (#536)
## Description of change * Add a red `x` button to replace `Clear` button in binding tabs (Buttons/Analog/Lights). * Add a gray `x` button to replace `Clear` button in options tabs next to input widgets * Add helper for truncating text and adding ellipsis (...) to deal with text overflow in tables. * Reword some UI text for clarity
This commit is contained in:
@@ -88,6 +88,7 @@ namespace overlay::windows {
|
||||
Button *button,
|
||||
const GameAPI::Buttons::State button_state,
|
||||
const float button_velocity);
|
||||
void clear_button(Button &button);
|
||||
|
||||
void build_analogs(const std::string &name, std::vector<Analog> *analogs);
|
||||
void edit_analog_popup(Analog &analog);
|
||||
|
||||
Reference in New Issue
Block a user