Skip to content

Commit

Permalink
Refactored xp bar code 💅
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Feb 1, 2018
1 parent 5bdbc8b commit ff6ca58
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 154 deletions.
2 changes: 1 addition & 1 deletion modules/bars/controller.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ WIDGETS.XP_BAR = {
children = false,
point = {"BOTTOM", "LSActionBarControllerBottom", "BOTTOM", 0, 0},
on_play = function(_, newstate)
MODULE:SetXPBarStyle(newstate == 6 and 1060 / 2 or 1492 / 2)
MODULE:GetBar("xpbar"):UpdateSize(newstate == 6 and 1060 / 2 or 1492 / 2)
end
}

Expand Down
Loading

0 comments on commit ff6ca58

Please sign in to comment.