[Mod Options] Little code style change

This commit is contained in:
Azumgi 2018-08-22 17:58:27 +03:00
parent bfd467e0a2
commit c943b17385

View file

@ -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)