From c943b173851fe62224c4ba92db46f5009b3e88e4 Mon Sep 17 00:00:00 2001 From: Azumgi <4zumgi@gmail.com> Date: Wed, 22 Aug 2018 17:58:27 +0300 Subject: [PATCH] [Mod Options] Little code style change --- .../mods/vmf/modules/ui/options/vmf_options_view.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua index 568e8b7..31b16f6 100644 --- a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua +++ b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua @@ -4702,11 +4702,11 @@ else -- Disable localization for Mod Options button widget for console version of ESC-menu -- Widget definition: hero_window_ingame_view_definitions.lua -> create_title_button vmf:hook_safe(HeroWindowIngameView, "on_enter", function (self) - local widget = self._title_button_widgets[get_mod_options_button_index(self.layout_logic)] - widget.style.text.localize = false - widget.style.text_hover.localize = false - widget.style.text_shadow.localize = false - widget.style.text_disabled.localize = false + local button_widget = self._title_button_widgets[get_mod_options_button_index(self.layout_logic)] + button_widget.style.text.localize = false + button_widget.style.text_hover.localize = false + button_widget.style.text_shadow.localize = false + button_widget.style.text_disabled.localize = false end)