mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
new shortcuts
* Ctrl+Q logout from game * Ctrl+Shift+R reload scripts, instead of Ctrl+R that is now reserved for rule report * Ctrl+A clean the chat text box * Ctrl+F toggles fullscreen mode
This commit is contained in:
@@ -24,6 +24,7 @@ function Options.init()
|
||||
end
|
||||
|
||||
Keyboard.bindKeyDown('Ctrl+P', Options.toggle)
|
||||
Keyboard.bindKeyDown('Ctrl+F', function() Options.toggleOption('fullscreen') end)
|
||||
|
||||
optionsWindow = displayUI('options.otui')
|
||||
optionsWindow:hide()
|
||||
@@ -66,6 +67,10 @@ function Options.openWebpage()
|
||||
displayErrorBox("Error", "Not implemented yet")
|
||||
end
|
||||
|
||||
function Options.toggleOption(key)
|
||||
Options.setOption(key, not Options.getOption(key))
|
||||
end
|
||||
|
||||
function Options.setOption(key, value)
|
||||
if key == 'vsync' then
|
||||
g_window.setVerticalSync(value)
|
||||
|
Reference in New Issue
Block a user