fix game losing focus, handle enter/escape on add vip window
This commit is contained in:
parent
fb20ad1ba1
commit
4620f71444
|
@ -6,7 +6,7 @@ Module
|
||||||
|
|
||||||
// console can be loaded after core
|
// console can be loaded after core
|
||||||
autoLoad: true
|
autoLoad: true
|
||||||
autoLoadPriority: 20
|
autoLoadPriority: 1000
|
||||||
|
|
||||||
onLoad: |
|
onLoad: |
|
||||||
require 'console'
|
require 'console'
|
||||||
|
|
|
@ -1,11 +1,2 @@
|
||||||
-- place any code for testing purposes here
|
-- place any code for testing purposes here
|
||||||
|
--scheduleEvent(function() dumpWidgets() end, 100)
|
||||||
function init()
|
|
||||||
local box = createWidget('ComboBox')
|
|
||||||
box:moveTo({x=100, y=8})
|
|
||||||
box:addOption('Option 1')
|
|
||||||
box:addOption('Option 2')
|
|
||||||
displayUI(box)
|
|
||||||
end
|
|
||||||
|
|
||||||
addEvent(init)
|
|
|
@ -1,6 +1,7 @@
|
||||||
Module
|
Module
|
||||||
name: playground
|
name: playground
|
||||||
autoLoad: true
|
autoLoad: true
|
||||||
|
autoLoadPriority: 1000
|
||||||
onLoad: |
|
onLoad: |
|
||||||
require 'playground'
|
require 'playground'
|
||||||
|
|
||||||
|
|
|
@ -10,3 +10,4 @@ Panel
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
margin-top: 1
|
margin-top: 1
|
||||||
focusable: false
|
focusable: false
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
ComboBoxPopupMenuButton < UIButton
|
ComboBoxPopupMenuButton < UIButton
|
||||||
font: verdana-11px-antialised
|
font: verdana-11px-antialised
|
||||||
background-color: alpha
|
background-color: alpha
|
||||||
|
text-align: left
|
||||||
|
text-offset: 2 0
|
||||||
color: #aaaaaa
|
color: #aaaaaa
|
||||||
height: 18
|
height: 18
|
||||||
margin-left: 1
|
margin-left: 1
|
||||||
|
|
|
@ -4,3 +4,4 @@ HorizontalSeparator < UIWidget
|
||||||
border.top: 2
|
border.top: 2
|
||||||
height: 2
|
height: 2
|
||||||
phantom: true
|
phantom: true
|
||||||
|
focusable: false
|
|
@ -1,6 +1,8 @@
|
||||||
MainWindow
|
MainWindow
|
||||||
size: 256 128
|
size: 256 128
|
||||||
title: Add to VIP list
|
title: Add to VIP list
|
||||||
|
@onEnter: VipList.addVip()
|
||||||
|
@onEscape: VipList.destroyAddWindow()
|
||||||
|
|
||||||
Label
|
Label
|
||||||
text: Please enter a character name:
|
text: Please enter a character name:
|
||||||
|
|
Loading…
Reference in New Issue