Refactor modules, closes #223

* All modules are sandboxed now
* All images,sounds,fonts,translations and styles were moved to "data" folder
* Reorganize image files folders
* Remove unmaintained modules: client_particles, client_shaders
* Implement new automatic way to load styles and fonts
* Add hide/show offline option in VipList
* Add invite/exclude to/from private channel in players menus
* Many other minor changes
This commit is contained in:
Eduardo Bart
2013-01-18 20:39:11 -02:00
parent 20d9176d10
commit 28b5fc1d5a
330 changed files with 1171 additions and 1823 deletions

View File

@@ -1,10 +1,10 @@
FlagButton < CheckBox
size: 15 15
margin-left: 2
image-source: images/flagcheckbox.png
image-source: /images/game/minimap/flagcheckbox
image-size: 15 15
image-border: 3
icon-source: images/mapflags.png
icon-source: /images/game/minimap/mapflags
icon-size: 11 11
icon-clip: 0 0 11 11
icon-offset: 2 4

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 819 B

View File

@@ -16,7 +16,7 @@ nextFlagId = 0
you change floor it will not update the minimap.
]]
function init()
g_ui.importStyle('flagwindow.otui')
g_ui.importStyle('flagwindow')
connect(g_game, {
onGameStart = online,
@@ -27,10 +27,10 @@ function init()
g_keyboard.bindKeyDown('Ctrl+M', toggle)
minimapButton = TopMenu.addRightGameToggleButton('minimapButton', tr('Minimap') .. ' (Ctrl+M)', 'minimap.png', toggle)
minimapButton = modules.client_topmenu.addRightGameToggleButton('minimapButton', tr('Minimap') .. ' (Ctrl+M)', '/images/topbuttons/minimap', toggle)
minimapButton:setOn(true)
minimapWindow = g_ui.loadUI('minimap.otui', modules.game_interface.getRightPanel())
minimapWindow = g_ui.loadUI('minimap', modules.game_interface.getRightPanel())
minimapWindow:setContentMinimumHeight(64)
minimapWindow:setContentMaximumHeight(256)

View File

@@ -4,6 +4,6 @@ Module
author: edubart, BeniS
website: www.otclient.info
sandboxed: true
scripts: [ minimap.lua ]
scripts: [ minimap ]
@onLoad: init()
@onUnload: terminate()

View File

@@ -11,27 +11,27 @@ MapControl < Button
FlagWidget < UIWidget
size: 11 11
icon-clip: 0 0 11 11
icon-source: /game_minimap/images/mapflags.png
icon-source: /images/game/minimap/mapflags
anchors.left: parent.left
anchors.top: parent.top
FloorUpControl < MapControl
icon-source: /game_minimap/images/floor_up.png
icon-source: /images/game/minimap/floor_up
FloorDownControl < MapControl
icon-source: /game_minimap/images/floor_down.png
icon-source: /images/game/minimap/floor_down
ZoomOutControl < MapControl
//image-source: /game_minimap/images/zoom_out.png
//image-source: /images/game/minimap/zoom_out
ZoomInControl < MapControl
//image-source: /game_minimap/images/zoom_in.png
//image-source: /images/game/minimap/zoom_in
MiniWindow
id: minimapWindow
!text: tr('Minimap')
height: 150
icon: minimap.png
icon: /images/topbuttons/minimap
@onClose: modules.game_minimap.onMiniWindowClose()
@onGeometryChange: updateMapFlags()
&save: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 910 B