bug report module

* change modules authors and website
* avoid anchors recursivity crash
* update README
This commit is contained in:
Eduardo Bart
2012-05-01 10:06:38 -03:00
parent 69614da8cb
commit 788a831f24
39 changed files with 204 additions and 68 deletions

View File

@@ -1,8 +1,8 @@
Module
name: client
description: Initialize the client and setups its main window
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
autoload: true
autoload-priority: 100
reloadable: false

View File

@@ -1,8 +1,8 @@
Module
name: client_background
description: Handles the background of the login screen
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- client_topmenu

View File

@@ -1,8 +1,8 @@
Module
name: client_entergame
description: Manages enter game and character list windows
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- client_topmenu

View File

@@ -1,8 +1,8 @@
Module
name: client_locales
description: Translates texts to selected language
author: OTClient team
website: https://github.com/edubart/otclient
author: baxnie
website: www.otclient.info
dependencies:
- client_topmenu

View File

@@ -1,8 +1,8 @@
Module
name: client_modulemanager
description: Manage other modules
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- client_topmenu

View File

@@ -1,8 +1,8 @@
Module
name: client_options
description: Create the options window
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- client_topmenu

View File

@@ -1,8 +1,8 @@
Module
name: client_terminal
description: Terminal for executing lua functions
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
@onLoad: |
dofile 'terminal'

View File

@@ -1,8 +1,8 @@
Module
name: client_topmenu
description: Create the top menu
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
@onLoad: |
dofile 'topmenu'

View File

@@ -2,7 +2,7 @@ Module
name: core_lib
description: Contains core lua classes, functions and constants used by other modules
author: OTClient team
website: https://github.com/edubart/otclient
website: www.otclient.info
autoload: true
autoload-priority: 10
reloadable: false

View File

@@ -2,7 +2,7 @@ Module
name: core_styles
description: Contains ui styles used by other modules
author: OTClient team
website: https://github.com/edubart/otclient
website: www.otclient.info
autoload: true
autoload-priority: 20
reloadable: false

View File

@@ -2,7 +2,7 @@ Module
name: game
description: Create the game interface, where the ingame stuff starts
author: OTClient team
website: https://github.com/edubart/otclient
website: www.otclient.info
dependencies:
- game_tibiafiles
@@ -27,6 +27,7 @@ Module
- game_playertrade
- game_questlog
- game_ruleviolation
- game_bugreport
@onLoad: |
importStyle 'styles/items.otui'

View File

@@ -1,8 +1,8 @@
Module
name: game_battle
description: Manage battle window
author: OTClient team
website: https://github.com/edubart/otclient
author: andrefaramir
website: www.otclient.info
icon: battle.png
dependencies:

View File

@@ -0,0 +1,36 @@
BugReport = {}
local bugReportWindow
local bugTextEdit
local HOTKEY = 'Ctrl+Z'
function BugReport.init()
importStyle 'bugreport.otui'
bugReportWindow = createWidget('BugReportWindow', rootWidget)
bugReportWindow:hide()
bugTextEdit = bugReportWindow:getChildById('bugTextEdit')
Keyboard.bindKeyDown(HOTKEY, BugReport.show)
end
function BugReport.terminate()
Keyboard.unbindKeyDown(HOTKEY)
bugReportWindow:destroy()
bugReportWindow = nil
bugTextEdit = nil
end
function BugReport.doReport()
g_game.reportBug(bugTextEdit:getText())
bugReportWindow:hide()
TextMessage.displayEventAdvance(tr('Bug report sent.'))
end
function BugReport.show()
bugTextEdit:setText('')
bugReportWindow:show()
bugReportWindow:raise()
bugReportWindow:focus()
end

View File

@@ -0,0 +1,15 @@
Module
name: game_bugreport
description: Bug report interface (Ctrl+Z)
author: edubart
website: www.otclient.info
dependencies:
- game
@onLoad: |
dofile 'bugreport'
BugReport.init()
@onUnload: |
BugReport.terminate()

View File

@@ -0,0 +1,40 @@
BugReportWindow < MainWindow
!text: tr('Report Bug')
size: 280 250
&onEnter: BugReport.doReport
@onEscape: self:hide()
Label
id: bugLabel
!text: tr('Please use this dialog to only report bugs. Do not report rule violations here!')
text-wrap: true
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
height: 32
MultilineTextEdit
id: bugTextEdit
anchors.top: bugLabel.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: sendButton.top
margin-top: 4
margin-bottom: 8
Button
id: sendButton
!text: tr('Send')
anchors.bottom: cancelButton.bottom
anchors.right: cancelButton.left
margin-right: 10
width: 80
&onClick: BugReport.doReport
Button
id: cancelButton
!text: tr('Cancel')
anchors.bottom: parent.bottom
anchors.right: parent.right
width: 80
@onClick: self:getParent():hide()

