Lecrapouille / Highway

[Application][WIP] Open-source simulator for autonomous driving research.
GNU General Public License v3.0
2 stars 1 forks source link

Create a class Selection for selecting a menu or sub gui #5

Open Lecrapouille opened 1 year ago

Lecrapouille commented 1 year ago

Factorize src/Application/GUILLoadSimulMenu and GUIMainMenu by adding a class Selection. Use internally std::vector<std::pair<string, T>, std::function<void()> with m_cursor +/- 1 and mtehod onPresseEnter to do: onPresseEnter([](){m_application.push(xxx);})