Updated to OTCv8 3.1 rev 229

This commit is contained in:
OTCv8
2022-07-09 22:09:37 +00:00
parent 88fb41bafc
commit a48d0fd0d1
125 changed files with 24548 additions and 732 deletions

View File

@@ -142,7 +142,6 @@ end
function setupTopBar()
local topPanel = modules.game_interface.getTopBar()
topBar = topBar or g_ui.loadUI('topbar', topPanel)
topBar = topBar or g_ui.createWidget('TopBar', topPanel)
manaBar = topBar.stats.mana
healthBar = topBar.stats.health
@@ -287,6 +286,7 @@ function onLevelChange(localPlayer, value, percent)
experienceBar:setTooltip(tr(experienceTooltip, 100-percent, value + 1))
experienceBar:setPercent(percent)
levelLabel:setText(value)
levelLabel:setTextAutoResize(true)
end
function onStatesChange(localPlayer, now, old)
@@ -394,6 +394,7 @@ function setSkillValue(id, value)
if not panel then return end
panel.level:setText(value)
panel.level:setTextAutoResize(true)
end
function setSkillPercent(id, percent, tooltip)

View File

@@ -100,7 +100,7 @@ SkillPanel < Panel
margin-bottom: -2
anchors.right: progress.right
TopBar < Panel
Panel
id: topbar
focusable: false
padding-top: 4