aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/UIAdapter.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-12-04 01:12:16 +0100
committer hop311 <hop3114@gmail.com>2023-12-04 01:18:15 +0100
commit6e350a3dc0b596b1f76fab3b943b67b7713ea4fa (patch)
treeb963c671239ecd693d4162afe4b1b9d3b064554e /extension/src/openvic-extension/UIAdapter.cpp
parent9165f5980c5cfe75b3bad4303a5822340f6adcfc (diff)
Sim submodule update + extension compatibility
Diffstat (limited to 'extension/src/openvic-extension/UIAdapter.cpp')
-rw-r--r--extension/src/openvic-extension/UIAdapter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/src/openvic-extension/UIAdapter.cpp b/extension/src/openvic-extension/UIAdapter.cpp
index d688754..1478a5a 100644
--- a/extension/src/openvic-extension/UIAdapter.cpp
+++ b/extension/src/openvic-extension/UIAdapter.cpp
@@ -105,7 +105,7 @@ bool GodotGUIBuilder::generate_icon(GUI::Element const& element, AssetManager& a
}
const StringName texture_file =
- std_view_to_godot_string_name(icon.get_sprite()->cast_to<GFX::MaskedFlag>()->get_texture_file());
+ std_view_to_godot_string_name(icon.get_sprite()->cast_to<GFX::MaskedFlag>()->get_overlay_file());
const Ref<ImageTexture> texture = asset_manager.get_texture(texture_file);
if (texture.is_valid()) {
godot_texture_rect->set_texture(texture);
@@ -189,7 +189,7 @@ bool GodotGUIBuilder::generate_button(GUI::Element const& element, AssetManager&
}
} else if (button.get_sprite()->is_type<GFX::MaskedFlag>()) {
texture = asset_manager.get_texture(std_view_to_godot_string_name(
- button.get_sprite()->cast_to<GFX::MaskedFlag>()->get_texture_file()));
+ button.get_sprite()->cast_to<GFX::MaskedFlag>()->get_overlay_file()));
if (texture.is_null()) {
UtilityFunctions::push_error("Failed to load masked flag sprite for GUI button ", button_name);
ret = false;