2012-02-20 03:27:08 +01:00
|
|
|
BattleButton < UIButton
|
|
|
|
|
2012-02-09 06:27:29 +01:00
|
|
|
BattleButton
|
|
|
|
height: 20
|
|
|
|
margin-top: 5
|
|
|
|
fixed-size: true
|
2012-03-28 16:10:21 +02:00
|
|
|
&onHoverChange: Battle.onbattleButtonHoverChange
|
2012-02-09 08:26:52 +01:00
|
|
|
&onMouseRelease: Battle.onMouseRelease
|
2012-02-09 06:27:29 +01:00
|
|
|
&isBattleButton: true
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-09 06:27:29 +01:00
|
|
|
UICreature
|
|
|
|
id: creature
|
|
|
|
size: 20 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
2012-02-09 08:26:52 +01:00
|
|
|
phantom: true
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-09 06:27:29 +01:00
|
|
|
UIWidget
|
|
|
|
id: spacer
|
|
|
|
width: 5
|
|
|
|
anchors.left: creature.right
|
|
|
|
anchors.top: creature.top
|
2012-02-09 08:26:52 +01:00
|
|
|
phantom: true
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-09 06:27:29 +01:00
|
|
|
UIWidget
|
|
|
|
id: skull
|
|
|
|
height: 11
|
|
|
|
anchors.left: spacer.right
|
|
|
|
anchors.top: spacer.top
|
2012-02-09 08:26:52 +01:00
|
|
|
phantom: true
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-09 06:27:29 +01:00
|
|
|
UIWidget
|
|
|
|
id: emblem
|
|
|
|
height: 11
|
|
|
|
anchors.left: skull.right
|
|
|
|
anchors.top: creature.top
|
2012-02-09 08:26:52 +01:00
|
|
|
phantom: true
|
2012-02-20 03:27:08 +01:00
|
|
|
|
|
|
|
Label
|
2012-02-09 06:27:29 +01:00
|
|
|
id: label
|
|
|
|
anchors.left: emblem.right
|
|
|
|
anchors.top: creature.top
|
|
|
|
color: #888888
|
|
|
|
margin-left: 2
|
2012-02-09 08:26:52 +01:00
|
|
|
phantom: true
|
2012-02-20 03:27:08 +01:00
|
|
|
|
2012-02-09 06:27:29 +01:00
|
|
|
ProgressBar
|
|
|
|
id: lifeBar
|
|
|
|
height: 5
|
|
|
|
anchors.left: spacer.right
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: label.bottom
|
|
|
|
margin-top: 2
|
2012-03-28 16:10:21 +02:00
|
|
|
phantom: true
|