mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-05-03 04:29:22 +02:00
264 lines
5.4 KiB
Plaintext
264 lines
5.4 KiB
Plaintext
ActionButton < UIButton
|
|
font: cipsoftFont
|
|
width: 36
|
|
padding: 1
|
|
margin-left: 1
|
|
|
|
Item
|
|
id: item
|
|
anchors.fill: parent
|
|
padding: 1
|
|
&selectable: true
|
|
&editable: false
|
|
virtual: true
|
|
border-width: 1
|
|
border-color: #00000000
|
|
draggable: true
|
|
|
|
$!on:
|
|
image-source: /images/game/actionbar/actionbarslot
|
|
image-color: #dfdfdf
|
|
image-clip: 0 0 34 34
|
|
image-border: 0
|
|
|
|
$on:
|
|
image-source: /images/ui/button
|
|
image-color: #dfdfdf
|
|
image-clip: 0 0 22 23
|
|
image-border: 3
|
|
|
|
$pressed on:
|
|
image-clip: 0 46 22 23
|
|
|
|
Label
|
|
id: text
|
|
anchors.fill: prev
|
|
text-auto-resize: true
|
|
text-wrap: true
|
|
phantom: true
|
|
margin: 1
|
|
text-align: center
|
|
font: verdana-9px
|
|
|
|
Label
|
|
id: hotkeyLabel
|
|
anchors.top: parent.top
|
|
anchors.right: parent.right
|
|
margin: 3 4 3 3
|
|
text-auto-resize: true
|
|
text-wrap: false
|
|
phantom: true
|
|
font: cipsoftFont
|
|
color: white
|
|
background: #292A2A
|
|
|
|
Label
|
|
id: parameterText
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
anchors.bottom: parent.bottom
|
|
margin-bottom: -3
|
|
margin-left: 2
|
|
margin-right: 2
|
|
font: verdana-9px
|
|
color: white
|
|
text-align: center
|
|
|
|
UIProgressRect
|
|
id: cooldown
|
|
background: #101010aa
|
|
percent: 100
|
|
focusable: false
|
|
phantom: true
|
|
anchors.fill: parent
|
|
font: verdana-11px-rounded
|
|
color: white
|
|
|
|
LeftSliders < Panel
|
|
size: 17 34
|
|
|
|
Button
|
|
id: prev
|
|
anchors.fill: parent
|
|
anchors.bottom: parent.verticalCenter
|
|
@onClick: modules.game_actionbar.moveActionButtons(self)
|
|
|
|
$!on:
|
|
tooltip: No further action buttons in this direction
|
|
|
|
$on:
|
|
tooltip: Move to the previous action button
|
|
|
|
UIWidget
|
|
id: image
|
|
anchors.centerIn: parent
|
|
phantom: true
|
|
|
|
$!on:
|
|
image-source: /images/game/actionbar/arrow-disabled
|
|
|
|
$on:
|
|
image-source: /images/game/actionbar/arrow
|
|
|
|
Button
|
|
id: first
|
|
anchors.fill: parent
|
|
anchors.top: parent.verticalCenter
|
|
@onClick: modules.game_actionbar.moveActionButtons(self)
|
|
|
|
$!on:
|
|
tooltip: No further action buttons in this direction
|
|
|
|
$on:
|
|
tooltip: Move to the first action button
|
|
|
|
UIWidget
|
|
id: image
|
|
anchors.centerIn: parent
|
|
phantom: true
|
|
|
|
$!on:
|
|
image-source: /images/game/actionbar/arrow-skip-disabled
|
|
|
|
$on:
|
|
image-source: /images/game/actionbar/arrow-skip
|
|
|
|
RightSliders < Panel
|
|
size: 29 34
|
|
|
|
Button
|
|
id: lock
|
|
anchors.top: parent.top
|
|
anchors.right: parent.right
|
|
anchors.bottom: parent.bottom
|
|
width: 12
|
|
@onClick: modules.game_actionbar.changeLockState(self)
|
|
|
|
$!on:
|
|
tooltip: Action Bar Locked: You cannot assign actions to or switch actions on action buttons by "drag&drop".
|
|
|
|
$on:
|
|
tooltip: Action Bar Unlocked: You can assign actions to or switch actions on action buttons by "drag&drop".
|
|
|
|
UIWidget
|
|
id: image
|
|
anchors.centerIn: parent
|
|
margin-right: 1
|
|
phantom: true
|
|
|
|
$!on:
|
|
image-source: /images/game/actionbar/locked
|
|
|
|
$on:
|
|
image-source: /images/game/actionbar/unlocked
|
|
|
|
Button
|
|
id: next
|
|
anchors.top: parent.top
|
|
anchors.bottom: parent.verticalCenter
|
|
anchors.left: parent.left
|
|
anchors.right: lock.left
|
|
margin-right: 1
|
|
@onClick: modules.game_actionbar.moveActionButtons(self)
|
|
on: true
|
|
|
|
$!on:
|
|
tooltip: No further action buttons in this direction
|
|
|
|
$on:
|
|
tooltip: Move to the next action button
|
|
|
|
UIWidget
|
|
id: image
|
|
anchors.centerIn: parent
|
|
phantom: true
|
|
margin-top: 1
|
|
margin-left: 2
|
|
rotation: 180
|
|
on: true
|
|
|
|
$!on:
|
|
image-source: /images/game/actionbar/arrow-disabled
|
|
|
|
$on:
|
|
image-source: /images/game/actionbar/arrow
|
|
|
|
Button
|
|
id: last
|
|
anchors.top: parent.verticalCenter
|
|
anchors.bottom: parent.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: prev.right
|
|
@onClick: modules.game_actionbar.moveActionButtons(self)
|
|
on: true
|
|
|
|
$!on:
|
|
tooltip: No further action buttons in this direction
|
|
|
|
$on:
|
|
tooltip: Move to the last action button
|
|
|
|
UIWidget
|
|
id: image
|
|
anchors.centerIn: parent
|
|
phantom: true
|
|
margin-top: 1
|
|
margin-left: 1
|
|
rotation: 180
|
|
on: true
|
|
|
|
$!on:
|
|
image-source: /images/game/actionbar/arrow-skip-disabled
|
|
|
|
$on:
|
|
image-source: /images/game/actionbar/arrow-skip
|
|
|
|
Panel
|
|
id: actionBar
|
|
focusable: false
|
|
image-source: /images/ui/actionbar_background
|
|
image-border: 1
|
|
margin-top: -1
|
|
|
|
$on:
|
|
height: 40
|
|
visible: true
|
|
|
|
$!on:
|
|
height: 0
|
|
visible: false
|
|
|
|
LeftSliders
|
|
id: prevPanel
|
|
anchors.left: parent.left
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
margin-left: 1
|
|
|
|
ScrollablePanel
|
|
id: tabBar
|
|
anchors.top: parent.top
|
|
anchors.bottom: parent.bottom
|
|
anchors.left: prev.right
|
|
anchors.right: nextPanel.left
|
|
margin-left: 4
|
|
margin-right: 4
|
|
clipping: true
|
|
padding-top: 2
|
|
padding-bottom: 2
|
|
horizontal-scrollbar: actionScroll
|
|
layout: horizontalBox
|
|
|
|
HorizontalScrollBar
|
|
id: actionScroll
|
|
anchors.top: parent.top
|
|
anchors.bottom: parent.bottom
|
|
anchors.right: parent.right
|
|
step: 37
|
|
pixels-scroll: true
|
|
visible: false
|
|
|
|
RightSliders
|
|
id: nextPanel
|
|
anchors.right: parent.right
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
margin-right: 1 |