Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-18-2005, 12:26 AM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
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.
Reply With Quote
  #2  
Old 05-18-2005, 12:52 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
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>
Reply With Quote
  #3  
Old 05-18-2005, 06:51 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #4  
Old 05-18-2005, 07:02 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
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.
Reply With Quote
  #5  
Old 05-18-2005, 08:52 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:46 PM.


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