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

@@ -9,7 +9,7 @@ Module
load-later:
- client_topmenu
- client_background
- client_about
//- client_about
- client_options
- client_terminal
- client_modulemanager

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

View File

@@ -80,6 +80,7 @@ function EnterGame.init()
enterGame:getChildById('accountNameLineEdit'):focus()
-- only open entergame when app starts
enterGame:hide()
if not g_app.isRunning() then
if #account > 0 and autologin then
addEvent(EnterGame.doLogin)

View File

@@ -1,13 +1,13 @@
Label < UILabel
font: verdana-11px-antialised
color: #aaaaaa
color: #bbbbbb
$disabled:
color: #aaaaaa88
color: #bbbbbb88
GameLabel < UILabel
font: verdana-11px-antialised
color: #aaaaaa
color: #bbbbbb
FrameCounter < UIFrameCounter
size: 68 16