User Tag List

Results 1 to 4 of 4

Thread: How to color text?

  1. #1
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Dec 2013
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to color text?

    Hello I wanted to make a simple chat got everything working I just want to add 1 more thing.

    Here is a picture of the chat:
    2.png

    I want "testuser" To be a random color in the player list on the right and in the chat.
    I am using Lacewing here is a picture for sending a message:
    3.jpg

    Here is the script for the second line:
    Code:
    Edittext$( "chat history" )+Self_Name$( "Lacewing" )+": "+Edittext$( "chat box" )+NewLine$
    So +Self_Name$( "Lacewing" ) is the users name how can I color it? Is it possible in a script is there like some color code? Or does someone have a solution.
    Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not familiar with using Lacewing, but you can set text color in an edit box by using the Text:Set Text Color option.
    From there, you can click the Calculation button and enter getRGB(random(256),random(256),random(256))
    That will set the text in the edit box to a random color.
    I don't know is you can specify a different color for each line or not.

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)

    Join Date
    Dec 2013
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    EDIT: Or change the font/size underlined italic bold etc.

  4. #4
    Clicker Fusion 2.5Mac Export Module
    Zem's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think you can just part of a string to a different colour, i'd say its worthy of a suggestion in the bug tracker though as i've tried to do this several times and had to go the route of using another string/editbox etc instead.

Similar Threads

  1. Text color question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st July 2009, 10:51 PM
  2. Set Formated Text obj text color to transparent
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th August 2008, 01:35 AM
  3. [Help] Getting Text Color from INI
    By Spryz in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th October 2006, 04:19 AM
  4. Text blitter color-replacing?
    By Alonso in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th July 2006, 07:09 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •