mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
style adjustment and fixes
* style adjustments, now window and button style * fix bug when logging on a tile with too many creatures * remove deprecated onLogin and onLogout events
This commit is contained in:
@@ -57,7 +57,7 @@ function RuleViolation.loadReasons()
|
||||
end
|
||||
|
||||
function RuleViolation.init()
|
||||
connect(g_game, { onLogin = RuleViolation.loadReasons })
|
||||
connect(g_game, { onGMActions = RuleViolation.loadReasons })
|
||||
|
||||
ruleViolationWindow = displayUI('ruleviolation.otui')
|
||||
ruleViolationWindow:setVisible(false)
|
||||
@@ -73,7 +73,7 @@ function RuleViolation.init()
|
||||
end
|
||||
|
||||
function RuleViolation.terminate()
|
||||
disconnect(g_game, { onLogin = RuleViolation.loadReasons })
|
||||
disconnect(g_game, { onGMActions = RuleViolation.loadReasons })
|
||||
|
||||
ruleViolationWindow:destroy()
|
||||
ruleViolationWindow = nil
|
||||
|
Reference in New Issue
Block a user