Difference between revisions of "Mission screen"

From Elite Wiki
(Page Created)
 
(Added a little more)
Line 2: Line 2:
  
 
[[File:Hints.png|right|320px]]
 
[[File:Hints.png|right|320px]]
Mission screens  
+
Mission screens started off as screens which allow the player to interface with NPCs in a mission.oxp but also allow other sorts of "communication" as in the conversation overheard in the bar in the [[Hints OXP]].
  
They can have backdrops, changes in text and allow options for the player.
+
They can have backdrops, changes in text and allow choices for the player.
  
 
The text can be placed in a descriptions.plist, details about it in a script.js
 
The text can be placed in a descriptions.plist, details about it in a script.js
Line 15: Line 15:
 
In XML:
 
In XML:
 
     \n Inserts a hard Enter.
 
     \n Inserts a hard Enter.
 +
 +
:See [[Missiontext.plist]] for more complexity (''eg'' random names, naming current system ''etc'')
 +
 
:Character '31' (hex:1F, octal:037) is a narrow 'hair-space'. Custom font OXPs should ensure that this character is blank and has the same narrow width as the core font definition, as it is used to allow an equivalent to 'tab stops' in mission text.
 
:Character '31' (hex:1F, octal:037) is a narrow 'hair-space'. Custom font OXPs should ensure that this character is blank and has the same narrow width as the core font definition, as it is used to allow an equivalent to 'tab stops' in mission text.
:See [[Missiontext.plist]] for more detail (''eg'' random names, naming current system ''etc'')
+
 
  
 
== Colour ==
 
== Colour ==
Line 27: Line 30:
 
or you can use ''overlay'' instead of ''background'' (less conflicts with other oxp's such as XenonUI which also specify a background)
 
or you can use ''overlay'' instead of ''background'' (less conflicts with other oxp's such as XenonUI which also specify a background)
  
 +
 +
== Svengali's Library & CCL ==
 +
These two oxp's allow for more complex interractions. See the deprecated [[CCL]]'s never used [[Cutscene]], as well as the current [[Library OXP]]'s "Music" and "Demos".
  
 
== Links ==
 
== Links ==
 
*[http://aegidian.org/bb/viewtopic.php?p=276448#p276448 Creating a mission screen] for textual messages
 
*[http://aegidian.org/bb/viewtopic.php?p=276448#p276448 Creating a mission screen] for textual messages
 
*[http://www.aegidian.org/bb/viewtopic.php?p=283395#p283395 Changing text colour]
 
*[http://www.aegidian.org/bb/viewtopic.php?p=283395#p283395 Changing text colour]
 
  
 
[[Category:Oolite scripting]]
 
[[Category:Oolite scripting]]

Revision as of 09:18, 3 April 2022

Hints.png

Mission screens started off as screens which allow the player to interface with NPCs in a mission.oxp but also allow other sorts of "communication" as in the conversation overheard in the bar in the Hints OXP.

They can have backdrops, changes in text and allow choices for the player.

The text can be placed in a descriptions.plist, details about it in a script.js

Text

Several spacial characters are used in determining the layout of the text, just as in Wiki.
   \" Enables the use of colons.
   \\n Insert a hard Enter.

In XML:

   \n Inserts a hard Enter.
See Missiontext.plist for more complexity (eg random names, naming current system etc)
Character '31' (hex:1F, octal:037) is a narrow 'hair-space'. Custom font OXPs should ensure that this character is blank and has the same narrow width as the core font definition, as it is used to allow an equivalent to 'tab stops' in mission text.


Colour

Choices can be non-yellow (have a look at the various contracts interfaces in 1.77) but there is a more fundamental limitation of the current UI code that all text on a particular line has to be the same colour. Cim (2013)


Backdrop

This is managed from within the script.js file:
background: ""the_file_name_of_the_image_you_want_to_display_must_be_in_the_images_folder.png",

or you can use overlay instead of background (less conflicts with other oxp's such as XenonUI which also specify a background)


Svengali's Library & CCL

These two oxp's allow for more complex interractions. See the deprecated CCL's never used Cutscene, as well as the current Library OXP's "Music" and "Demos".

Links