Setup internal menu components so they know what button was clicked on a menu function. Compacted the on click menu function for menu buttons.

Refactored some item convenience functions.
This commit is contained in:
2023-10-07 15:47:26 -05:00
parent 819f5845b1
commit 99c24b9c37
19 changed files with 148 additions and 94 deletions
+1 -6
View File
@@ -1,10 +1,5 @@
#pragma once
#include "olcUTIL_Geometry2D.h"
#include "MenuType.h"
#include <functional>
class Menu;
class Crawler;
#include "Menu.h"
class MenuComponent{
friend class Menu;