Created
September 2, 2013 16:54
-
-
Save chyyran/6414964 to your computer and use it in GitHub Desktop.
SettingsDialog with editSettings first
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function settingsDialog() { | |
var clearCacheButton = createDialogButton('clearCacheButton', 'showDialog(clearCacheDialog())', " Clear Cache ", "Clear Battlelogium Webcache", false); | |
var editSettingsButton = createDialogButton('editSettingsButton', 'wrapper.editSettings()', " Edit Settings ", "Open the settings editor", false); | |
var closeSettingsButton = createDialogButton('closeSettingsButton', 'closeDialog()', " Close ", "Close this dialog", true); | |
return createDialog("Battlelogium Settings", "Battlelogium Settings", "Clear the cache if you have problems<br />Edit settings to open the settings editor. Settings will be applied on restart", true, [editSettingsButton, clearCacheButton, closeSettingsButton]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment