mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 12:34:55 +02:00
More multiprotocol support
This commit is contained in:
@@ -67,6 +67,7 @@ function loadReasons()
|
||||
local actions = g_game.getGMActions()
|
||||
for reason, actionFlags in pairs(actions) do
|
||||
local label = g_ui.createWidget('RVListLabel', reasonsTextList)
|
||||
label.onFocusChange = onSelectReason
|
||||
label:setText(rvreasons[reason])
|
||||
label.reasonId = reason
|
||||
label.actionFlags = actionFlags
|
||||
|
@@ -2,7 +2,6 @@ RVListLabel < Label
|
||||
background-color: alpha
|
||||
text-offset: 2 0
|
||||
focusable: true
|
||||
@onFocusChange: function (self, focused) RuleViolation.onSelectReason(self, focused) end
|
||||
|
||||
$focus:
|
||||
background-color: #ffffff22
|
||||
@@ -109,7 +108,7 @@ MainWindow
|
||||
width: 64
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
@onClick: RuleViolation.hide()
|
||||
@onClick: hide()
|
||||
|
||||
Button
|
||||
!text: tr('Ok')
|
||||
@@ -117,4 +116,4 @@ MainWindow
|
||||
margin-right: 5
|
||||
anchors.right: prev.left
|
||||
anchors.bottom: parent.bottom
|
||||
@onClick: RuleViolation.report()
|
||||
@onClick: report()
|
Reference in New Issue
Block a user