implement run at startup function
This commit is contained in:
2024-08-23 15:23:22 +02:00
parent 6c5e31765d
commit b657472d7f
2 changed files with 6 additions and 4 deletions
+5 -4
View File
@@ -19,9 +19,10 @@ p_slider("slider", "Slider", Color(Color::White), Color(Color::Black), 0, 100, 5
void Test_Sim::timer()
{
// Timer function
// p_button.click();
// p_combobox.set_selected(1);
// p_checkbox.toggle_selected("Option 2");
// p_slider.set_value(75);
}
void Test_Sim::run_at_startup()
{
// Run at startup
std::cout << "Test_Sim started" << std::endl;
}
+1
View File
@@ -5,6 +5,7 @@ class Test_Sim : public Simulator_base {
public:
Test_Sim();
void timer() override;
void run_at_startup() override;
private:
UI_button p_button;
UI_combobox p_combobox;