Chaos_Knight
New Member
- Reaction score
- 39
How do i use this? Dooo.
//~~ Colors ~~ By Tyrulan ~~ Version 1.1.0 ~~
//
// The following code should be pretty self explanatory.
// The functions would be used as follows:
// Color_RED("Hello World!")
// Color_BLUE("Hello World!")
// etc.
//
// OR
//
// Clr_RED("Hello World!")
// Clr_BLUE("Hello World!")
// etc.
call BJDebugMsg(Color_RED("Hello!"))
call BJDebugMsg(Color_BLUE("Hello!"))
call BJDebugMsg(Color_TEAL("Hello!"))
call BJDebugMsg(Color_HINT("Hello!"))
call BJDebugMsg(Color_GRAY("Hello World!"))
call BJDebugMsg(Clr_RED("Hi"))
Added the Clr call. Is the original function still necessary?
i really don't understand what the tesh file does. you didn't explain it. does it write over the tesh colors?
This already exists.
No point to approve a library with same functionality.
Try to add some extra features.
TESH Highlighting is just part of the compiler and syntax checker which allows the IntelliSense to recognize keywords. In this case it will prompt you when you begin typing "Col..." with a list of functions starting with those letters. (Like the natives built into a common.j file. I'm running NewGen WE 1.5d with the tesh syntax checker built in.
constant string C_goldbrown="|cffdaa520"
constant string C_gold="|cffffd700"
constant string C_palegreen="|cff7aff7c"
constant string C_pretty="|cffee82ee"
constant string C_grassgreen="|cff7fff00"
constant string C_brightgreen="|cff00ff00"
constant string C_brightblue="|cff0000ff"
constant string C_aqua="|cff00ffff"
constant string C_white="|cfff0ffff"
constant string C_seagreen="|cff7fffd4"
constant string C_twilightblur="|cff20b2aa"
constant string C_twilightgreen="|cff009966"
constant string C_coralgreen="|cff00fa9a"
constant string C_coralpink="|cfff08080"
constant string C_coralblue="|cff33aaff"
constant string C_plum="|cffba55d3"
constant string C_indigo="|cff4169e1"
constant string C_brightpurple="|cffff00ff"
constant string C_flowerred="|cffee2222"
constant string C_flowerpurple="|cffaaaaff"
constant string C_green="|cff32cd32"
constant string C_blue="|cff4169e1"
constant string C_yellowgreen="|cffadff2f"
constant string C_paledenim="|cffc3dbff"
constant string C_orange="|cffffa500"
constant string C_purple="|cffda70d6"
constant string C_royalpurple="|cffaa00ff"
constant string C_grey="|cffc0c0c0"
constant string C_gray="|cffc0c0c0"
constant string C_redorange="|cffff4500"
constant string C_red="|cffff0000"
constant string C_spanishgreen="|cff9acd32"
constant string C_darkspanishgreen="|cff6b8e23"
constant string C_brown ="|cff995500"
constant string C_yellow="|cffffff00"
constant string C_sand="|cffffffcc"
constant string C_CLOSE ="|r"
endglobals
//! textmacro givetextcolor takes TYPEWORD
function gtc_$TYPEWORD$ takes string s returns string
return C_$TYPEWORD$ + s + C_CLOSE
endfunction
//! endtextmacro
//! runtextmacro givetextcolor("goldbrown")
//! runtextmacro givetextcolor("gold")
//! runtextmacro givetextcolor("palegreen")
//! runtextmacro givetextcolor("pretty")
//! runtextmacro givetextcolor("grassgreen")
//! runtextmacro givetextcolor("brightgreen")
//! runtextmacro givetextcolor("aqua")
//! runtextmacro givetextcolor("brightblue")
//! runtextmacro givetextcolor("white")
//! runtextmacro givetextcolor("seagreen")
//! runtextmacro givetextcolor("twilightblur")
//! runtextmacro givetextcolor("twilightgreen")
//! runtextmacro givetextcolor("coralgreen")
//! runtextmacro givetextcolor("coralpink")
//! runtextmacro givetextcolor("coralblue")
//! runtextmacro givetextcolor("plum")
//! runtextmacro givetextcolor("indigo")
//! runtextmacro givetextcolor("brightpurple")
//! runtextmacro givetextcolor("flowerred")
//! runtextmacro givetextcolor("flowerpurple")
//! runtextmacro givetextcolor("green")
//! runtextmacro givetextcolor("blue")
//! runtextmacro givetextcolor("yellowgreen")
//! runtextmacro givetextcolor("paledenim")
//! runtextmacro givetextcolor("orange")
//! runtextmacro givetextcolor("purple")
//! runtextmacro givetextcolor("royalpurple")
//! runtextmacro givetextcolor("grey")
//! runtextmacro givetextcolor("gray")
//! runtextmacro givetextcolor("redorange")
//! runtextmacro givetextcolor("red")
//! runtextmacro givetextcolor("spanishgreen")
//! runtextmacro givetextcolor("darkspanishgreen")
//! runtextmacro givetextcolor("brown")
//! runtextmacro givetextcolor("yellow")
//! runtextmacro givetextcolor("sand")
Sankaku, can you even Intendent?
You mean indent?
Also - I feel some of the colour names are too long and would be cumbersome to type out.
Sankaku, can you even Intendent?