Thread Tools Display Modes
05/06/14, 10:25 AM   #1
Sp00sty
Join Date: Apr 2014
Posts: 67
Standardized Titles with Version Number

I am taking the time to standardize the in-game display of the ADDONS version I personally use by simple edit of the manifest.txt file for the ones that don't include it already.

I read through the wiki but haven't found the answer for some special characters I've seen used so far.

Title

A descriptive title for the addon, displayed in the addons window list. Can contain spaces and other special characters.
As example here is one of Wykyyds

## Title: |cFF2222Wykkyd's|r Framework |c0066991.4.21.1|r

I understand how the color is applied and how the added spaces affect the text.

But what does the | character do and what does the r character do?
  Reply With Quote
05/06/14, 10:41 AM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Sp00sty View Post
I am taking the time to standardize the in-game display of the ADDONS version I personally use by simple edit of the manifest.txt file for the ones that don't include it already.

I read through the wiki but haven't found the answer for some special characters I've seen used so far.



As example here is one of Wykyyds

## Title: |cFF2222Wykkyd's|r Framework |c0066991.4.21.1|r

I understand how the color is applied and how the added spaces affect the text.

But what does the | character do and what does the r character do?
When you want to change text color, you have to enclose text with tags "|c<color_in_hex>" and "|r". Tags won't be printed and everything inside those two tags will be in color defined by <color_in hex>.
So string "|cF70D1AFerrari Red|r" will be displayed as Ferrari Red
  Reply With Quote
05/06/14, 10:43 AM   #3
Iyanga
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 183
Originally Posted by Sp00sty View Post
But what does the | character do and what does the r character do?
The | character says that the next character is not a text character, but has a different meaning.

How else would you differentiate someone saying:"ccccccc" versus someone saying:"The letter c in the color cccccc please"?

The |r means: End of coloring (not to be confused with "end of current color").
  Reply With Quote
05/06/14, 10:48 AM   #4
Sp00sty
Join Date: Apr 2014
Posts: 67
Thank you,

I was simply copying a style but now I know what the syntax is actually doing I can edit with knowledge.
  Reply With Quote
05/06/14, 12:50 PM   #5
lyravega
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 93
Originally Posted by Sp00sty View Post
I am taking the time to standardize the in-game display of the ADDONS version I personally use by simple edit of the manifest.txt file for the ones that don't include it already.

I read through the wiki but haven't found the answer for some special characters I've seen used so far.



As example here is one of Wykyyds

## Title: |cFF2222Wykkyd's|r Framework |c0066991.4.21.1|r

I understand how the color is applied and how the added spaces affect the text.

But what does the | character do and what does the r character do?
"|c" signifies that following 6 characters are actually HEX RGB, and all letters will be "painted" till the "|r" is met.

You can call them special characters. Somewhat like "\n" in strings.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Standardized Titles with Version Number


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