mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 07:26:49 +01:00
rework on dat and spr loader
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Button < UIButton
|
||||
font: helvetica-11px-bold
|
||||
font-color: 240 173 77
|
||||
font-color: #f0ad4dff
|
||||
size: 106 24
|
||||
border-image:
|
||||
source: /core_ui/images/button.png
|
||||
|
||||
@@ -6,7 +6,7 @@ FlatPanel < Panel
|
||||
border: 4
|
||||
|
||||
RoundedPanel < Panel
|
||||
color: 255 255 255 192
|
||||
color: #ffffffc0
|
||||
border-image:
|
||||
source: /core_ui/images/panel_rounded.png
|
||||
border: 4
|
||||
|
||||
@@ -2,7 +2,7 @@ GFX = { }
|
||||
|
||||
function GFX.fadeIn(widget, time, elapsed)
|
||||
if not elapsed then elapsed = 0 end
|
||||
if not time then time = 750 end
|
||||
if not time then time = 250 end
|
||||
widget.opacity = math.min((255*elapsed)/time, 255)
|
||||
if elapsed < time then
|
||||
scheduleEvent(function()
|
||||
@@ -13,7 +13,7 @@ end
|
||||
|
||||
function GFX.fadeOut(widget, time, elapsed)
|
||||
if not elapsed then elapsed = 0 end
|
||||
if not time then time = 750 end
|
||||
if not time then time = 250 end
|
||||
widget.opacity = (255*(time - elapsed))/time
|
||||
if elapsed < time then
|
||||
scheduleEvent(function()
|
||||
|
||||
Reference in New Issue
Block a user