Widget Example added
This commit is contained in:
parent
b2f5c0193a
commit
f3bc272eae
5 changed files with 12 additions and 5 deletions
|
|
@ -1,9 +1,11 @@
|
|||
|
||||
#include "WidgetBase.hpp"
|
||||
|
||||
#include "Graphics.hpp"
|
||||
|
||||
namespace tp {
|
||||
GlobalGUIConfig* gGlobalGUIConfig = nullptr;
|
||||
|
||||
ModuleManifest* deps[] = { &gModuleStrings, nullptr };
|
||||
ModuleManifest* deps[] = { &gModuleGraphics, &gModuleStrings, nullptr };
|
||||
ModuleManifest gModuleWidgets = ModuleManifest("Widgets", nullptr, nullptr, deps);
|
||||
}
|
||||
|
|
@ -66,6 +66,10 @@ namespace tp {
|
|||
}
|
||||
|
||||
Map<String, WidgetConfig> configs;
|
||||
|
||||
~GlobalGUIConfig() {
|
||||
configs.removeAll();
|
||||
}
|
||||
};
|
||||
|
||||
extern GlobalGUIConfig* gGlobalGUIConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue