Fix a warning

This commit is contained in:
Eduardo Bart 2013-01-23 16:55:10 -02:00
parent 992acd8873
commit 311bc220a8
4 changed files with 16 additions and 20 deletions

View File

@ -40,7 +40,7 @@ locale = {
["All modules and scripts were reloaded."] = "Todos módulos e scripts foram recarregados.", ["All modules and scripts were reloaded."] = "Todos módulos e scripts foram recarregados.",
["Allow auto chase override"] = "Permitir sobrescrever o modo de perseguição", ["Allow auto chase override"] = "Permitir sobrescrever o modo de perseguição",
["Also known as dash in tibia community, recommended\nfor playing characters with high speed"] = "Também conhecido como dash na comunidade tibiana, recomendado\npara jogar com personagem que possuam velocidade alta", ["Also known as dash in tibia community, recommended\nfor playing characters with high speed"] = "Também conhecido como dash na comunidade tibiana, recomendado\npara jogar com personagem que possuam velocidade alta",
["Ambient light: %s%%"] = false, ["Ambient light: %s%%"] = "Luz ambiente: %s%%",
["Amount:"] = "Quantidade:", ["Amount:"] = "Quantidade:",
["Amount"] = "Quantidade", ["Amount"] = "Quantidade",
["Anonymous"] = "Anônimo", ["Anonymous"] = "Anônimo",
@ -72,7 +72,7 @@ locale = {
["Character List"] = "Lista de personagens", ["Character List"] = "Lista de personagens",
["Classic control"] = "Controle clássico", ["Classic control"] = "Controle clássico",
["Clear current message window"] = "Apagar mensagens", ["Clear current message window"] = "Apagar mensagens",
["Clear Messages"] = false, ["Clear Messages"] = "Limpar mensagens",
["Clear object"] = "Limpar objeto", ["Clear object"] = "Limpar objeto",
["Client needs update."] = "O client do jogo precisa ser atualizado", ["Client needs update."] = "O client do jogo precisa ser atualizado",
["Close"] = "Fechar", ["Close"] = "Fechar",
@ -87,25 +87,25 @@ locale = {
["Copy message"] = "Copiar mensagem", ["Copy message"] = "Copiar mensagem",
["Copy name"] = "Copiar nome", ["Copy name"] = "Copiar nome",
["Copy Name"] = "Copiar Nome", ["Copy Name"] = "Copiar Nome",
["Create Map Mark"] = false, ["Create Map Mark"] = "Criar marca no mapa",
["Create mark"] = false, ["Create mark"] = "Criar marca",
["Create New Offer"] = "Criar nova oferta", ["Create New Offer"] = "Criar nova oferta",
["Create Offer"] = "Criar oferta", ["Create Offer"] = "Criar oferta",
["Current hotkeys:"] = "Atalhos atuais", ["Current hotkeys:"] = "Atalhos atuais",
["Current hotkey to add: %s"] = "Atalho atual para adicionar: %s", ["Current hotkey to add: %s"] = "Atalho atual para adicionar: %s",
["Current Offers"] = "Ofertas atuais", ["Current Offers"] = "Ofertas atuais",
["Default"] = "Padrão", ["Default"] = "Padrão",
["Delete mark"] = false, ["Delete mark"] = "Deletar marca",
["Description:"] = false, ["Description:"] = "Descrição",
["Description"] = "Descrição", ["Description"] = "Descrição",
["Destructive Behaviour"] = "Comportamento destrutivo", ["Destructive Behaviour"] = "Comportamento destrutivo",
["Detail"] = "Detalhe", ["Detail"] = "Detalhe",
["Details"] = "Detalhes", ["Details"] = "Detalhes",
["Disable Shared Experience"] = "Desativar experiência compartilhada", ["Disable Shared Experience"] = "Desativar experiência compartilhada",
["Dismount"] = false, ["Dismount"] = "Desmontar",
["Display connection speed to the server (milliseconds)"] = "Exibir a velocidade de conexão com o servidor (milisegundos)", ["Display connection speed to the server (milliseconds)"] = "Exibir a velocidade de conexão com o servidor (milisegundos)",
["Distance Fighting"] = "Combate a Distância", ["Distance Fighting"] = "Combate a Distância",
["Don't stretch/shrink Game Window"] = false, ["Don't stretch/shrink Game Window"] = "Não esticar a janela do game",
["Edit hotkey text:"] = "Editar texto do atalho", ["Edit hotkey text:"] = "Editar texto do atalho",
["Edit List"] = "Editar lista", ["Edit List"] = "Editar lista",
["Edit Text"] = "Editar Texto", ["Edit Text"] = "Editar Texto",
@ -116,7 +116,7 @@ locale = {
["Enable walk booster"] = "Ativar andar intensificado", ["Enable walk booster"] = "Ativar andar intensificado",
["Enter Game"] = "Entrar no jogo", ["Enter Game"] = "Entrar no jogo",
["Enter one name per line."] = "Entre somente um nome por linha.", ["Enter one name per line."] = "Entre somente um nome por linha.",
["Enter with your account again to update your client."] = false, ["Enter with your account again to update your client."] = "Entre com sua conta denovo para atualizar o client.",
["Error"] = "Erro", ["Error"] = "Erro",
["Error"] = "Erro", ["Error"] = "Erro",
["Excessive Unjustified Player Killing"] = "Assassinato em excesso, sem justificativa, de jogadores", ["Excessive Unjustified Player Killing"] = "Assassinato em excesso, sem justificativa, de jogadores",
@ -130,7 +130,7 @@ locale = {
["Fist Fighting"] = "Porrada", ["Fist Fighting"] = "Porrada",
["Follow"] = "Seguir", ["Follow"] = "Seguir",
["Force Exit"] = "Forçar Saida", ["Force Exit"] = "Forçar Saida",
["For Your Information"] = false, ["For Your Information"] = "Para sua informação",
["Free Account"] = false, ["Free Account"] = false,
["Fullscreen"] = "Tela cheia", ["Fullscreen"] = "Tela cheia",
["Game"] = "Jogo", ["Game"] = "Jogo",

View File

@ -33,7 +33,7 @@ tradeItems = {}
playerItems = nil playerItems = nil
selectedItem = nil selectedItem = nil
mouseWidget = nil cancelNextRelease = nil
function init() function init()
npcWindow = g_ui.displayUI('npctrade') npcWindow = g_ui.displayUI('npctrade')
@ -65,10 +65,7 @@ function init()
radioTabs:selectWidget(buyTab) radioTabs:selectWidget(buyTab)
radioTabs.onSelectionChange = onTradeTypeChange radioTabs.onSelectionChange = onTradeTypeChange
mouseWidget = g_ui.createWidget('UIButton') cancelNextRelease = false
mouseWidget:setVisible(false)
mouseWidget:setFocusable(false)
mouseWidget.cancelNextRelease = false
if g_game.isOnline() then if g_game.isOnline() then
playerFreeCapacity = g_game.getLocalPlayer():getFreeCapacity() playerFreeCapacity = g_game.getLocalPlayer():getFreeCapacity()
@ -157,8 +154,8 @@ function onSearchTextChange()
end end
function itemPopup(self, mousePosition, mouseButton) function itemPopup(self, mousePosition, mouseButton)
if mouseWidget.cancelNextRelease then if cancelNextRelease then
mouseWidget.cancelNextRelease = false cancelNextRelease = false
return false return false
end end
@ -169,7 +166,7 @@ function itemPopup(self, mousePosition, mouseButton)
return true return true
elseif ((g_mouse.isPressed(MouseLeftButton) and mouseButton == MouseRightButton) elseif ((g_mouse.isPressed(MouseLeftButton) and mouseButton == MouseRightButton)
or (g_mouse.isPressed(MouseRightButton) and mouseButton == MouseLeftButton)) then or (g_mouse.isPressed(MouseRightButton) and mouseButton == MouseLeftButton)) then
mouseWidget.cancelNextRelease = true cancelNextRelease = true
g_game.inspectNpcTrade(self:getItem()) g_game.inspectNpcTrade(self:getItem())
return true return true
end end

View File

@ -21,6 +21,5 @@
*/ */
#include "platform.h" #include "platform.h"
#include <boost/filesystem.hpp>
Platform g_platform; Platform g_platform;

View File

@ -43,7 +43,7 @@ void UIWidget::initBaseStyle()
// generate an unique id, this is need because anchored layouts find widgets by id // generate an unique id, this is need because anchored layouts find widgets by id
static unsigned long id = 1; static unsigned long id = 1;
m_id = stdext::format("widget %d", id++); m_id = stdext::format("widget%d", id++);
} }
void UIWidget::parseBaseStyle(const OTMLNodePtr& styleNode) void UIWidget::parseBaseStyle(const OTMLNodePtr& styleNode)