From 196a95f4c021dd0520a63f22496910c00ca5669d Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sat, 7 Jan 2012 19:19:40 -0200 Subject: [PATCH] fix options --- modules/client_options/options.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/client_options/options.lua b/modules/client_options/options.lua index d5c887c4..6fd7b4d9 100644 --- a/modules/client_options/options.lua +++ b/modules/client_options/options.lua @@ -4,11 +4,6 @@ local optionsWindow local optionsButton function Options.init() - optionsWindow = displayUI('options.otui') - optionsWindow:setVisible(false) - optionsButton = TopMenu.addButton('settingsButton', 'Options (Ctrl+O)', '/core_styles/icons/settings.png', Options.toggle) - Hotkeys.bind('Ctrl+O', Options.toggle) - -- load settings local booleanOptions = { vsync = true, showfps = true, @@ -19,6 +14,11 @@ function Options.init() Settings.setDefault(k, v) Options.changeOption(k, Settings.getBoolean(k)) end + + optionsWindow = displayUI('options.otui') + optionsWindow:setVisible(false) + optionsButton = TopMenu.addButton('settingsButton', 'Options (Ctrl+O)', '/core_styles/icons/settings.png', Options.toggle) + Hotkeys.bind('Ctrl+O', Options.toggle) end function Options.terminate()