View Single Post
Old 03-05-11, 03:09 PM   #20
Zedi
Sea Lord
 
Join Date: Mar 2010
Posts: 1,845
Downloads: 184
Uploads: 2
Default

Quote:
Originally Posted by TheDarkWraith View Post
Need to know the following:

- a list of all the fonts you want to be available for this (found in \data\Menu\Pages\Menu_1024_768) and whether you want that font to be able to be bolded and what colors you want available for that font (if any)
- a list of all the colors you want to be available for each font (can be ANY color as the color is specified in RGBA format - 0xRRGGBBAA where RR, GG, BB, and AA are values of 0-255. The font, by default, being used is Univ_11

I have added the ability to bold text. There is one slight problem with it though. As the base text color is 0x101010FF (almost dark black) I can't make the bold text be 0xFF (solid black) because it won't stand out. We have to assign bold text a color. What should it be? Red, green, ??

EDIT:

Tried changing the bold to a color and it didn't look right. So I tried something else: increased the font size and made the color solid black:


I think that looks acceptable for bold text no?

You bold text by wrapping it in <b>....</b> tags where .... is the text to be bolded

Now we should be able to imbed images in the text also. Going to try and make that work now.....

EDIT2:

Wouldn't you know it, no documentation on the stylesheets the game uses either I have no way of knowing what properties the stylesheets can use Once again have to rely on code to do my dirty work Although the ScriptManager says you can use <img> tags in the stylesheets, without documentation it's worthless. I'll try coding something to allow images to be specified in the text.
Not sure I understood this.. we can use html tags to format text. Like <b> and </b> for adding bold? Is this available also for italic? The bold txt will be automaticaly black or we also need to add the color info tag?

To embed images is enough to add the <img> tag, or it requires a path to the image?

Adding colored text is not needed, could be confusing as usually colored txt are for links.
Zedi is offline   Reply With Quote