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:
Eduardo Bart
2012-03-16 10:28:29 -03:00
parent b46d4c4d5f
commit a24212d4de
20 changed files with 69 additions and 21 deletions

View File

@@ -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

View File

@@ -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