Pt translations, uicombobox, options

This commit is contained in:
Henrique Santiago 2013-02-01 14:31:24 -02:00
parent 6cd71ea02e
commit db73bbdea2
3 changed files with 16 additions and 3 deletions

View File

@ -112,6 +112,9 @@ locale = {
["Disable Shared Experience"] = "Desativar experiência compartilhada",
["Dismount"] = "Desmontar",
["Display connection speed to the server (milliseconds)"] = "Exibir a velocidade de conexão com o servidor (milisegundos)",
["Display creature health bars"] = "Exibir barras de vida das criaturas",
["Display creature names"] = "Exibir nomes das criaturas",
["Display text messages"] = "Exibir mensagens de texto",
["Distance Fighting"] = "Combate a Distância",
["Don't stretch or shrink Game Window"] = "Não esticar ou contrair a janela do game",
["Druid"] = "Druid",

View File

@ -85,6 +85,9 @@ function init()
optionsWindow:hide()
optionsButton = modules.client_topmenu.addLeftButton('optionsButton', tr('Options'), '/images/topbuttons/options', toggle)
optionsTabBar = optionsWindow:getChildById('optionsTabBar')
optionsTabBar:setContentWidget(optionsWindow:getChildById('optionsTabContent'))
addEvent(function() setup() end)
g_keyboard.bindKeyDown('Ctrl+Shift+F', function() toggleOption('fullscreen') end)
@ -117,9 +120,6 @@ function setup()
end
end
optionsTabBar = optionsWindow:getChildById('optionsTabBar')
optionsTabBar:setContentWidget(optionsWindow:getChildById('optionsTabContent'))
generalPanel = g_ui.loadUI('game')
optionsTabBar:addTab(tr('Game'), generalPanel, '/images/optionstab/game')

View File

@ -116,6 +116,16 @@ function UIComboBox:onStyleApply(styleName, styleNode)
self:addOption(option)
end
end
if styleNode.data then
for k,data in pairs(styleNode.data) do
local option = self.options[k]
if option then
option.data = data
end
end
end
for name,value in pairs(styleNode) do
if name == 'mouse-scroll' then
self.mouseScroll = value