Message box frame

Cloy
16 Jan 2017, 00:01Hello, how could I add
- my own background to the game (via css code it does not work :/ or I am doing something wrong)
- 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
The Pixie
16 Jan 2017, 08:13Setting 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.

Cloy
17 Jan 2017, 14:11Hi Pixie. Where should you add it? Into the Functions --> InitInterface?
The Pixie
17 Jan 2017, 14:31No, InitUserInterface
, which is an empty function waiting for stuff like this.

Cloy
17 Jan 2017, 15:18So.
- 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
The Pixie
17 Jan 2017, 15:40Try this one instead.
https://github.com/ThePix/quest/wiki#ui

Cloy
17 Jan 2017, 23:05Thanks Pixie. I will check it too.
But is there a tutorial side with pictures, which explain how to do all these exactly?