intfiction.org

The Interactive Fiction Community Forum
It is currently Sun Oct 22, 2017 1:36 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Mar 17, 2017 3:06 pm 
Offline

Joined: Fri Mar 17, 2017 2:54 pm
Posts: 4
New user to TADS, using the advlite extension for my first game

Making a web UI game, and trying to do something very simple as changing the font size and color by inserting code for example: "<font size=+1 face=TADS-Sans color=blue>"

The initial display info, game description, room description, command prompt works great. But when the game gets to the prompt for command input - it's defaulted BACK to whatever default game font, size, color, etc... Then from then on and for the rest of the game - I have lost my font size, color, etc.. that I set originally.

Why is that? How can I make the game respect the initial color and size that I have set?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Mar 20, 2017 4:02 pm 
Offline

Joined: Fri Mar 17, 2017 2:54 pm
Posts: 4
wow.. nada a response on a simple question. I sure picked the wrong language to learn.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Mar 21, 2017 7:45 am 
Offline

Joined: Sat Jul 16, 2011 3:48 pm
Posts: 254
marksi wrote:
wow.. nada a response on a simple question. I sure picked the wrong language to learn.


Did you realize that only very few very time-constrained people are replying on this board?

marksi wrote:
Why is that? How can I make the game respect the initial color and size that I have set?


That's probably side effect how the web browser deals with invalid HTML you have created by not closing the font tag. You should rather override defaultPrefs.js to change default font, size and color. Just make a webuires folder under your game source folder, copy file here and tweak it, then add the file as a resource to your game.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group