View File

@@ -1,8 +1,8 @@
Module
name: game_combatcontrols
description: Combat controls window
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_console
description: Manage chat window
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart, andrefaramir, baxnie
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_containers
description: Manage containers
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart, baxnie
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_healthbar
description: Displays health and mana points
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_hotkeys
description: Manage client hotkeys
author: OTClient team
website: https://github.com/edubart/otclient
author: andrefaramir
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_inventory
description: View local player equipments window
author: OTClient team
website: https://github.com/edubart/otclient
author: baxnie, edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_minimap
description: Manage minimap
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_npctrade
description: NPC trade interface
author: OTClient team
website: https://github.com/edubart/otclient
author: andrefaramir, baxnie
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_outfit
description: Change local player outfit
author: OTClient team
website: https://github.com/edubart/otclient
author: baxnie, edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -1,7 +1,46 @@
PlayerTrade = {}
-- g_game.inspectTrade(counterOffer, index)
-- g_game.acceptTrade()
-- g_game.rejectTrade()
local tradeWindow
local function createTrade()
if tradeWindow then
tradeWindow:destroy()
tradeWindow = nil
end
tradeWindow = createWidget('TradeWindow', rootWidget)
end
local function onOwnTrade(name, items)
local firstItem = items[1]
local tradeItemWidget = tradeWindow:getChildById('tradeItem')
tradeItemWidget:setItem(firstItem)
end
local function onCounterTrade(name, items)
end
local function onCloseTrade()
tradeWindow:destroy()
tradeWindow = nil
end
function PlayerTrade.init()
importStyle 'tradewindow.otui'
connect(g_game, { onOwnTrade = onGameOwnTrade,
onCounterTrade = onGameCounterTrade,
onCloseTrade = onGameCloseTrade })
end
function PlayerTrade.terminate()
disconnect(g_game, { onOwnTrade = onGameOwnTrade,
onCounterTrade = onGameCounterTrade,
onCloseTrade = onGameCloseTrade })
end

View File

@@ -1,8 +1,8 @@
Module
name: game_playertrade
description: Allow to trade items with players
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -4,9 +4,6 @@ local questLogButton
local questLogWindow
local questLineWindow
-- g_game.requestQuestLog()
-- g_game.requestQuestLine(questId)
local function onGameQuestLog(quests)
QuestLog.destroyWindows()
@@ -84,4 +81,7 @@ function QuestLog.terminate()
disconnect(g_game, { onQuestLine= onGameQuestLine })
QuestLog.destroyWindows()
questLogButton:destroy()
questLogButton = nil
end

View File

@@ -1,8 +1,8 @@
Module
name: game_questlog
description: View game quests status
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_ruleviolation
description: Rule violation interface
author: OTClient team
website: https://github.com/edubart/otclient
description: Rule violation interface (Ctrl+Y)
author: andrefaramir
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_skills
description: Manage skills window
author: OTClient team
website: https://github.com/edubart/otclient
author: baxnie, edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -15,15 +15,15 @@ local function onGameEditText(id, itemId, maxLength, text, writter, time)
textEdit:setText(text)
textEdit:setEnabled(writeable)
local desc = tr('You read the following')
local desc = ''
if #writter > 0 then
desc = desc .. tr(', written by \n%s\n', writter)
desc = tr('You read the following, written by \n%s\n', writter)
if #time > 0 then
desc = desc .. tr('on %s.\n', time)
end
elseif #time > 0 then
desc = desc .. tr(', written on %s.\n', time)
desc = tr('You read the following, written on %s.\n', time)
end
if #text == 0 and not writeable then

View File

@@ -1,8 +1,8 @@
Module
name: game_textbooks
description: Allow to edit text books and lists
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_textmessage
description: Manage game text messages
author: OTClient team
website: https://github.com/edubart/otclient
author: edubart
website: www.otclient.info
dependencies:
- game

View File

@@ -1,8 +1,8 @@
Module
name: game_viplist
description: Manage vip list window
author: OTClient team
website: https://github.com/edubart/otclient
author: baxnie, edubart
website: www.otclient.info
@onLoad: |
dofile 'viplist'