restore some game functionallity

* i'm gradually restoring game functionality with the new modules design, though still a lot to do
* you can reload all scripts and modules using Ctrl+R shortcut while playing (finally! this is the reason of all this rework)
* a bunch of fixes, but new regression too :P
* fix performance issue that could lead freezes in the client in older machines
* completely new game module with new design
* fix crashs in map render
* remove uigame.cpp (now every game input is via lua)
* enable DEBUG macro by default, with it you are able to view any possible lua leak while running
This commit is contained in:
Eduardo Bart
2012-03-18 10:34:39 -03:00
parent 26629cf77c
commit c0611bfe2a
99 changed files with 938 additions and 388 deletions

View File

@@ -18,7 +18,7 @@ Button < UIButton
color: #f0ad4d88
image-color: #ffffff88
ConsoleButton < UIButton
TabButton < UIButton
size: 20 20
image-source: /core_styles/styles/images/tabbutton.png
image-color: white

View File

@@ -42,4 +42,4 @@ ComboBox < UIComboBox
image-clip: 0 20 89 20
$on:
image-clip: 0 40 89 20
image-clip: 0 40 89 20

View File

@@ -1,5 +0,0 @@
Creature < UICreature
size: 80 80
padding: 1
image-source: /core_styles/styles/images/panel_flat.png
image-border: 1

View File

@@ -1,5 +0,0 @@
Item < UIItem
size: 34 34
image-source: /core_styles/styles/images/item.png
font: verdana-11px-rounded
border-color: white

View File

@@ -4,4 +4,3 @@ ProgressBar < UIProgressBar
border: 1 black
image: /core_styles/styles/images/progressbar.png
image-border: 1

View File

@@ -3,4 +3,4 @@ HorizontalSeparator < UIWidget
image-border-top: 2
height: 2
phantom: true
focusable: false
focusable: false

View File

@@ -31,4 +31,4 @@ TabBarButton < UIButton
color: #80c7f8
$on !checked:
color: #F55E5E
color: #F55E5E

View File

@@ -22,24 +22,3 @@ Window < UIWindow
MainWindow < Window
anchors.centerIn: parent
MiniWindow < UIMiniWindow
font: verdana-11px-antialised
//icon: /core_styles/icons/login.png
icon-rect: 4 4 16 16
width: 192
height: 200
text-offset: 26 5
text-align: topLeft
margin-top: 2
margin-left: 6
margin-right: 6
move-policy: free updated
image-source: /core_styles/styles/images/mini_window.png
image-border: 4
image-border-top: 23
padding: 25 8 2 8
$on:
height: 24
image-border-bottom: 1