diff options
author | 2024-08-15 01:13:54 +0200 | |
---|---|---|
committer | 2024-08-15 01:13:54 +0200 | |
commit | 7c85ab11e840c281a2499dcc6dd3219c33e7d37f (patch) | |
tree | 84460d9e4c3af8656604add874fc9a379a0adc4a /extension/src/openvic-extension/register_types.cpp | |
parent | 82b16bcca7c74607a8885b882ec36f5202e7ef70 (diff) |
Add GUITextLabel (colour code + currency icon support)
Diffstat (limited to 'extension/src/openvic-extension/register_types.cpp')
-rw-r--r-- | extension/src/openvic-extension/register_types.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/extension/src/openvic-extension/register_types.cpp b/extension/src/openvic-extension/register_types.cpp index 0b9d779..eb58cb0 100644 --- a/extension/src/openvic-extension/register_types.cpp +++ b/extension/src/openvic-extension/register_types.cpp @@ -10,6 +10,7 @@ #include "openvic-extension/classes/GUINode.hpp" #include "openvic-extension/classes/GUIOverlappingElementsBox.hpp" #include "openvic-extension/classes/GUIScrollbar.hpp" +#include "openvic-extension/classes/GUITextLabel.hpp" #include "openvic-extension/classes/MapMesh.hpp" #include "openvic-extension/singletons/AssetManager.hpp" #include "openvic-extension/singletons/Checksum.hpp" @@ -43,10 +44,6 @@ void initialize_openvic_types(ModuleInitializationLevel p_level) { _load_localisation = memnew(LoadLocalisation); Engine::get_singleton()->register_singleton("LoadLocalisation", LoadLocalisation::get_singleton()); - ClassDB::register_class<SoundSingleton>(); - _sound_singleton = memnew(SoundSingleton); - Engine::get_singleton()->register_singleton("SoundSingleton", SoundSingleton::get_singleton()); - ClassDB::register_class<GameSingleton>(); _game_singleton = memnew(GameSingleton); Engine::get_singleton()->register_singleton("GameSingleton", GameSingleton::get_singleton()); @@ -63,6 +60,10 @@ void initialize_openvic_types(ModuleInitializationLevel p_level) { _asset_manager_singleton = memnew(AssetManager); Engine::get_singleton()->register_singleton("AssetManager", AssetManager::get_singleton()); + ClassDB::register_class<SoundSingleton>(); + _sound_singleton = memnew(SoundSingleton); + Engine::get_singleton()->register_singleton("SoundSingleton", SoundSingleton::get_singleton()); + ClassDB::register_class<MapMesh>(); ClassDB::register_abstract_class<GFXCorneredTileSupportingTexture>(); @@ -79,6 +80,7 @@ void initialize_openvic_types(ModuleInitializationLevel p_level) { ClassDB::register_class<GUINode>(); ClassDB::register_class<GUIOverlappingElementsBox>(); ClassDB::register_class<GUIScrollbar>(); + ClassDB::register_class<GUITextLabel>(); } void uninitialize_openvic_types(ModuleInitializationLevel p_level) { |