Quantcast
Download
(3 Kb)
Download
Updated: 10-09-17 11:36 AM
Pictures
File Info
Compatibility:
Shadows of Argus (7.3.0)
Updated:10-09-17 11:36 AM
Created:10-09-17 11:36 AM
Downloads:23
Favorites:1
MD5:
7.3.0

yExperiencePoints (7.3.0)

Version: 7.3.0 r1.0
by: Yukyuk [More]

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++).

Lua Code:
  1. -------------------------------------------------------------------------------
  2. --  Constants
  3. -------------------------------------------------------------------------------
  4. local ADDON_WIDTH       = 124           -- Width of the addon frame
  5. local ADDON_HEIGHT      = 24            -- Height of the addon frame
  6. local ADDON_TEXT        = 11            -- Text color, refers to cfg.colors
  7. local ADDON_BORDER      = 11            -- Border color, refers to cfg.colors  
  8. local ADDON_BACKGROUND  = 4             -- Background color, refers to cfg.colors
  9. local ADDON_SPACE       = 5             -- Distance in pixels between the top of the frame and the top of the text
  10. local ADDON_STAT        = "XP:"         -- Description of the statistic
  11. local ADDON_DECIMALS    = 2             -- The number of decimals that will display
  12. local ADDON_PERCENTAGE  = "%"           -- The percentage symbol (set to "" if you don't want a symbol)
  13. local ADDON_RESTED      = 3             -- Background coler when rested, refers to cfg.colors
  14.  
  15. cfg.colors = {
  16. {["name"] = "antique white",    ["R"] = 0.98, ["G"] = 0.92, ["B"] = 0.84, ["A"] = 1},   -- 1
  17. {["name"] = "black",            ["R"] = 0.00, ["G"] = 0.00, ["B"] = 0.00, ["A"] = 1},   -- 2
  18. {["name"] = "blue",             ["R"] = 0.00, ["G"] = 0.00, ["B"] = 1.00, ["A"] = 1},   -- 3
  19. {["name"] = "green",            ["R"] = 0.00, ["G"] = 0.50, ["B"] = 0.00, ["A"] = 1},   -- 4
  20. {["name"] = "orange",           ["R"] = 1.00, ["G"] = 0.50, ["B"] = 0.00, ["A"] = 1},   -- 5
  21. {["name"] = "pink",             ["R"] = 1.00, ["G"] = 0.75, ["B"] = 0.80, ["A"] = 1},   -- 6
  22. {["name"] = "purple",           ["R"] = 0.50, ["G"] = 0.00, ["B"] = 0.50, ["A"] = 1},   -- 7
  23. {["name"] = "red",              ["R"] = 1.00, ["G"] = 0.00, ["B"] = 0.00, ["A"] = 1},   -- 8
  24. {["name"] = "slate gray",       ["R"] = 0.44, ["G"] = 0.50, ["B"] = 0.56, ["A"] = 1},   -- 9
  25. {["name"] = "turqouise",        ["R"] = 0.02, ["G"] = 0.88, ["B"] = 0.82, ["A"] = 1},   -- 10
  26. {["name"] = "white",            ["R"] = 1.00, ["G"] = 1.00, ["B"] = 1.00, ["A"] = 1},   -- 11
  27. {["name"] = "yellow",           ["R"] = 1.00, ["G"] = 1.00, ["B"] = 0.00, ["A"] = 1},   -- 12
  28. }

Optional Files (0)


There have been no comments posted to this file.
Be the first to add one.



Category Jump: