Skip to content

Commit

Permalink
wip: start fixing cooldowns bar..
Browse files Browse the repository at this point in the history
  • Loading branch information
matheussf committed Jul 3, 2024
1 parent 803500f commit c4286de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions modules/game_cooldown/cooldown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ function onSpellGroupCooldown(groupId, duration)
return
end

print('onSpellGroupCooldown: ' .. groupId)
local icon = contentsPanel:getChildById('groupIcon' .. SpellGroups[groupId])
print("Progress Rect: " .. 'progressRect' .. SpellGroups[groupId])
local progressRect = contentsPanel:getChildById('progressRect' .. SpellGroups[groupId])
if icon then
icon:setOn(true)
Expand Down
8 changes: 4 additions & 4 deletions modules/game_cooldown/cooldown.otui
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Panel
!tooltip: tr('Focus')

SpellGroupIcon
id: groupIconUltimateStrike
id: groupIconUltimateStrikes
image-clip: 120 0 20 20
anchors.top: parent.top
anchors.left: groupIconFocus.right
Expand All @@ -126,15 +126,15 @@ Panel
image-clip: 120 20 20 20

SpellProgressRect
id: progressRectUltimateStrike
anchors.fill: groupIconUltimateStrike
id: progressRectUltimateStrikes
anchors.fill: groupIconUltimateStrikes
!tooltip: tr('Ultimate Strike')

SpellGroupIcon
id: groupIconGreatBeams
image-clip: 140 0 20 20
anchors.top: parent.top
anchors.left: groupIconUltimateStrike.right
anchors.left: groupIconUltimateStrikes.right
margin-left: 3
$on:
image-clip: 140 20 20 20
Expand Down
6 changes: 3 additions & 3 deletions modules/gamelib/spells.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2893,9 +2893,9 @@ SpellGroups = {
[4] = 'Special',
[5] = 'Crippling',
[6] = 'Focus',
[7] = 'Ultimate Strikes',
[8] = 'Great Beams',
[9] = 'Bursts of Nature'
[7] = 'UltimateStrikes',
[8] = 'GreatBeams',
[9] = 'BurstsOfNature'
}

Spells = {}
Expand Down

0 comments on commit c4286de

Please sign in to comment.