mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
Many changes
* IMPORTANT: dat/spr should now be placed in /data/things/ * Rename game_tibiafiles to game_things * Make battle list algorithm much faster * Split UITabBar into UITabBar and UIMoveableTabBar * Fix other minor issues
This commit is contained in:
@@ -24,7 +24,7 @@ TabButton < UIButton
|
||||
image-source: /images/ui/tabbutton_rounded
|
||||
image-color: white
|
||||
image-clip: 0 0 20 20
|
||||
image-border: 2
|
||||
image-border: 1
|
||||
icon-color: white
|
||||
color: #aaaaaa
|
||||
|
||||
|
@@ -48,7 +48,7 @@ ButtonBox < UICheckBox
|
||||
image-source: /images/ui/tabbutton_rounded
|
||||
image-color: white
|
||||
image-clip: 0 0 20 20
|
||||
image-border: 2
|
||||
image-border: 3
|
||||
|
||||
$hover !disabled:
|
||||
image-clip: 0 20 20 20
|
||||
|
@@ -1,12 +1,12 @@
|
||||
TabBar < UITabBar
|
||||
MoveableTabBar < UIMoveableTabBar
|
||||
size: 80 20
|
||||
TabBarPanel < Panel
|
||||
TabBarButton < UIButton
|
||||
MoveableTabBarPanel < Panel
|
||||
MoveableTabBarButton < UIButton
|
||||
size: 20 20
|
||||
image-source: /images/ui/tabbutton_square
|
||||
image-color: white
|
||||
image-clip: 0 0 20 20
|
||||
image-border: 2
|
||||
image-border: 3
|
||||
icon-color: white
|
||||
color: #aaaaaa
|
||||
anchors.top: parent.top
|
||||
@@ -28,6 +28,45 @@ TabBarButton < UIButton
|
||||
$on !checked:
|
||||
color: #F55E5E
|
||||
|
||||
TabBar < UITabBar
|
||||
size: 80 20
|
||||
Panel
|
||||
id: buttonsPanel
|
||||
anchors.fill: parent
|
||||
TabBarPanel < Panel
|
||||
TabBarButton < UIButton
|
||||
size: 20 20
|
||||
image-source: /images/ui/tabbutton_square
|
||||
image-color: white
|
||||
image-clip: 0 0 20 20
|
||||
image-border: 3
|
||||
icon-color: white
|
||||
color: #aaaaaa
|
||||
anchors.top: parent.top
|
||||
padding: 5
|
||||
|
||||
$first:
|
||||
anchors.left: parent.left
|
||||
|
||||
$!first:
|
||||
anchors.left: prev.right
|
||||
margin-left: 5
|
||||
|
||||
$hover !checked:
|
||||
image-clip: 0 20 20 20
|
||||
color: white
|
||||
|
||||
$disabled:
|
||||
image-color: #ffffff66
|
||||
icon-color: #888888
|
||||
|
||||
$checked:
|
||||
image-clip: 0 40 20 20
|
||||
color: #80c7f8
|
||||
|
||||
$on !checked:
|
||||
color: #F55E5E
|
||||
|
||||
TabBarRounded < TabBar
|
||||
TabBarRoundedPanel < TabBarPanel
|
||||
TabBarRoundedButton < TabBarButton
|
||||
@@ -35,7 +74,6 @@ TabBarRoundedButton < TabBarButton
|
||||
|
||||
TabBarVertical < UITabBar
|
||||
width: 96
|
||||
|
||||
ScrollableFlatPanel
|
||||
id: buttonsPanel
|
||||
anchors.top: parent.top
|
||||
@@ -43,7 +81,6 @@ TabBarVertical < UITabBar
|
||||
anchors.right: scrollBar.left
|
||||
anchors.bottom: parent.bottom
|
||||
vertical-scrollbar: scrollBar
|
||||
|
||||
VerticalScrollBar
|
||||
id: scrollBar
|
||||
anchors.top: parent.top
|
||||
@@ -51,12 +88,9 @@ TabBarVertical < UITabBar
|
||||
anchors.right: parent.right
|
||||
step: 16
|
||||
pixels-scroll: true
|
||||
|
||||
$!on:
|
||||
width: 0
|
||||
|
||||
TabBarVerticalPanel < Panel
|
||||
|
||||
TabBarVerticalButton < UIButton
|
||||
size: 48 48
|
||||
color: #aaaaaa
|
||||
@@ -66,24 +100,18 @@ TabBarVerticalButton < UIButton
|
||||
icon-align: top
|
||||
icon-offset-y: 2
|
||||
icon-color: #888888
|
||||
|
||||
$first:
|
||||
anchors.top: parent.top
|
||||
|
||||
$!first:
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 5
|
||||
|
||||
$hover !checked:
|
||||
color: white
|
||||
icon-color: #cccccc
|
||||
|
||||
$disabled:
|
||||
icon-color: #333333
|
||||
|
||||
$checked:
|
||||
icon-color: #ffffff
|
||||
color: #80c7f8
|
||||
|
||||
$on !checked:
|
||||
color: #F55E5E
|
||||
|
2
data/things/.gitignore
vendored
Normal file
2
data/things/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
Reference in New Issue
Block a user