aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/UIAdapter.cpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-12-04 10:47:51 +0100
committer GitHub <noreply@github.com>2023-12-04 10:47:51 +0100
commite01d332f407420db84fbfd207f18c3fec1c1b6a3 (patch)
treeb963c671239ecd693d4162afe4b1b9d3b064554e /extension/src/openvic-extension/UIAdapter.cpp
parent9165f5980c5cfe75b3bad4303a5822340f6adcfc (diff)
parent6e350a3dc0b596b1f76fab3b943b67b7713ea4fa (diff)
Merge pull request #168 from OpenVicProject/update-sim
Sim submodule update + compatibility fixes
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;