-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBossSlotNotActive.qml
More file actions
36 lines (25 loc) · 926 Bytes
/
BossSlotNotActive.qml
File metadata and controls
36 lines (25 loc) · 926 Bytes
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
import QtQuick
import QtQuick.Layouts
import qmlcomponents
TibiaPanel2PixelUpFilledWithCaption {
property var controller: null
property int gridMargin: TibiaStyle.marginRelated//TibiaStyle.marginNarrow
property int slotNumber: 0
property int unlockBosspoints: 0
caption: qsTrId("bosstiary_caption_slot_not_active").arg(slotNumber)
Item {
id: outerItem
Layout.fillWidth: true
Layout.preferredHeight: bosspointsText.height + 280
Layout.alignment: Qt.AlignVCenter
TibiaText {
id: bosspointsText
text: unlockBosspoints > 0 ? qsTrId("bosstiary_slot_not_active_text").arg(unlockBosspoints) : qsTrId("bosstiary_slot_not_active_text_first_slot")
anchors.centerIn: parent
wrapMode: Text.Wrap
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
width: outerItem.width
}
} // Item
} // TibiaPanel2PixelUpFilledWithCaption