some fixes
This commit is contained in:
parent
8d14d9bc99
commit
81dcd42fd1
|
@ -1,13 +1,14 @@
|
||||||
OptionCheckBox < CheckBox
|
OptionCheckBox < CheckBox
|
||||||
@onCheckChange: Options.setOption(self:getId(), self:isChecked())
|
@onCheckChange: Options.setOption(self:getId(), self:isChecked())
|
||||||
@onSetup: self:setChecked(Options.getOption(self:getId()))
|
@onSetup: self:setChecked(Options.getOption(self:getId()))
|
||||||
|
height: 16
|
||||||
|
|
||||||
$first:
|
$first:
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
||||||
$middle:
|
$!first:
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: prev.bottom
|
anchors.top: prev.bottom
|
||||||
|
@ -16,7 +17,7 @@ OptionCheckBox < CheckBox
|
||||||
MainWindow
|
MainWindow
|
||||||
id: optionsWindow
|
id: optionsWindow
|
||||||
text: Options
|
text: Options
|
||||||
size: 286 200
|
size: 286 230
|
||||||
|
|
||||||
@onEnter: Options.hide()
|
@onEnter: Options.hide()
|
||||||
@onEscape: Options.hide()
|
@onEscape: Options.hide()
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 646 B |
|
@ -246,7 +246,7 @@ end
|
||||||
|
|
||||||
function Battle.onMouseRelease(self, mousePosition, mouseButton)
|
function Battle.onMouseRelease(self, mousePosition, mouseButton)
|
||||||
if mouseButton == MouseRightButton then
|
if mouseButton == MouseRightButton then
|
||||||
g_game.createThingMenu(mousePosition, nil, nil, self.creature)
|
GameInterface.createThingMenu(mousePosition, nil, nil, self.creature)
|
||||||
return true
|
return true
|
||||||
elseif mouseButton == MouseLeftButton then
|
elseif mouseButton == MouseLeftButton then
|
||||||
local modifiers = g_window.getKeyboardModifiers()
|
local modifiers = g_window.getKeyboardModifiers()
|
||||||
|
|
Loading…
Reference in New Issue