Removing Command Border?

The Bitter Baron
04 Nov 2016, 06:01

The program allows me to customize most of the UI, however the Command bar which displays what players type into the game has a beige brown border. Which it will not allow me to seemingly change. Is there an option for altering it, or a way to remove the coloured border in the script?


The Pixie
04 Nov 2016, 09:32

It is not easy, and I do not think it is possible with the on-line editor. Look at the last post on this thread:

http://textadventures.co.uk/forum/quest/topic/zyzoxuh9fk2kgjn6fa0ynq/questions-gui-customization-ie-picture-frame-location-side-panel-background


OurJud
04 Nov 2016, 12:56

It is possible as I have hidden pretty much everything but the description. All you see in my games is the description and then a flashing cursor below; no command box, no border.

As TP says it's just a case of hiding the elements you want with CSS and then calling it using a script. You only really need to (re)call it if your game has any clear screens or for when the player resumes from a save.

I'll see if I can find the thread as it was Jay who walked me through it.


OurJud
04 Nov 2016, 13:02

That was difficult, as Alex has very kindly decided to deny us yet another basic forum function - the ability to search our own posts.

However I eventually found it. Try this: http://textadventures.co.uk/forum/quest/topic/5754/initinterface-help-required

Incidently, the 'bug' I talk about in my first post there, about the CSS not being recalled on resumption of a save, has reportedly been fixed (although I've not tested it yet).


The Bitter Baron
07 Nov 2016, 06:32

What specifically am I to take from all that? I have read it through but it is difficult to follow what the cumulative solution is from it all as there is some troubleshooting and back-to-forth.

This border is really irritating. It has its own gaudy independent style that conflicts with everything; and pretty much screams what program the game was made on.


The Pixie
07 Nov 2016, 08:14

Go into full code view (press F9), you can add an attribute to the XML of the game object that includes CSS.

    <css><![CDATA[
      <style>
        #txtCommand {
          outline:none;
          border: none;
        }
      </style>
    ]]></css>

Paste it in below this line:

    <firstpublished>2016</firstpublished>

You can output that in game.start, and it will affect the selected item.

JS.addText (game.css)

Anonynn
11 Nov 2016, 18:37

http://textadventures.co.uk/forum/samples/topic/5283/window-pane-color-solved#p37260

Check out this thread too. Hagane Steel and Jon created a black border UI. ^_^