mirror of
https://github.com/edubart/otclient.git
synced 2025-10-13 19:14:56 +02:00
back to otclient dev, with new background!
* show otclient version in background * disable about module (don't really need it) * new function for formating strings like sprintf, Fw::formatString * new nice background (taken from RPG maker XV) * update contact information in README * fix text rendering issues with opacity
This commit is contained in:
@@ -8,6 +8,11 @@ function Background.init()
|
||||
background = displayUI('background.otui')
|
||||
background:lower()
|
||||
|
||||
local clientVersionLabel = background:getChildById('clientVersionLabel')
|
||||
clientVersionLabel:setText('OTClient ' .. g_app.getVersion() .. '\n' ..
|
||||
'Built on ' .. g_app.getBuildDate())
|
||||
Effects.fadeIn(clientVersionLabel, 1500)
|
||||
|
||||
connect(g_game, { onGameStart = Background.hide })
|
||||
connect(g_game, { onGameEnd = Background.show })
|
||||
end
|
||||
|
@@ -1,6 +1,6 @@
|
||||
Panel
|
||||
id: background
|
||||
image-source: /client_background/background.png
|
||||
image-source: /client_background/bg.png
|
||||
image-smooth: true
|
||||
image-fixed-ratio: true
|
||||
anchors.top: topMenu.bottom
|
||||
@@ -9,3 +9,14 @@ Panel
|
||||
anchors.bottom: parent.bottom
|
||||
margin-top: 1
|
||||
focusable: false
|
||||
|
||||
UILabel
|
||||
background-color: #00000099
|
||||
id: clientVersionLabel
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
text-offset: 4 2
|
||||
height: 32
|
||||
width: 120
|
||||
color: #ffffff
|
||||
font: verdana-11px-monochrome
|
Binary file not shown.
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.9 MiB |
Reference in New Issue
Block a user