Updated Top Menu, Health Info, Combat Controls, Console (Channels), Game Toggle Buttons, Minimap Layout, Game Interface Prompts, and Creature Draw Info.

* Added new left and right game button panels.
* Relocated main game toggle buttons to the right side of the screen to make it easier to toggle miniwindows.
* Added table.empty(t) function to table lib.
* Renamed module game_healthbar to game_healthinfo.
* Combat controls now save per character (e.g. Fight mode, chase mode, safe fight mode)
* Last channels open now save per character.
* Fixed typo in containers.lua.
* Added logout prompting window message when you logout via the logout button.
* Added exit promting window message when you attempt to exit the client.
* Repositioned some minimap buttons.
* Fixed so when creatures health percent is < 1 it will not draw the creature information.

Known Issues:
* If you move a container widget into the map rect if you move an item onto itself it will allow this to execute still dropping the item on the ground.
* The server is calling to open channels after onGameStart is executed causing it to focus the last tab opened. Fix: Don't save channels to the settings that are opened by the server.
This commit is contained in:
BeniS
2012-07-13 04:45:22 +12:00
parent 9523b5cde5
commit 8850528091
54 changed files with 500 additions and 293 deletions

View File

@@ -42,7 +42,7 @@ function Minimap.init()
g_keyboard.bindKeyDown('Ctrl+M', Minimap.toggle)
minimapButton = TopMenu.addGameToggleButton('minimapButton', tr('Minimap') .. ' (Ctrl+M)', 'minimap.png', Minimap.toggle)
minimapButton = TopMenu.addRightGameToggleButton('minimapButton', tr('Minimap') .. ' (Ctrl+M)', 'minimap.png', Minimap.toggle)
minimapButton:setOn(true)
minimapWindow = g_ui.loadUI('minimap.otui', GameInterface.getRightPanel())

View File

@@ -1,7 +1,7 @@
Module
name: game_minimap
description: Manage minimap
author: edubart
author: edubart, BeniS
website: www.otclient.info
dependencies:

View File

@@ -76,16 +76,21 @@ MiniWindow
$disabled:
image-color: #ffffff88
Button
id: zoomOut
text: -
font: terminus-14px-bold
size: 16 16
anchors.left: minimap.right
anchors.top: compass.bottom
FloorUpControl
id: levelUp
anchors.left: minimap.right
anchors.top: compass.bottom
margin-top: 10
margin-left: 10
margin-left: 15
enabled: true
@onClick: Minimap.onButtonClick(self:getId())
FloorDownControl
id: levelDown
anchors.left: levelUp.left
anchors.top: levelUp.bottom
margin-top: 4
enabled: true
@onClick: Minimap.onButtonClick(self:getId())
@@ -93,25 +98,20 @@ MiniWindow
id: zoomIn
text: +
size: 16 16
anchors.left: zoomOut.left
anchors.top: zoomOut.bottom
margin-top: 4
anchors.left: levelUp.right
anchors.top: levelUp.top
margin-left: 10
enabled: true
@onClick: Minimap.onButtonClick(self:getId())
FloorUpControl
id: levelUp
anchors.left: zoomOut.right
anchors.top: zoomOut.top
margin-left: 15
enabled: true
@onClick: Minimap.onButtonClick(self:getId())
FloorDownControl
id: levelDown
anchors.left: zoomIn.right
anchors.top: zoomIn.top
margin-left: 15
Button
id: zoomOut
text: -
font: terminus-14px-bold
size: 16 16
anchors.left: levelDown.right
anchors.top: levelDown.top
margin-left: 10
enabled: true
@onClick: Minimap.onButtonClick(self:getId())