RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Changing Text Color in Public Moongate

Foster

Account Terminated
hi i downloaded a custom desktop package off these forums, i am just wondering were in Public Moongate i would edit the text color for the locations shown on the moongate itself here is a copy of Public Moongtae.cs just the line to edit would be great info thanks.
 

Attachments

  • PublicMoongate.cs
    13.2 KB · Views: 3

Soteric

Knight
In RenderPage method there is
Code:
for ( int i = 0; i < entries.Length; ++i )
			{
				AddRadio( 200, 35 + (i * 25), 210, 211, false, (index * 100) + i );
				AddHtmlLocalized( 225, 35 + (i * 25), 150, 20, entries[i].Number, false, false );
			}
AddHtmlLocalized prints entry name to gump (if I'm not mistaken). You can add number before the first false. This number will be color. For instance:
Code:
AddHtmlLocalized( 225, 35 + (i * 25), 150, 20, entries[i].Number, 1234, false, false );
where 1234 is some color number.
 

FingersMcSteal

Sorceror
http://runuo.com/community/threads/...-not-clilocs-svn-400-final.98312/#post-818764

Add something like this to add colours to it...

public static readonly
PMList Trammel =
// new PMList( 1012000, 1012012, Map.Trammel, new PMEntry[] new PMList("<BASEFONT COLOR=#00AA88>Trammel", "<BASEFONT COLOR=#00FF88>Trammel", Map.Trammel, new
PMEntry[]
{

// new PMEntry( new Point3D( 5952, 296, 27 ), "<BASEFONT COLOR=#55DD66>Start Room" ), new PMEntry( new Point3D( 4467, 1283, 5 ), "<BASEFONT COLOR=#00FF66>Moonglow" ),
// Moonglow 1012003 new PMEntry( new Point3D( 1336, 1997, 5 ), "<BASEFONT COLOR=#00DD66>Britain" ),
// Britain 1012004 new PMEntry( new Point3D( 1499, 3771, 5 ), "<BASEFONT COLOR=#00BB66>Jhelom" ),
// Jhelom 1012005 new PMEntry( new Point3D( 771, 752, 5 ), "<BASEFONT COLOR=#009966>Yew" ),
// Yew 1012006 new PMEntry( new Point3D( 2701, 692, 5 ), "<BASEFONT COLOR=#00BB66>Minoc" ),
// Minoc 1012007 new PMEntry( new Point3D( 1828, 2948,-20), "<BASEFONT COLOR=#00DD66>Trinsic" ),
// Trinsic 1012008 new PMEntry( new Point3D( 643, 2067, 5 ), "<BASEFONT COLOR=#00FF66>Skara Brae" ),
// Skara Brae 1012009 new PMEntry( new Point3D( 3563, 2139, 34), "<BASEFONT COLOR=#00DD66>Magincia" ),
// Magincia 1012010 new PMEntry( new Point3D( 3763, 2771, 50), "<BASEFONT COLOR=#00BB66>Haven" )
// Haven 1046259
} );

Hope that helps.

*** EDIT ***
Still can't get my head round the code tags here
 

Pure Insanity

Sorceror
Switch to the bbc code editor when posting something in code tags, it's what I usually do. Since if you try and paste something in the current text box...it tries to copy/add new tags to mimic w/e font it is that you pasted.
 
Top