* 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()
|
之前 宽度: | 高度: | 大小: 518 B 之后 宽度: | 高度: | 大小: 518 B |
之前 宽度: | 高度: | 大小: 696 B 之后 宽度: | 高度: | 大小: 696 B |
之前 宽度: | 高度: | 大小: 331 B 之后 宽度: | 高度: | 大小: 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
|
之前 宽度: | 高度: | 大小: 470 B 之后 宽度: | 高度: | 大小: 470 B |
之前 宽度: | 高度: | 大小: 426 B 之后 宽度: | 高度: | 大小: 426 B |
之前 宽度: | 高度: | 大小: 4.3 KiB 之后 宽度: | 高度: | 大小: 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
|
之前 宽度: | 高度: | 大小: 266 B 之后 宽度: | 高度: | 大小: 266 B |
之前 宽度: | 高度: | 大小: 3.7 KiB 之后 宽度: | 高度: | 大小: 3.7 KiB |
之前 宽度: | 高度: | 大小: 9.8 KiB 之后 宽度: | 高度: | 大小: 9.8 KiB |
之前 宽度: | 高度: | 大小: 3.6 KiB 之后 宽度: | 高度: | 大小: 3.6 KiB |
之前 宽度: | 高度: | 大小: 5.8 KiB 之后 宽度: | 高度: | 大小: 5.8 KiB |
之前 宽度: | 高度: | 大小: 825 B 之后 宽度: | 高度: | 大小: 825 B |
之前 宽度: | 高度: | 大小: 833 B 之后 宽度: | 高度: | 大小: 833 B |
之前 宽度: | 高度: | 大小: 859 B 之后 宽度: | 高度: | 大小: 859 B |
之前 宽度: | 高度: | 大小: 548 B 之后 宽度: | 高度: | 大小: 548 B |
之前 宽度: | 高度: | 大小: 262 B 之后 宽度: | 高度: | 大小: 262 B |
之前 宽度: | 高度: | 大小: 457 B 之后 宽度: | 高度: | 大小: 457 B |
之前 宽度: | 高度: | 大小: 34 KiB 之后 宽度: | 高度: | 大小: 34 KiB |
之前 宽度: | 高度: | 大小: 151 B 之后 宽度: | 高度: | 大小: 151 B |
之前 宽度: | 高度: | 大小: 152 B 之后 宽度: | 高度: | 大小: 152 B |
之前 宽度: | 高度: | 大小: 1.1 KiB 之后 宽度: | 高度: | 大小: 1.1 KiB |
之前 宽度: | 高度: | 大小: 262 B 之后 宽度: | 高度: | 大小: 262 B |
之前 宽度: | 高度: | 大小: 241 B 之后 宽度: | 高度: | 大小: 241 B |
之前 宽度: | 高度: | 大小: 179 B 之后 宽度: | 高度: | 大小: 179 B |
之前 宽度: | 高度: | 大小: 400 B 之后 宽度: | 高度: | 大小: 400 B |
之前 宽度: | 高度: | 大小: 415 B 之后 宽度: | 高度: | 大小: 415 B |
之前 宽度: | 高度: | 大小: 35 KiB 之后 宽度: | 高度: | 大小: 35 KiB |
@ -1,5 +1,5 @@
|
||||
Item < UIItem
|
||||
size: 34 34
|
||||
image-source: /core_styles/images/item.png
|
||||
image-source: /core_styles/styles/images/item.png
|
||||
font: verdana-11px-rounded
|
||||
border-color: white
|
||||
|
@ -1,5 +1,5 @@
|
||||
HorizontalSeparator < UIWidget
|
||||
image-source: /core_styles/images/horizontal_separator.png
|
||||
image-source: /core_styles/styles/images/horizontal_separator.png
|
||||
image-border-top: 2
|
||||
height: 2
|
||||
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
|