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

@@ -21,10 +21,10 @@ function init()
g_keyboard.bindKeyDown('Ctrl+I', toggle)
inventoryButton = TopMenu.addRightGameToggleButton('inventoryButton', tr('Inventory') .. ' (Ctrl+I)', 'inventory.png', toggle)
inventoryButton = modules.client_topmenu.addRightGameToggleButton('inventoryButton', tr('Inventory') .. ' (Ctrl+I)', '/images/topbuttons/inventory', toggle)
inventoryButton:setOn(true)
inventoryWindow = g_ui.loadUI('inventory.otui', modules.game_interface.getRightPanel())
inventoryWindow = g_ui.loadUI('inventory', modules.game_interface.getRightPanel())
inventoryWindow:disableResize()
inventoryPanel = inventoryWindow:getChildById('contentsPanel')

View File

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

View File

@@ -2,58 +2,58 @@ InventoryItem < Item
HeadSlot < InventoryItem
id: slot1
image-source: /game_inventory/slots/head.png
image-source: /images/game/slots/head
&position: {x=65535, y=1, z=0}
BodySlot < InventoryItem
id: slot4
image-source: /game_inventory/slots/body.png
image-source: /images/game/slots/body
&position: {x=65535, y=4, z=0}
LegSlot < InventoryItem
id: slot7
image-source: /game_inventory/slots/legs.png
image-source: /images/game/slots/legs
&position: {x=65535, y=7, z=0}
FeetSlot < InventoryItem
id: slot8
image-source: /game_inventory/slots/feet.png
image-source: /images/game/slots/feet
&position: {x=65535, y=8, z=0}
NeckSlot < InventoryItem
id: slot2
image-source: /game_inventory/slots/neck.png
image-source: /images/game/slots/neck
&position: {x=65535, y=2, z=0}
LeftSlot < InventoryItem
id: slot6
image-source: /game_inventory/slots/left-hand.png
image-source: /images/game/slots/left-hand
&position: {x=65535, y=6, z=0}
FingerSlot < InventoryItem
id: slot9
image-source: /game_inventory/slots/finger.png
image-source: /images/game/slots/finger
&position: {x=65535, y=9, z=0}
BackSlot < InventoryItem
id: slot3
image-source: /game_inventory/slots/back.png
image-source: /images/game/slots/back
&position: {x=65535, y=3, z=0}
RightSlot < InventoryItem
id: slot5
image-source: /game_inventory/slots/right-hand.png
image-source: /images/game/slots/right-hand
&position: {x=65535, y=5, z=0}
AmmoSlot < InventoryItem
id: slot10
image-source: /game_inventory/slots/ammo.png
image-source: /images/game/slots/ammo
&position: {x=65535, y=10, z=0}
MiniWindow
id: inventoryWindow
!text: tr('Inventory')
icon: inventory.png
icon: /images/topbuttons/inventory
height: 175
@onClose: modules.game_inventory.onMiniWindowClose()
&save: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB