Thread Tools Display Modes
08-14-17, 09:20 AM   #1
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
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 5, 2017, updated juli 19, 2018)
  • yExperiencePoints, use /yXP or /yExperiencePoints to hide or show the frame (october 9, 2017) Classic version(august 28, 2019)
  • yGuildTabard, use /yGT or /yGuildTabard to hide or show the frame (october 15, 2017)
  • yPlayerHP, use /yPHP or /yPlayerHP to hide or show the frame (may 10, 2019)
  • yTargetHP, use /yTHP or /yTargetHP to hide or show the frame (may 10, 2019)
  • yCriticalStrike, use /yCS or /yCriticalStrike to hide or show the frame (february 17, 2020)

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 : 02-17-20 at 09:55 AM.
  Reply With Quote
09-05-17, 02:46 AM   #2
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
Version history

This is the version history of the ySeries.

August 28, 2019
- Added yExperiencePoints Classic

May 10, 2019
- Updated the TOC of the ySeries (finally) and better placement of the text inside the frame.

Juli 19, 2018:
- Updated yArmour for version 8.0.1 (BfA)

October 15, 2017:
- Added yGuildTabard

October 9, 2017:
- Added yExperiencePoints

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

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

Last edited by Yukyuk : 09-02-19 at 11:22 AM.
  Reply With Quote
09-05-17, 02:47 AM   #3
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
ySeries example

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

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

Name:	yExperiencePoints.jpg
Views:	409
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 Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 256
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
  Reply With Quote
09-05-17, 09:29 AM   #5
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
@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 Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
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 Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
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:	454
Size:	24.3 KB
ID:	9002  
__________________
Better to fail then never have tried at all.
  Reply With Quote
05-10-19, 05:55 AM   #8
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
yPlayerHP and yTargetHP

yPlayerHP and yTargetHP have been added to the ySeries.
Enjoy
Attached Thumbnails
Click image for larger version

Name:	yPlayerHP.jpg
Views:	334
Size:	3.6 KB
ID:	9227  Click image for larger version

Name:	yTargetHP.jpg
Views:	321
Size:	3.3 KB
ID:	9228  
__________________
Better to fail then never have tried at all.
  Reply With Quote
08-28-19, 11:47 AM   #9
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
yExperiencePointsClassic

I added yExperiencePointsClassic to the ySeries.
__________________
Better to fail then never have tried at all.
  Reply With Quote
02-17-20, 09:56 AM   #10
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
yCriticalStrike

As requested by a user, yCriticalStrike added to ySeries.
__________________
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