From 6e350a3dc0b596b1f76fab3b943b67b7713ea4fa Mon Sep 17 00:00:00 2001 From: hop311 Date: Mon, 4 Dec 2023 00:12:16 +0000 Subject: Sim submodule update + extension compatibility --- extension/src/openvic-extension/UIAdapter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extension/src/openvic-extension/UIAdapter.cpp') 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()->get_texture_file()); + std_view_to_godot_string_name(icon.get_sprite()->cast_to()->get_overlay_file()); const Ref 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()) { texture = asset_manager.get_texture(std_view_to_godot_string_name( - button.get_sprite()->cast_to()->get_texture_file())); + button.get_sprite()->cast_to()->get_overlay_file())); if (texture.is_null()) { UtilityFunctions::push_error("Failed to load masked flag sprite for GUI button ", button_name); ret = false; -- cgit v1.2.3-56-ga3b1