Quantcast ySeries - WoWInterface
Thread Tools Display Modes
08-14-17, 09:20 AM   #1
Yukyuk
A Flamescale Wyrmkin
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 117
ySeries

ySeries

ySeries is a series of small independant addons.
They alle have in common that they are fully movable and that they can be placed anywhere on your screen.
When in combat the frames are locked to prevent accidental movement of the frames.

The availabe addons are:
  • yStrength, use /ystr or /yStrength to hide or show the frame
  • yStamina, use /sta or /yStamina to hide or show the frame
  • yAgility, use /yagi or /yAgility to hide or show the frame
  • yIntellect, use /yint or /yIntellect to hide or show the frame
  • yArmor, use /yarm or /yArmor or yArmour to hide or show the frame (september 5th, 2017)
  • yExperiencePoints, use /yXP or /yExperiencePoints to hide or show the frame (october 9th, 2017)
  • yGuildTabard, use /yGT or /yGuildTabard to hide or show the frame (october 15th, 2017)

If you want to modify the the look of any of these addons, 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        = "Strength:"   -- Description of the statistic
__________________
Better to fail then never have tried at all.

Last edited by Yukyuk : 10-15-17 at 01:50 AM.
  Reply With Quote
09-05-17, 02:46 AM   #2
Yukyuk
A Flamescale Wyrmkin
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 117
Version history

This is the version history of the ySeries.

October 15th, 2017:
- Added yGuildTabard

October 9th, 2017:
- Added yExperiencePoints

September 5th, 2017:
- Added yArmor
- Added tooltips the existing addons.

August 14th, 2017:
- Initial release of the ySeries.
__________________
Better to fail then never have tried at all.

Last edited by Yukyuk : 10-15-17 at 01:50 AM.
  Reply With Quote
09-05-17, 02:47 AM   #3
Yukyuk
A Flamescale Wyrmkin
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 117
ySeries example

An example of the ySeries.
Attached Thumbnails
Click image for larger version

Name:	ySeries.jpg
Views:	62
Size:	89.3 KB
ID:	8983  Click image for larger version

Name:	yExperiencePoints.jpg
Views:	18
Size:	33.4 KB
ID:	9001  
__________________
Better to fail then never have tried at all.

Last edited by Yukyuk : 10-09-17 at 11:40 AM.
  Reply With Quote
09-05-17, 08:49 AM   #4
Ammako
A Wyrmkin Dreamwalker
 
Ammako's Avatar
Join Date: Jun 2016
Posts: 54
What if, instead of three separate addons for the primary stats, you had just one for primary stats that dynamically changed depending on which spec you're in?

Using GetSpecialization() you can get the spec ID for the spec the player is currently in, and with GetSpecializationInfo() you can know which primary stat is used (without having to hardcode in a list.)

Code:
local _, _, _, _, _, primaryStat = GetSpecializationInfo(GetSpecialization())
(GetSpecializationInfo() info isn't quite up-to-date on wowprogramming; it does not return background anymore.)
This will output 1 (strength), 2 (agility) or 4 (intellect) into primaryStat, which are the same as the LE_UNIT_STAT_STRENGTH, LE_UNIT_STAT_AGILITY and LE_UNIT_STAT_INTELLECT constants.


That way you only need to have one addon installed and it'll cover whichever primary stat you'd be interested in seeing for your current character. Also only need to maintain 1 addon if it needs to be worked on and updated
__________________
I get moody during that time of the month. You know, with the full moon and all.
  Reply With Quote
09-05-17, 09:29 AM   #5
Yukyuk
A Flamescale Wyrmkin
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 117
@Ammako,

ySeries started as a simple addon for my fury warrior, as I wanted to display his current strenght.
Then I though about dispaying all his main stats (even if they are not relevant).
So I made the four independant ones (yArmor was made later).

And yes I thought about making just one addon whith a simple menu where you could choose which stats to display.
But I liked the fact that these addons are really small (only 11k or so).
So I decided to make several small addons instead of one bigger one.

And I know how to use GetSpecialization(), GetSpecializationRole() and GetSpecializationInfo(), thay are used in the tooltips.
(and "how to use" means in this case copied from PaperDollFrame.lua ).
__________________
Better to fail then never have tried at all.

Last edited by Yukyuk : 09-05-17 at 12:15 PM.
  Reply With Quote
09-05-17, 10:16 AM   #6
myrroddin
A Molten Giant
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 836
Wowprogramming has been dead for a couple of years now, as Cladhaire has moved on to other projects in his life and career.

Reference Wowpedia.org for up-to-date API documentation.
  Reply With Quote
10-15-17, 01:48 AM   #7
Yukyuk
A Flamescale Wyrmkin
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 117
yGuildTabard

yGuildTaberd has been added to the ySeries.

Choose from a square or a circular guild tabard.
Also works when you are (not yet) in a guild.

Use the slash commands /yGT or /yGuildTabard to show or hide the Guild Tabard.
Use the slash commands /ygt square and /ygt circle to change the Guild Tabard.

After changing the game needs to be reloaded for the change take effect.
Attached Thumbnails
Click image for larger version

Name:	yGuildTabard.jpg
Views:	41
Size:	24.3 KB
ID:	9002  
__________________
Better to fail then never have tried at all.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » ySeries

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off