Message box frame

Hello, how could I add

  1. my own background to the game (via css code it does not work :/ or I am doing something wrong)
  2. my own design (or maybe only very thin lined border) to the frame of all message boxes. (via functions and setting the frame couldn't help me).

Thanks to all


Setting the background should be easy, if you set the CSS for the #gameBorder element.

I think this will remove the border of the text box:

JS.addText ("<style>#txtCommand { outline:none; border:none; margin:0; padding:0; width:100 px;}</style>")

Hopefully you can adapt it. Check what happens when a player saves a game and then reloads it.


Hi Pixie. Where should you add it? Into the Functions --> InitInterface?


No, InitUserInterface, which is an empty function waiting for stuff like this.


So.

  1. New function --> 2. InitUserInterface -->3. Pasting Script ?
    When I play the game, there is no reaction.

For example there is a tutorial where you can read the structure of the Quest system;

http://docs.textadventures.co.uk/quest/guides/modifying_the_ui__advanced.html

but there is not a one tutorial how to integrate these stuff step by step.
For new ones who want to write some stories, it is a big loophole, I think


Try this one instead.
https://github.com/ThePix/quest/wiki#ui


Thanks Pixie. I will check it too.
But is there a tutorial side with pictures, which explain how to do all these exactly?


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums