mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-29 18:59:20 +02:00
Updated to OTCv8 3.1 rev 211
This commit is contained in:
parent
ac617e456a
commit
5050b080f2
BIN
data/images/game/floor.png
Normal file
BIN
data/images/game/floor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
@ -8,6 +8,7 @@ CreatureButton < UICreatureButton
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
phantom: true
|
||||
old-scaling: true
|
||||
|
||||
UIWidget
|
||||
id: spacer
|
||||
|
@ -103,46 +103,12 @@ function onShowFloorChange(checkBox, checked)
|
||||
local newMargin = floor:getMarginRight() + 8
|
||||
floor:setMarginRight(newMargin)
|
||||
if newMargin >= 64 then
|
||||
for i = 1, floorTiles do
|
||||
local sprites = {}
|
||||
local startIndex = 1 + ((i - 1) * floorTiles)
|
||||
local endIndex = i * floorTiles
|
||||
|
||||
for k = startIndex, endIndex do
|
||||
sprites[#sprites + 1] = floor:getChildByIndex(k):getSpriteId()
|
||||
end
|
||||
|
||||
table.insert(sprites, #sprites, table.remove(sprites, 1))
|
||||
|
||||
local sid = 1
|
||||
for k = startIndex, endIndex do
|
||||
floor:getChildByIndex(k):setSpriteId(sprites[sid])
|
||||
sid = sid + 1
|
||||
end
|
||||
end
|
||||
floor:setMarginRight(0)
|
||||
end
|
||||
elseif direction == Directions.West then
|
||||
local newMargin = floor:getMarginLeft() + 8
|
||||
floor:setMarginLeft(newMargin)
|
||||
if newMargin >= 64 then
|
||||
for i = 1, floorTiles do
|
||||
local sprites = {}
|
||||
local startIndex = 1 + ((i - 1) * floorTiles)
|
||||
local endIndex = i * floorTiles
|
||||
|
||||
for k = startIndex, endIndex do
|
||||
sprites[#sprites + 1] = floor:getChildByIndex(k):getSpriteId()
|
||||
end
|
||||
|
||||
table.insert(sprites, 1, table.remove(sprites, #sprites))
|
||||
|
||||
local sid = 1
|
||||
for k = startIndex, endIndex do
|
||||
floor:getChildByIndex(k):setSpriteId(sprites[sid])
|
||||
sid = sid + 1
|
||||
end
|
||||
end
|
||||
floor:setMarginLeft(0)
|
||||
end
|
||||
end
|
||||
@ -238,8 +204,7 @@ function create(currentOutfit, outfitList, mountList, wingList, auraList, shader
|
||||
|
||||
floor = window.preview.panel.floor
|
||||
for i = 1, floorTiles * floorTiles do
|
||||
local tile = g_ui.createWidget("UISprite", floor)
|
||||
tile:setSpriteId(math.random(10057, 10064))
|
||||
g_ui.createWidget("FloorTile", floor)
|
||||
end
|
||||
floor:hide()
|
||||
|
||||
|
@ -1 +1,6 @@
|
||||
FloorTile < UIWidget
|
||||
image-source: /images/game/floor
|
||||
size: 32 32
|
||||
phantom: true
|
||||
|
||||
OutfitWindow
|
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