User Tag List

Results 1 to 4 of 4

Thread: [Help] Getting Text Color from INI

  1. #1
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)HTML5 Export Module (Steam)SWF Export Module (Steam)Firefly 3D Module (Steam)
    Spryz's Avatar
    Join Date
    Jul 2006
    Location
    United Kingdom
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Getting Text Color from INI

    i have the following data stored in a ini file ( for custom style colors )

    [Loading]
    Break=,
    Title_Color_Test_1=255,255,255
    Title_Color_Test_2=RGB(255,255,255)
    Title_Color_Test_3_1=255
    Title_Color_Test_3_2=255
    Title_Color_Test_3_3=255

    Now when i try to use
    Set font color to GroupItemValue( "style.ini", "Loading", "Title_Color_Test_1")

    It goes red which is 255,0,0 which means it couldnt read the , so i tried setting it to
    Set font color to GroupItemValue( "style.ini", "Loading", "Title_Color_Test_2")

    This was a long shot but still did not work so my final try was
    Set font color to GroupItemValue( "style.ini", "Loading", "Title_Color_Test_3_1") + GroupItemValue( "style.ini", "Loading", "Break") + GroupItemValue( "style.ini", "Loading", "Title_Color_Test_3_2") + GroupItemValue( "style.ini", "Loading", "Break") + GroupItemValue( "style.ini", "Loading", "Title_Color_Test_3_3")

    However none of these work, can anyone please provide some assistace as the color has to come from the ini.

    Im using the latest build of mmf2dev
    Thank You

    EDIT: This may be a bug in mmf2, if it is then is there any work-around for this ?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: [Help] Getting Text Color from INI

    You could try storing the values as RGB, instead of comma-seperating. Either that or you could set font colour:
    Code:
    RGB(GroupItemValue( "style.ini", "Loading", "Title_Color_Test_3_1") , GroupItemValue( "style.ini", "Loading", "Title_Color_Test_3_2") , GroupItemValue( "style.ini", "Loading", "Title_Color_Test_3_3"))
    .:::.Joshtek.:::.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)HTML5 Export Module (Steam)SWF Export Module (Steam)Firefly 3D Module (Steam)
    Spryz's Avatar
    Join Date
    Jul 2006
    Location
    United Kingdom
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Help] Getting Text Color from INI

    I found somthing interesting, these can be used.
    This is a list of the colors i found out.

    BLACK = 0
    BLUE = 8388608
    GREEN = 32768
    CYAN = 8421376
    RED = 128
    MAGENTA = 8388736
    BROWN = 32896
    LIGHT GREY = 8421504
    LIGHT BLUE = 16711680
    LIGHT GREEN = 65280
    LIGHT CYAN = 16776960
    LIGHT RED = 255
    MAGENTA = 16711935
    YELLOW = 65535
    LIGHT WHITE = 16777215

  4. #4
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Help] Getting Text Color from INI

    those are the values that result from GetRGB(), since it's calculated by Red + Blue * 256 + Green * 65536

Similar Threads

  1. How to color text?
    By fishrod in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 31st December 2013, 10:17 AM
  2. Text color question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st July 2009, 09:51 PM
  3. Set Formated Text obj text color to transparent
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th August 2008, 12:35 AM
  4. Text blitter color-replacing?
    By Alonso in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 14th July 2006, 06:09 AM

Posting Permissions

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