Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Suggestion: More GUI Text tags (https://forums.graalonline.com/forums/showthread.php?t=59002)

ChibiChibiLuc 05-18-2005 12:26 AM

Suggestion: More GUI Text tags
 
It would be nice if some more GUI Text tags would be added to v4.

The main ones I'd like are bold font (<b>), italic font (<i>), underlined font (<i>), and something to disable the usage of tags.

Rick 05-18-2005 12:52 AM

You use the font tag to set bold, italics. It works this way because of how the font rendering works. (It generates a special cache representing a single font).

So if you want a bold Verdana at size 24, you do:

HTML Code:

<font:Verdana Bold:24>

Admins 05-18-2005 06:51 PM

Quote:

Originally Posted by Rick
You use the font tag to set bold, italics. It works this way because of how the font rendering works. (It generates a special cache representing a single font).

So if you want a bold Verdana at size 24, you do:

HTML Code:

<font:Verdana Bold:24>

Won't work in Graal though, so I will need to add new tags for that and also parse the old font names and extract the "bold" etc.

Rick 05-18-2005 07:02 PM

Quote:

Originally Posted by Stefan
Won't work in Graal though, so I will need to add new tags for that and also parse the old font names and extract the "bold" etc.

? Why not.

I thought he was referring to GUI controls, not showtext, etc.

Admins 05-18-2005 08:52 PM

Quote:

Originally Posted by Rick
? Why not.

I thought he was referring to GUI controls, not showtext, etc.

The "font" engine in Torque wants the font style inside the font name, while in TrueType rendering or with normal HTML code it is a separate attribute.


All times are GMT +2. The time now is 03:23 PM.

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