Pt translations, uicombobox, options
This commit is contained in:
parent
6cd71ea02e
commit
db73bbdea2
|
@ -112,6 +112,9 @@ locale = {
|
||||||
["Disable Shared Experience"] = "Desativar experiência compartilhada",
|
["Disable Shared Experience"] = "Desativar experiência compartilhada",
|
||||||
["Dismount"] = "Desmontar",
|
["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)",
|
||||||
|
["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",
|
["Distance Fighting"] = "Combate a Distância",
|
||||||
["Don't stretch or shrink Game Window"] = "Não esticar ou contrair a janela do game",
|
["Don't stretch or shrink Game Window"] = "Não esticar ou contrair a janela do game",
|
||||||
["Druid"] = "Druid",
|
["Druid"] = "Druid",
|
||||||
|
|
|
@ -85,6 +85,9 @@ function init()
|
||||||
optionsWindow:hide()
|
optionsWindow:hide()
|
||||||
optionsButton = modules.client_topmenu.addLeftButton('optionsButton', tr('Options'), '/images/topbuttons/options', toggle)
|
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)
|
addEvent(function() setup() end)
|
||||||
|
|
||||||
g_keyboard.bindKeyDown('Ctrl+Shift+F', function() toggleOption('fullscreen') end)
|
g_keyboard.bindKeyDown('Ctrl+Shift+F', function() toggleOption('fullscreen') end)
|
||||||
|
@ -117,9 +120,6 @@ function setup()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
optionsTabBar = optionsWindow:getChildById('optionsTabBar')
|
|
||||||
optionsTabBar:setContentWidget(optionsWindow:getChildById('optionsTabContent'))
|
|
||||||
|
|
||||||
generalPanel = g_ui.loadUI('game')
|
generalPanel = g_ui.loadUI('game')
|
||||||
optionsTabBar:addTab(tr('Game'), generalPanel, '/images/optionstab/game')
|
optionsTabBar:addTab(tr('Game'), generalPanel, '/images/optionstab/game')
|
||||||
|
|
||||||
|
|
|
@ -116,6 +116,16 @@ function UIComboBox:onStyleApply(styleName, styleNode)
|
||||||
self:addOption(option)
|
self:addOption(option)
|
||||||
end
|
end
|
||||||
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
|
for name,value in pairs(styleNode) do
|
||||||
if name == 'mouse-scroll' then
|
if name == 'mouse-scroll' then
|
||||||
self.mouseScroll = value
|
self.mouseScroll = value
|
||||||
|
|
Loading…
Reference in New Issue