Anonymous user
Editing the GUIs: Difference between revisions
m
no edit summary
*>Monkey 05 06 mNo edit summary |
*>Monkey 05 06 mNo edit summary |
||
Line 30: | Line 30: | ||
if (interface == ICONBAR) | if (interface == ICONBAR) | ||
=GUI buttons= | ==GUI buttons== | ||
To provide interactivity with the interface, you use buttons. | To provide interactivity with the interface, you use buttons. | ||
Line 39: | Line 39: | ||
To delete a GUI button, select it then press the Delete key on the keyboard. | To delete a GUI button, select it then press the Delete key on the keyboard. | ||
=Interface text= | ==Interface text== | ||
You can easily display static text on interfaces. For example, the Sierra-style interface displays the score in the status bar. | You can easily display static text on interfaces. For example, the Sierra-style interface displays the score in the status bar. | ||
Line 56: | Line 56: | ||
The Properties window also allows you to align the text to left, right or centre, as well as change its font and colour. | The Properties window also allows you to align the text to left, right or centre, as well as change its font and colour. | ||
=Customized Text Windows= | ==Customized Text Windows== | ||
If you want to add a personal touch to the standard white text-boxes which display all the messages during the game, you can create a border using the GUI Editor. Create a new GUI, and check the "text window" box for it. | If you want to add a personal touch to the standard white text-boxes which display all the messages during the game, you can create a border using the GUI Editor. Create a new GUI, and check the "text window" box for it. | ||
Line 67: | Line 67: | ||
To set the text colour in the window, simply set the Foreground Colour of the GUI and that will be used to print the message text in. | To set the text colour in the window, simply set the Foreground Colour of the GUI and that will be used to print the message text in. | ||
=Custom inventory= | ==Custom inventory== | ||
Another option you may have noticed in the GUI editor is the Add Inventory button. This allows you to drag out a rectangle which will display the player's current inventory, in the same way as the Lucasarts games did. To make the inventory window scrollable, you will need to add Up and Down arrow buttons, and attach script code to those buttons to use the available functions such as [[GUI InvWindow functions and properties#InvWindow.ScrollUp|InvWindow.ScrollUp]] and [[GUI InvWindow functions and properties#InvWindow.ScrollDown|InvWindow.ScrollDown]]. | Another option you may have noticed in the GUI editor is the Add Inventory button. This allows you to drag out a rectangle which will display the player's current inventory, in the same way as the Lucasarts games did. To make the inventory window scrollable, you will need to add Up and Down arrow buttons, and attach script code to those buttons to use the available functions such as [[GUI InvWindow functions and properties#InvWindow.ScrollUp|InvWindow.ScrollUp]] and [[GUI InvWindow functions and properties#InvWindow.ScrollDown|InvWindow.ScrollDown]]. | ||
To see a full list of commands available for inventory windows, see the [[GUI InvWindow functions and properties]] section. | To see a full list of commands available for inventory windows, see the [[GUI InvWindow functions and properties]] section. |