Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonaza committed Jul 25, 2017
1 parent df26ef3 commit 69fa60d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## 2.3.0
* You can now split Experiencer bar in up to three different sections allowing you to display more information at once.
* DataBroker module will continue sourcing its text label from the leftmost bar.
* Reputation module now supports scrolling recent reputations by holding down shift key and scrolling mouse wheel.
* Added support for shared media fonts. You can now change fonts via frame options menu.
* Added abbreviation for large number values for artifact bar. This is enabled by default but can optionally be disabled in artifact bar options.
* Added support for shared media fonts and optional font scaling. You can now change font face and scale via frame options menu.
* Attempted fix for hangs in loading screens due to artifact module.

## 2.2.1
* Fixed reputation module paragon reputations after reaching reward level.
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,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.
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. The bar can also be split in up to three different sections to display multiple data sources simultaneously.

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.

Expand All @@ -16,16 +16,19 @@ If available Experiencer can also track artifact power and honor. Artifact power

By default the bar is colored the class color of the character you are playing but it can be changed in the options.

Experiencer also adds a DataBroker module that displays current text if you wish to place it elsewhere. To freely place it anywhere check out my DataBroker display addon [Candy](http://www.curse.com/addons/wow/candy).
Experiencer also adds a DataBroker module that displays current text if you wish to place it elsewhere. To freely place it anywhere check out my DataBroker display addon [Candy](http://www.curse.com/addons/wow/candy). In case Experiencer is split in to more than one section the left most bar will be used as the data source for DataBroker text.

### Usage and Shortcuts

Experiencer options can be accessed by right clicking the bar or the DataBroker module. In order to make things smoother there are a few useful shortcuts.

* Control left-click toggles bar visiblity. There will always be a slightly translucent black bar where the bar is anchored.
* Middle click toggles text visibility if text is not set to be always hidden.
* Middle-click toggles text visibility if text is not set to be always hidden.
* Holding control while scrolling with mouse wheel lets you browse through available bars in following order: experience, reputation, artifact power and honor.
* Shift left-click pastes current statistics to chat editbox. Shift control left-click for quick paste.

* **Reputation** Holding shift while scrolling with mouse wheel over reputation bar will cycle through recent reputations.
* **Artifact** Shift middle-click will open the artifact talent menu if an artifact is equipped.

## Dependencies
Experiencer uses Ace3, LibSharedMedia and LibDataBroker which are included in the /libs directory.
12 changes: 12 additions & 0 deletions modules/artifact.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ module.hasCustomMouseCallback = true;
function module:Initialize()
self:RegisterEvent("ARTIFACT_XP_UPDATE");
self:RegisterEvent("UNIT_INVENTORY_CHANGED");
self:RegisterEvent("LOADING_SCREEN_ENABLED");
self:RegisterEvent("LOADING_SCREEN_DISABLED");
end

function module:LOADING_SCREEN_ENABLED()
self.inLoadingScreen = true;
end

function module:LOADING_SCREEN_DISABLED()
self.inLoadingScreen = false;
module:RefreshText();
end

function module:IsDisabled()
Expand Down Expand Up @@ -83,6 +94,7 @@ end

function module:CalculateTotalArtifactPower()
if(not HasArtifactEquipped()) then return 0 end
if(self.inLoadingScreen) then return 0 end

local _, _, _, _, currentXP, pointsSpent, _, _, _, _, _, _, artifactTier = C_ArtifactUI.GetEquippedArtifactInfo();

Expand Down
2 changes: 1 addition & 1 deletion modules/experience.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function module:GetText()

if(not self.db.global.QuestXP.AddIncomplete) then
tinsert(secondaryText,
string.format("%s |cff80e916xp from completed quests|r%s", BreakUpLargeNumbers(math.floor(completeXP)), levelUpAlert)
string.format("%s |cff80e916xp from quests|r%s", BreakUpLargeNumbers(math.floor(completeXP)), levelUpAlert)
);
elseif(self.db.global.QuestXP.AddIncomplete) then
tinsert(secondaryText,
Expand Down

0 comments on commit 69fa60d

Please sign in to comment.