mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-29 18:59:20 +02:00
Updated to OTCv8 3.1 rev 190
This commit is contained in:
parent
c113da6be9
commit
5ec11c9529
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 315 B |
BIN
data/images/ui/minipanel.png
Normal file
BIN
data/images/ui/minipanel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 875 B |
BIN
data/images/ui/rotate_button.png
Normal file
BIN
data/images/ui/rotate_button.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 767 B |
File diff suppressed because it is too large
Load Diff
BIN
layouts/retro/images/ui/minipanel.png
Normal file
BIN
layouts/retro/images/ui/minipanel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
BIN
layouts/retro/images/ui/rotate_button.png
Normal file
BIN
layouts/retro/images/ui/rotate_button.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
@ -55,6 +55,7 @@ ButtonBox < UICheckBox
|
|||||||
image-clip: 0 46 22 23
|
image-clip: 0 46 22 23
|
||||||
color: white
|
color: white
|
||||||
text-offset: 2 2
|
text-offset: 2 2
|
||||||
|
change-cursor-image: false
|
||||||
|
|
||||||
$disabled:
|
$disabled:
|
||||||
color: #dfdfdf88
|
color: #dfdfdf88
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -144,16 +144,19 @@ function UIScrollArea:onMouseWheel(mousePos, mouseWheel)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
function UIScrollArea:ensureChildVisible(child)
|
function UIScrollArea:ensureChildVisible(child, offset)
|
||||||
if child then
|
if child then
|
||||||
local paddingRect = self:getPaddingRect()
|
local paddingRect = self:getPaddingRect()
|
||||||
|
if not offset then
|
||||||
|
offset = {x = 0, y = 0}
|
||||||
|
end
|
||||||
if self.verticalScrollBar then
|
if self.verticalScrollBar then
|
||||||
local deltaY = paddingRect.y - child:getY()
|
local deltaY = paddingRect.y - child:getY()
|
||||||
if deltaY > 0 then
|
if deltaY > 0 then
|
||||||
self.verticalScrollBar:decrement(deltaY)
|
self.verticalScrollBar:decrement(deltaY)
|
||||||
end
|
end
|
||||||
|
|
||||||
deltaY = (child:getY() + child:getHeight()) - (paddingRect.y + paddingRect.height)
|
deltaY = (child:getY() + child:getHeight() + offset.y) - (paddingRect.y + paddingRect.height)
|
||||||
if deltaY > 0 then
|
if deltaY > 0 then
|
||||||
self.verticalScrollBar:increment(deltaY)
|
self.verticalScrollBar:increment(deltaY)
|
||||||
end
|
end
|
||||||
@ -163,7 +166,7 @@ function UIScrollArea:ensureChildVisible(child)
|
|||||||
self.horizontalScrollBar:decrement(deltaX)
|
self.horizontalScrollBar:decrement(deltaX)
|
||||||
end
|
end
|
||||||
|
|
||||||
deltaX = (child:getX() + child:getWidth()) - (paddingRect.x + paddingRect.width)
|
deltaX = (child:getX() + child:getWidth() + offset.x) - (paddingRect.x + paddingRect.width)
|
||||||
if deltaX > 0 then
|
if deltaX > 0 then
|
||||||
self.horizontalScrollBar:increment(deltaX)
|
self.horizontalScrollBar:increment(deltaX)
|
||||||
end
|
end
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
|||||||
Module
|
Module
|
||||||
name: game_outfit
|
name: game_outfit
|
||||||
description: Change local player outfit
|
description: Change local player outfit
|
||||||
author: Vithrax
|
author: Oen44
|
||||||
discord: Vithrax#5814
|
website: https://discord.gg/DUkqbedmgP
|
||||||
sandboxed: true
|
sandboxed: true
|
||||||
scripts: [ outfit ]
|
scripts: [ outfit ]
|
||||||
@onLoad: init()
|
@onLoad: init()
|
||||||
|
@ -1,3 +1 @@
|
|||||||
OutfitWindow
|
OutfitWindow
|
||||||
@onEnter: modules.game_outfit.accept()
|
|
||||||
@onEscape: self:hide()
|
|
BIN
otclient_dx.exe
BIN
otclient_dx.exe
Binary file not shown.
BIN
otclient_gl.exe
BIN
otclient_gl.exe
Binary file not shown.
BIN
otclient_linux
BIN
otclient_linux
Binary file not shown.
BIN
otclient_mac
BIN
otclient_mac
Binary file not shown.
BIN
otclientv8.apk
BIN
otclientv8.apk
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user