modules changes

* speedup widget destruction checks
* rework outfit module using grid layout and the new design
* fixes in console, terminal, textmessage modules
This commit is contained in:
Eduardo Bart
2012-03-22 18:47:52 -03:00
parent 159eb98df2
commit 33458a3e39
41 changed files with 335 additions and 234 deletions

View File

@@ -1,7 +1,3 @@
Color < ColorBox
anchors.top: head.top
anchors.left: head.right
Window
text: Select Outfit
size: 550 280
@@ -14,7 +10,7 @@ Window
@onEscape: Outfit.destroy()
Label
id: name
id: outfitName
text: Outfit Name
width: 100
anchors.top: parent.top
@@ -23,60 +19,81 @@ Window
margin-left: 20
Creature
id: creature
anchors.top: name.bottom
anchors.left: name.left
id: outfitCreatureBox
anchors.top: outfitName.bottom
anchors.left: outfitName.left
margin-top: 5
padding: 16 4 4 16
fixed-creature-size: true
Panel
id: colorBoxPanel
anchors.top: parent.top
anchors.right: parent.right
margin-top: 54
margin-right: 20
width: 323
height: 119
layout:
type: grid
cell-size: 16 16
cell-spacing: 2
num-columns: 19
num-lines: 7
ButtonBox
id: head
text: Head
anchors.top: creature.top
anchors.left: creature.right
anchors.top: outfitCreatureBox.top
anchors.left: outfitCreatureBox.right
margin-left: 10
checked: true
width: 90
ButtonBox
id: primary
text: Primary
anchors.top: prev.bottom
anchors.left: prev.left
width: 90
ButtonBox
id: secondary
text: Secondary
anchors.top: prev.bottom
anchors.left: prev.left
width: 90
ButtonBox
id: detail
text: Detail
anchors.top: prev.bottom
anchors.left: prev.left
width: 90
Button
id: outfitNextButton
@onClick: Outfit.nextType()
text: >>
width: 32
margin-top: 4
anchors.top: creature.bottom
anchors.right: creature.right
anchors.top: outfitCreatureBox.bottom
anchors.right: outfitCreatureBox.right
Button
id: outfitPreviousButton
@onClick: Outfit.previousType()
text: <<
width: 32
margin-top: 4
anchors.top: creature.bottom
anchors.left: creature.left
anchors.top: outfitCreatureBox.bottom
anchors.left: outfitCreatureBox.left
CheckBox
id: addon1
text: Addon 1
enabled: false
margin-top: 10
margin-top: 6
width: 100
anchors.top: prev.bottom
anchors.left: prev.left
@@ -85,7 +102,7 @@ Window
id: addon2
text: Addon 2
enabled: false
margin-top: 10
margin-top: 2
width: 100
anchors.top: prev.bottom
anchors.left: prev.left
@@ -94,7 +111,7 @@ Window
id: addon3
text: Addon 3
enabled: false
margin-top: 10
margin-top: 2
width: 100
anchors.top: prev.bottom
anchors.left: prev.left
@@ -108,7 +125,7 @@ Window
margin-bottom: 10
Button
id: buttonOk
id: outfitOkButton
text: Ok
width: 64
anchors.right: next.left
@@ -118,7 +135,7 @@ Window
@onClick: Outfit.accept()
Button
id: buttonCancel
id: outfitCancelButton
text: Cancel
width: 64
anchors.right: parent.right