Go to Page... |
Compatibility: | Tides of Vengeance (8.1.0) |
Updated: | 05-10-19 05:13 AM |
Created: | 10-09-17 11:36 AM |
Downloads: | 654 |
Favorites: | 2 |
MD5: |
yExperiencePoints
yExperiencePoints is a simple small addon that displays your current experience points percentage.
By default the frame will have a blue color when a Chacter is rested (earning more XP) and a green color when the character is not rested. These colors can be modified.
The frame is movable and can by placed anywhere on your interface.
When in combat the frame is locked to prevent accidentally moving the frame.
Use /yXP or /yExperiancePoints to hide or show the frame.
If you want to modify the the look of yExperiancePoints, modify the constants in the lua file.
You can use any text editor (I use Notepad++).
------------------------------------------------------------------------------- -- Constants ------------------------------------------------------------------------------- local ADDON_WIDTH = 124 -- Width of the addon frame local ADDON_HEIGHT = 24 -- Height of the addon frame local ADDON_TEXT = 11 -- Text color, refers to cfg.colors local ADDON_BORDER = 11 -- Border color, refers to cfg.colors local ADDON_BACKGROUND = 4 -- Background color, refers to cfg.colors local ADDON_SPACE = 5 -- Distance in pixels between the top of the frame and the top of the text local ADDON_STAT = "XP:" -- Description of the statistic local ADDON_DECIMALS = 2 -- The number of decimals that will display local ADDON_PERCENTAGE = "%" -- The percentage symbol (set to "" if you don't want a symbol) local ADDON_RESTED = 3 -- Background coler when rested, refers to cfg.colors cfg.colors = { {["name"] = "antique white", ["R"] = 0.98, ["G"] = 0.92, ["B"] = 0.84, ["A"] = 1}, -- 1 {["name"] = "black", ["R"] = 0.00, ["G"] = 0.00, ["B"] = 0.00, ["A"] = 1}, -- 2 {["name"] = "blue", ["R"] = 0.00, ["G"] = 0.00, ["B"] = 1.00, ["A"] = 1}, -- 3 {["name"] = "green", ["R"] = 0.00, ["G"] = 0.50, ["B"] = 0.00, ["A"] = 1}, -- 4 {["name"] = "orange", ["R"] = 1.00, ["G"] = 0.50, ["B"] = 0.00, ["A"] = 1}, -- 5 {["name"] = "pink", ["R"] = 1.00, ["G"] = 0.75, ["B"] = 0.80, ["A"] = 1}, -- 6 {["name"] = "purple", ["R"] = 0.50, ["G"] = 0.00, ["B"] = 0.50, ["A"] = 1}, -- 7 {["name"] = "red", ["R"] = 1.00, ["G"] = 0.00, ["B"] = 0.00, ["A"] = 1}, -- 8 {["name"] = "slate gray", ["R"] = 0.44, ["G"] = 0.50, ["B"] = 0.56, ["A"] = 1}, -- 9 {["name"] = "turqouise", ["R"] = 0.02, ["G"] = 0.88, ["B"] = 0.82, ["A"] = 1}, -- 10 {["name"] = "white", ["R"] = 1.00, ["G"] = 1.00, ["B"] = 1.00, ["A"] = 1}, -- 11 {["name"] = "yellow", ["R"] = 1.00, ["G"] = 1.00, ["B"] = 0.00, ["A"] = 1}, -- 12 }
There have been no comments posted to this file.
Be the first to add one. |