* rework client modules * hide main window when loading * remake top menu functions * rework modules autoload * improve path resolving for otml and lua * move core_widgets to core_lib * fix tooltip issues * split some styles * add bit32 lua library * fix assert issues * fix compilation on linux 32 systems * rework gcc compile options * renable and fix some warnings * remove unused constants * speedup sprite cache * move UIGame to lua (not funcional yet) * fix a lot of issues in x11 window * fix crash handler * add some warnings do uiwidget and much more...master
@ -0,0 +1,23 @@
|
|||||||
|
Module
|
||||||
|
name: client
|
||||||
|
description: Initialize the client and setups its main window
|
||||||
|
author: OTClient team
|
||||||
|
website: https://github.com/edubart/otclient
|
||||||
|
autoload: true
|
||||||
|
autoload-priority: 100
|
||||||
|
|
||||||
|
load-later:
|
||||||
|
- client_topmenu
|
||||||
|
- client_background
|
||||||
|
- client_about
|
||||||
|
- client_options
|
||||||
|
- client_terminal
|
||||||
|
- client_modulemanager
|
||||||
|
- client_entergame
|
||||||
|
|
||||||
|
@onLoad: |
|
||||||
|
dofile 'client'
|
||||||
|
Client.init()
|
||||||
|
|
||||||
|
@onUnload: |
|
||||||
|
Client.terminate()
|
Before Width: | Height: | Size: 518 B After Width: | Height: | Size: 518 B |
Before Width: | Height: | Size: 696 B After Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B |
@ -1,14 +0,0 @@
|
|||||||
Module
|
|
||||||
name: client_main
|
|
||||||
description: Initialize the client and setups its main window
|
|
||||||
author: OTClient team
|
|
||||||
website: https://github.com/edubart/otclient
|
|
||||||
autoload: true
|
|
||||||
autoload-antecedence: 100
|
|
||||||
|
|
||||||
onLoad: |
|
|
||||||
dofile 'client'
|
|
||||||
Client.init()
|
|
||||||
|
|
||||||
onUnload: |
|
|
||||||
Client.terminate()
|
|
@ -1,14 +0,0 @@
|
|||||||
Module
|
|
||||||
name: client_tibiafiles
|
|
||||||
description: Contains tibia spr and dat
|
|
||||||
unloadable: false
|
|
||||||
autoload: true
|
|
||||||
autoload-antecedence: 170
|
|
||||||
|
|
||||||
onLoad: |
|
|
||||||
if not g_thingsType.load('/client_tibiafiles/Tibia.dat') then
|
|
||||||
fatal("Unable to load dat file, please place a valid Tibia dat in modules/client_tibiafiles/Tibia.dat")
|
|
||||||
end
|
|
||||||
if not g_sprites.load('/client_tibiafiles/Tibia.spr') then
|
|
||||||
fatal("Unable to load spr file, please place a valid Tibia spr in modules/client_tibiafiles/Tibia.spr")
|
|
||||||
end
|
|
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
@ -1,15 +0,0 @@
|
|||||||
Module
|
|
||||||
name: core_fonts
|
|
||||||
description: Contains fonts used by core
|
|
||||||
author: OTClient team
|
|
||||||
website: https://github.com/edubart/otclient
|
|
||||||
autoload: true
|
|
||||||
autoload-antecedence: 30
|
|
||||||
|
|
||||||
onLoad: |
|
|
||||||
importFont 'verdana-11px-antialised'
|
|
||||||
importFont 'verdana-11px-monochrome'
|
|
||||||
importFont 'verdana-11px-rounded'
|
|
||||||
importFont 'terminus-14px-bold'
|
|
||||||
setDefaultFont 'verdana-11px-antialised'
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
function scheduleEvent(callback, delay)
|
|
||||||
local event = g_dispatcher.scheduleEvent(callback, delay)
|
|
||||||
|
|
||||||
-- must hold a reference to the callback, otherwise it would be collected
|
|
||||||
event._callback = callback
|
|
||||||
return event
|
|
||||||
end
|
|
||||||
|
|
||||||
function addEvent(callback, front)
|
|
||||||
local event = g_dispatcher.addEvent(callback, front)
|
|
||||||
-- must hold a reference to the callback, otherwise it would be collected
|
|
||||||
event._callback = callback
|
|
||||||
return event
|
|
||||||
end
|
|
||||||
|
|
||||||
function removeEvent(event)
|
|
||||||
if event then
|
|
||||||
event:cancel()
|
|
||||||
end
|
|
||||||
end
|
|
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 825 B |
Before Width: | Height: | Size: 833 B After Width: | Height: | Size: 833 B |
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 859 B |
Before Width: | Height: | Size: 548 B After Width: | Height: | Size: 548 B |
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 457 B After Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 151 B After Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 241 B |
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 415 B After Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
@ -1,5 +1,5 @@
|
|||||||
Item < UIItem
|
Item < UIItem
|
||||||
size: 34 34
|
size: 34 34
|
||||||
image-source: /core_styles/images/item.png
|
image-source: /core_styles/styles/images/item.png
|
||||||
font: verdana-11px-rounded
|
font: verdana-11px-rounded
|
||||||
border-color: white
|
border-color: white
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
HorizontalSeparator < UIWidget
|
HorizontalSeparator < UIWidget
|
||||||
image-source: /core_styles/images/horizontal_separator.png
|
image-source: /core_styles/styles/images/horizontal_separator.png
|
||||||
image-border-top: 2
|
image-border-top: 2
|
||||||
height: 2
|
height: 2
|
||||||
phantom: true
|
phantom: true
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
Module
|
|
||||||
name: core_widgets
|
|
||||||
description: Contains widgets used by other modules
|
|
||||||
author: OTClient team
|
|
||||||
website: https://github.com/edubart/otclient
|
|
||||||
reloadable: true
|
|
||||||
unloadble: false
|
|
||||||
autoload: true
|
|
||||||
autoload-antecedence: 40
|
|
||||||
|
|
||||||
onLoad: |
|
|
||||||
dofile 'uiwidget'
|
|
||||||
dofile 'uibutton'
|
|
||||||
dofile 'uilabel'
|
|
||||||
dofile 'uicheckbox'
|
|
||||||
dofile 'uicombobox'
|
|
||||||
dofile 'uispinbox'
|
|
||||||
dofile 'uiprogressbar'
|
|
||||||
dofile 'uitabbar'
|
|
||||||
dofile 'uipopupmenu'
|
|
||||||
dofile 'uiwindow'
|
|
||||||
dofile 'uiminiwindow'
|
|
||||||
dofile 'uiminiwindowcontainer'
|
|
||||||
dofile 'uiitem'
|
|
||||||
dofile 'uimessagebox'
|
|
||||||
|
|
||||||
dofile 'tooltip'
|
|
||||||
dofile 'radiogroup'
|
|
||||||
|
|
||||||
ToolTip.init()
|
|
||||||
|
|
||||||
onUnload: |
|
|
||||||
ToolTip.terminate()
|
|
@ -0,0 +1,11 @@
|
|||||||
|
Module
|
||||||
|
name: game_tibiafiles
|
||||||
|
description: Contains tibia spr and dat
|
||||||
|
|
||||||
|
@onLoad: |
|
||||||
|
if not g_thingsType.load('/game_tibiafiles/Tibia.dat') then
|
||||||
|
fatal("Unable to load dat file, please place a valid Tibia dat in modules/game_tibiafiles/Tibia.dat")
|
||||||
|
end
|
||||||
|
if not g_sprites.load('/game_tibiafiles/Tibia.spr') then
|
||||||
|
fatal("Unable to load spr file, please place a valid Tibia spr in modules/game_tibiafiles/Tibia.spr")
|
||||||
|
end
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |