Miceforce Color Codes

Ant1leve

Mouse

Miceforce Color CodesThe color codesExtra tags


  • Miceforce Color Codes

    Hey there! Today I bring here the Miceforce color codes topic that can be used in your own module. ;) But first, if you don't know how to use it or what is this there are some questions:

    • What is color codes?

    Color codes are used to color Miceforce. An example is the Sevenops nickname's color, which is red in the game. Many codes are in hexadecimal and need to be in Lua scripts. An example of a hexadecimal color code is the blue color code: #0000ff or 0x0000ff. On the forum, color codes are in RGB that are no longer useful/functional in Lua scripts.

    • How can be color codes used in Lua scripts?

    Can be used in textareas, popups, chat messages, lua console prints, and many utilities. In Miceforce Lua scripts, can be used the <font> tag, which is also used in HTML Scripts. For example, if you want to a word be wrote in yellow color can be used <font color='#ffff00'>, in other words, first you write <font> tag with the color attribute inside and write on the color attribute ='ColorCode'>, finishing: <font color='ColorCode'>, and instead of "ColorCode" you write the color code you want, but remembering, in hexadecimal.

    Try yourself:
    Code:
    ui.addTextArea(0, "<font color='#ffff00'>Yellow text", nil)
    I hope helped someone. It's my first thread in english then I'm sorry for some mistakes.


  • The color codes

    HEX Color Code - Meaning in game - TAG

    #2F7FCC - Mapcrew color. - <BV>

    #CB546B - Errors color. - <R>

    #6C77C1 - Normal information color. - <BL>

    #BABD2F - Special information color/Moderator nickname's color - <J>

    #C2C2DA - Old forum/game writing color. - <N>

    #9292AA - Desactived buttons color. - <N2>

    #2EBA7E - Used color in tribe. - <PT>

    #E88F4F - Color of whisper sent. - <CE>

    #F0A78E - Whispers color. - <CEP>

    #EFCE8F - Whispers color. - <CS>

    #CAA4CF - Players chat color (/chat ...). - <S>

    #E9E654 - Color when click (<a>) text. - <A:ACTIVE>

    #F1C4F6 - Color of players' chat messages (/chat ...). - <PS>

    #606090 - Automatic friends color. - <G>

    #009D9D - Normal nickname color. - <V>

    #2ECF73 - Color of tutorial tips in game. - <VP>

    #C53DFF - Unused. - <VI>

    #ED67EA - Message color of server, moderators and bots. - <ROSE>

    #98E2EB - Color of blue shaman message. - <CH>

    #A4CF9E - Automatic tribe message color. - <T>

    #FF8547 - FunCorp Nickname Color - <FC>​

  • There are others text tags like the <B> tag, <I> tag and <U> tag. Examples of uses and meaning:

    <B>

    <I>

    <U>
    Try yourself:
    Code:
    tfm.exec.chatMessage("<B>Bolds the message")
    tfm.exec.chatMessage("<I>Italics the message")
    tfm.exec.chatMessage("<U>Underlines the message")
    Thanks Dark_nlght for sharing these tags!

 
Last edited:

Cryaotic

¡Ándale! ¡Ándale!
Nice thread o/
 

Killstrike

Active Mouse
how do u make tabs in your thread i'm a noob?
[edited]: Mcpatrick answered the question plus i'm a noob sorry for being a bother to you Mcpatrick
nice use for:
ui.addTextArea(id, text, targetPlayer, xPosition, yPosition, width, height, backgroundColor, borderColor,backgroundAlpha, fixedPosition)

XD

edited: forgot to say "nice thread" i'll just say
Helpful thread
 
Last edited:

Omaraldin

Little Mouse
how do u make tabs in your thread i'm a noob?
[edited]: Mcpatrick answered the question plus i'm a noob sorry for being a bother to you Mcpatrick
nice use for:
ui.addTextArea(id, text, targetPlayer, xPosition, yPosition, width, height, backgroundColor, borderColor,backgroundAlpha, fixedPosition)

XD

edited: forgot to say "nice thread" i'll just say
Helpful thread
Tabs;
[tabs]
[tab=tabName]text[/tab]
[tab=tabName2]text[/tab]
[/tabs]
 

Ant1leve

Mouse
Btw Ant1eve
I know it is not part but add
function eventNewGame()
tfm.exec.chatMessage("<B> bolds the message")
tfm.exec.chatMessage("<I> Italics the message")
tfm.exec.chatMessage("<U> underlines the message")
Not color codes, but useful tags, I'll add in an extra tab. Thanks!

Updated
 

Apriicot

Shaman
cool thread!
 

Dudugz

Little Mouse
#EB1D51 <CR> No usage found.
#2F7FCC <BV> No usage found.
#CB546B <R> Errors.
#6C77C1 <BL> Default system messages.
#BABD2F <J> Help & other information.
#C2C2DA <N> Regular chat.
#606090 <G> Offline friends.
#009D9D <V> Chat names.
#2ECF73 <VP> Tutorial keywords.
#C53DFF <VI> No usage found.
#ED67EA <ROSE> Moderation and server messages.
#98E2EB <CH> Blue shaman text.
#A4CF9E <T> Tribe chat.
#FEB1FC <CHR> Pink shaman text.
<CE> - #E88F4F
<CEP> - #F0A78E
<CS> - #EFCE8F
<PT> - #2EBA7E
<N2> - #9292AA
<S> - #CAA4CF
 

Giavannah909

Well-Known Mouse
Great Thread!
 
Top
"Dev-TR" theme by Soulzone