Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Question: GuiButton (https://forums.graalonline.com/forums/showthread.php?t=134257667)

Entrok 01-15-2010 11:28 PM

Question: GuiButton
 
This is probably a dumb question, but is it possible to change color on the text on a button?

I have tryed this, but it dident change the color:

HTML Code:

new GuiButtonProfile("MerciaButton")
{
  bitmap = mercia_gui-button.png;
  fontcolor = 3,4,7;
  fontsize = 12;
  text = "Test";
}

Would really need to know this, thanks.

Tigairius 01-15-2010 11:38 PM

Use {} around fontcolor.

Switch 01-16-2010 02:50 AM

Also a good idea to have quotes around the bitmap string.

DustyPorViva 01-16-2010 06:26 AM

Quote:

Originally Posted by Switch (Post 1550590)
Also a good idea to have quotes around any string.

fixed

Switch 01-16-2010 07:21 AM

Quote:

Originally Posted by DustyPorViva (Post 1550623)
fixed

Implying that files are referred to as strings.

Entrok 01-16-2010 12:24 PM

Quote:

Originally Posted by Tigairius (Post 1550572)
Use {} around fontcolor.

Thanks for the help Tigairius, it did work now!

Rep++

DustyPorViva 01-16-2010 05:19 PM

Quote:

Originally Posted by Switch (Post 1550629)
Implying that files are referred to as strings.

No implying that strings are referred to as strings :P

Switch 01-17-2010 05:56 AM

Quote:

Originally Posted by DustyPorViva (Post 1550666)
No implying that strings are referred to as strings :P

He seems to have gotten obj.text right.


All times are GMT +2. The time now is 09:37 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.