Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about coloring inside tables #5

Closed
Stanzilla opened this issue Apr 7, 2017 · 1 comment
Closed

Question about coloring inside tables #5

Stanzilla opened this issue Apr 7, 2017 · 1 comment

Comments

@Stanzilla
Copy link

code_2017-04-07_04-51-26

so this table here, I don't quite understand the coloring here. sort is probably just different because it's a keyword but the different string colors? Please enlighten me :)

@Septh
Copy link
Owner

Septh commented Apr 10, 2017

Some strings have a special meaning in Lua and in the WoW API and are colorized accordingly. For instance, the string "CENTER" may be used as a parameter to the SetPoint() function.

Currently, WoW Bundle recognizes and colorizes the following strings:

  • Global event names like "PLAYER_ENTERING_WORD", "VARIABLES_LOADED", etc.
  • Widgets script handlers like "OnLoad", "OnEnter", etc.
  • A bunch of special parameters to most API functions like SetPoint() (e.g. "CENTER", "ANCHOR_LEFT", etc.), SetFrameStrata() (e.g. "BACKGROUND", "HIGH", etc.)
  • A bunch of special parameters to some Lua functions like type() (e.g. "number", "nil", etc.), __mode (e.g. "kv", etc.)

Also, please note that WoW Bundle features 3 special themes that help with colorizing anything WoW-related. For instance, your code would look like this with the theme named Dark+ (WoW):

dark wow

See the description in README.md for more info.

@Septh Septh closed this as completed Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants