-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHitpointsManaPanel.qml
More file actions
48 lines (40 loc) · 1.43 KB
/
HitpointsManaPanel.qml
File metadata and controls
48 lines (40 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import QtQuick
import QtQuick.Layouts
import qmlcomponents
TibiaSidebarPanel {
visible: panelController != null ? panelController.visible : true
ColumnLayout {
anchors.left: parent.left
anchors.right: parent.right
spacing: TibiaStyle.marginNarrow
EnergyBar {
symbolImage: "/images/hitpoints-symbol.png"
barBorderImage: "/images/hitpoints-manapoints-bar-border.png"
barFillImage: "/images/hitpoints-bar-filled.png"
currentValue: panelController != null ? panelController.currentHitpoints : 0
maxValue: panelController != null ? panelController.maxHitpoints : 0
} // EnergyBar
EnergyBar {
symbolImage: "/images/mana-symbol.png"
barBorderImage: "/images/hitpoints-manapoints-bar-border.png"
barFillImage: "/images/mana-bar-filled.png"
currentValue: panelController != null ? panelController.currentMana : 0
maxValue: panelController != null ? panelController.maxMana : 0
} // EnergyBar
} // ColumnLayout
Lenshelp {
anchors.fill: parent
triggerRect: mapFromItem(panelRoot, 0, 0, panelRoot.width, panelRoot.height)
caption: qsTrId("hp_mana_lenshelp_caption")
content: qsTrId("hp_mana_lenshelp")
} //Lenshelp
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.RightButton
onClicked: {
if (panelController != null) {
panelController.requestContextMenu();
}
} // onClicked
} // MouseArea
} //TibiaSidebarPanel