Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonaza committed Jul 27, 2016
2 parents 95e4ea9 + 83940f5 commit b77bb50
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.0.2
* Fixed the small gap when anchoring to the top of the screen.

## 2.0.1
* Fixed reputation module glitchiness when not tracking any reputations.

Expand Down
2 changes: 1 addition & 1 deletion Experiencer.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Experiencer
## Notes: Simple and Advanced Experience and Reputation Progress Bar
## Author: Sonaza
## Version: 2.0.1
## Version: 2.0.2
## OptionalDeps: Ace3
## SavedVariables: ExperiencerDB, ExperiencerDB_module_experience, ExperiencerDB_module_reputation, ExperiencerDB_module_artifact, ExperiencerDB_module_honor

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Experience bar replacement for World of Warcraft.
## Description
Experiencer is a minimum configuration required experience bar addon. It adds multi purpose experience, reputation, artifact power and honor progress bar to the bottom or the top of the screen.

Note that because the Experiencer bar can **only be anchored to top or the bottom of the screen** it may overlap with other frames positioned in those places.
Note that because the Experiencer bar can **only be anchored to the top or the bottom of the screen** it may overlap with other frames positioned in those places.

When tracking experience the addon will display your current rested percentage, remaining xp required to level and percentage of the same value. Once you start gaining experience it will display the total sum gained during the active session, experience per hour value, estimated time and number of quests to level. Additionally the number of experience points player will gain after turning in all completed quests (and optionally incomplete quests) is displayed with an accompanying visualizer bar. Session values are saved even when you log out, to reset them you must do so from the options menu.

Expand Down
8 changes: 6 additions & 2 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,13 @@ function Addon:UpdateFrames()
end

local anchor = Addon.db.global.AnchorPoint or "BOTTOM";
local offset = 0;
if(anchor == "TOP") then offset = 1 end
if(anchor == "BOTTOM") then offset = -1 end

ExperiencerFrame:ClearAllPoints();
ExperiencerFrame:SetPoint(anchor .. "LEFT", UIParent, anchor .. "LEFT", 0, -1);
ExperiencerFrame:SetPoint(anchor .. "RIGHT", UIParent, anchor .. "RIGHT", 0, -1);
ExperiencerFrame:SetPoint(anchor .. "LEFT", UIParent, anchor .. "LEFT", 0, offset);
ExperiencerFrame:SetPoint(anchor .. "RIGHT", UIParent, anchor .. "RIGHT", 0, offset);
ExperiencerBarTextFrame:ClearAllPoints();
ExperiencerBarTextFrame:SetPoint(anchor, ExperiencerFrameBars, anchor);

Expand Down

0 comments on commit b77bb50

Please sign in to comment.