mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
reorganize modules
This commit is contained in:
13
modules/client/client.lua
Normal file
13
modules/client/client.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
Client = { }
|
||||
|
||||
-- TODO: load and save configurations
|
||||
function Client.init()
|
||||
g_window.move({ x=220, y=220 })
|
||||
g_window.resize({ width=800, height=600 })
|
||||
g_window.setTitle('OTClient')
|
||||
g_window.setIcon('clienticon.png')
|
||||
return true
|
||||
end
|
||||
|
||||
function Client.terminate()
|
||||
end
|
||||
22
modules/client/client.otmod
Normal file
22
modules/client/client.otmod
Normal file
@@ -0,0 +1,22 @@
|
||||
Module
|
||||
name: client
|
||||
description: Load all other otclient dependecies
|
||||
author: OTClient team
|
||||
website: https://github.com/edubart/otclient
|
||||
|
||||
// NOTE: order does matter
|
||||
dependencies:
|
||||
- client_background
|
||||
- client_topmenu
|
||||
- client_tibiafiles
|
||||
- client_about
|
||||
- client_options
|
||||
- client_entergame
|
||||
- game
|
||||
|
||||
onLoad: |
|
||||
require 'client'
|
||||
return Client.init()
|
||||
|
||||
onUnload: |
|
||||
Client.terminate()
|
||||
BIN
modules/client/clienticon.png
Normal file
BIN
modules/client/clienticon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 518 B |
Reference in New Issue
Block a user