Starting work on moving GUI to event system (doesnt compile)
This commit is contained in:
parent
f1a855edc3
commit
ef7dfcef05
69 changed files with 4296 additions and 3709 deletions
15
src/GUIStuff/ElementHelpers/RadioButtonHelpers.cpp
Normal file
15
src/GUIStuff/ElementHelpers/RadioButtonHelpers.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "RadioButtonHelpers.hpp"
|
||||
#include "../Elements/RadioButton.hpp"
|
||||
#include "LayoutHelpers.hpp"
|
||||
#include "TextLabelHelpers.hpp"
|
||||
|
||||
namespace GUIStuff { namespace ElementHelpers {
|
||||
|
||||
void radio_button_field(GUIManager& gui, const char* id, std::string_view name, const std::function<bool()>& isTicked, const std::function<void()>& onClick) {
|
||||
left_to_right_line_layout(gui, [&]() {
|
||||
gui.element<RadioButton>(id, isTicked, onClick);
|
||||
text_label(gui, name);
|
||||
});
|
||||
}
|
||||
|
||||
}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue