Many UI fixes.

This commit is contained in:
Henrique Santiago
2012-08-24 05:18:15 -03:00
parent 0c18e4ff28
commit f97fa65d37
8 changed files with 88 additions and 81 deletions

View File

@@ -49,7 +49,7 @@ function init()
mouseWidget:setVisible(false)
mouseWidget:setFocusable(false)
battleWindow:setContentMinimumHeight(56)
battleWindow:setContentMinimumHeight(80)
battleWindow:setContentMaximumHeight(384)
connect(Creature, { onSkullChange = checkCreatureSkull,

View File

@@ -44,58 +44,58 @@ MiniWindow
@onClose: modules.game_battle.onMiniWindowClose()
&save: true
BattlePlayers
id: hidePlayers
!tooltip: tr('Hide players')
anchors.top: parent.top
anchors.right: next.left
margin-right: 5
Panel
margin-top: 26
@onCheckChange: modules.game_battle.checkCreatures()
BattleNPCs
id: hideNPCs
!tooltip: tr('Hide Npcs')
anchors.top: parent.top
anchors.right: next.left
margin-right: 5
margin-top: 26
@onCheckChange: modules.game_battle.checkCreatures()
anchors.left: parent.left
anchors.right: miniwindowScrollBar.left
height: 20
BattleMonsters
id: hideMonsters
!tooltip: tr('Hide monsters')
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
margin-top: 26
@onCheckChange: modules.game_battle.checkCreatures()
Panel
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
height: 20
width: 120
// width*count + spacing*(count-1)
layout:
type: horizontalBox
spacing: 5
BattleSkulls
id: hideSkulls
!tooltip: tr('Hide non-skull players')
anchors.top: prev.top
anchors.left: prev.right
margin-left: 5
@onCheckChange: modules.game_battle.checkCreatures()
BattlePlayers
id: hidePlayers
!tooltip: tr('Hide players')
@onCheckChange: modules.game_battle.checkCreatures()
BattleParty
id: hideParty
!tooltip: tr('Hide party members')
anchors.top: prev.top
anchors.left: prev.right
margin-left: 5
phantom: true
@onCheckChange: modules.game_battle.checkCreatures()
BattleNPCs
id: hideNPCs
!tooltip: tr('Hide Npcs')
@onCheckChange: modules.game_battle.checkCreatures()
BattleMonsters
id: hideMonsters
!tooltip: tr('Hide monsters')
@onCheckChange: modules.game_battle.checkCreatures()
BattleSkulls
id: hideSkulls
!tooltip: tr('Hide non-skull players')
@onCheckChange: modules.game_battle.checkCreatures()
BattleParty
id: hideParty
!tooltip: tr('Hide party members')
@onCheckChange: modules.game_battle.checkCreatures()
HorizontalSeparator
anchors.top: prev.bottom
anchors.left: parent.left
anchors.right: parent.right
margin-top: 5
anchors.right: miniwindowScrollBar.left
margin-right: 1
margin-top: 4
MiniWindowContents
anchors.top: parent.top
margin-top: 50
anchors.top: prev.bottom
margin-top: 0
Panel
id: battlePanel