AGS Support > Modules & Plugins
MODULE: Hypertext v1.3 - Change font mid-sentence, web-like pages, Speech bubble
Maverick:
Another excellent module.
I played around with the demo a bit and get a warning when I exit the game
(room1): Dynamic sprite 7 was never deleted
(room1):Dynamic sprite 8 was never deleted
Also if you do the mark up for hypertext using the last word in a string it wraps around to the next string and the whole block of text becomes the hyperlink.
Example:
Hypertext.Add("Test", "John and Joe played _Fred|Tic-Tac-Toe_.");
Hypertext.Add("Test", "After 10 games the score was tied at 5 each. ");
Renders as:
John and Joe played Tic-Tac-Toe_. After 10 games the score was tied at 5 each.
not as:
John and Joe played Tic-Tac-Toe. After 10 games the score was tied at 5 each.
I suppose you can always plan your text in such a way that you never use the last word in a string to create the hyperlink. Not a big issue.
Thanks again for your time and effort ;D
Kweepa:
--- Quote from: Maverick on 09 Dec 2006, 17:16 ---Also if you do the mark up for hypertext using the last word in a string it wraps around to the next string and the whole block of text becomes the hyperlink.
--- End quote ---
Actually, it's the character after the underscore that causes the problem. If you write
[code]
Hypertext.Add("Test", "John and Joe played _Fred|Tic-Tac-Toe._ ");
Hypertext.Add("Test", "After 10 games the score was tied at 5 each. ");
[/code]
it works fine.
Very cool module! I particularly like that the page history works.
[EDIT]
One feature that would be useful that wasn't in the TODO list (I think) would be a function to get the current page name. That way you could trigger game events from it, display images in a separate GUI, play music, end the game...
It might also be useful to be able to clear a page, so it can be altered slightly.
Rui 'Trovatore' Pires:
Out of curiosity (and it's easy to see in the module, but it would be nice if it were mentioned here as well), are we talking about about Display messages, GUI labels, or both?
Maverick:
--- Quote from: SteveMcCrea on 09 Dec 2006, 18:08 ---actually, it's the character after the underscore that causes the problem. If you write
[code]
Hypertext.Add("Test", "John and Joe played _Fred|Tic-Tac-Toe._ ");
Hypertext.Add("Test", "After 10 games the score was tied at 5 each. ");
[/code]
it works fine.
--- End quote ---
Steve ,
I tried it and the problem is still the same (AGS version 2.72)
Kweepa:
--- Quote from: Maverick on 09 Dec 2006, 20:38 ---I tried it and the problem is still the same (AGS version 2.72)
--- End quote ---
You probably didn't put a space at the end of the first line, after the underscore.
The underscore (or asterisk, etc) has to be the last character in a word - the words are separated by spaces only.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version