Skip to content
Snippets Groups Projects
Commit 58b9e321 authored by dg's avatar dg
Browse files

super waiting bar!

git-svn-id: http://svn.net-core.org/repos/t-engine4@4108 51575b47-30f0-44d4-a5cc-537603b46e54
parent f8cc4b12
No related branches found
No related tags found
No related merge requests found
game/engines/default/data/gfx/waiter/bar.png

2.82 KiB

game/engines/default/data/gfx/waiter/left.png

12.9 KiB

game/engines/default/data/gfx/waiter/middle.png

3.86 KiB

game/engines/default/data/gfx/waiter/right.png

13.1 KiB

......@@ -243,9 +243,12 @@ function _M:loadScreen(mod)
local logo = {(core.display.loadImage("/data/gfx/background/"..mod.short_name.."-logo.png") or core.display.loadImage("/data/gfx/background/tome-logo.png")):glTexture()}
local bar = {core.display.loadImage("/data/gfx/waiter/waiter_bar.png"):glTexture()}
local left = {core.display.loadImage("/data/gfx/waiter/left.png"):glTexture()}
local right = {core.display.loadImage("/data/gfx/waiter/right.png"):glTexture()}
local middle = {core.display.loadImage("/data/gfx/waiter/middle.png"):glTexture()}
local bar = {core.display.loadImage("/data/gfx/waiter/bar.png"):glTexture()}
local dw, dh = math.floor(sw / 2), 20
local dw, dh = math.floor(sw / 2), 54
local dx, dy = math.floor((sw - dw) / 2), sh - dh
return function()
......@@ -278,7 +281,10 @@ function _M:loadScreen(mod)
x2 = util.bound(x2, 0, dw)
local w, h = x2 - x, dh
bar[1]:toScreenFull(dx + x, dy, w, h, w * bar[4], h * bar[5])
middle[1]:toScreenFull(dx, dy, dw, middle[7], middle[2], middle[3])
bar[1]:toScreenFull(dx + x, dy, w, bar[7], bar[2], bar[3])
left[1]:toScreenFull(dx - left[6] + 5, dy + (middle[7] - left[7]) / 2, left[6], left[7], left[2], left[3])
right[1]:toScreenFull(dx + dw - 5, dy + (middle[7] - right[7]) / 2, right[6], right[7], right[2], right[3])
end
end)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment