GUI, Inventory & Menu: Difference between revisions

m
Line 144: Line 144:


This is found in the AGS manual, albeit a bit hidden:
This is found in the AGS manual, albeit a bit hidden:
 
<blockquote>
  '''Customized Text Windows'''
'''Customized Text Windows'''<br><br>
  If you want to add a personal touch to the standard white text-boxes which display
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.<br>
  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. The element will be resized to about 1/4 of the screen, and you will see 8 pictures - one in each corner and one on each side. These are the border graphics. You change the graphic for a corner in the normal way.<br>
  Create a new GUI, and check the "text window" box for it.
In the game, the corner graphics will be placed in the respective corners of the text window, and the side graphics will be repeated along the edge of the window. To tell the game to use your custom text window style, go to the '''General Settings''' pane, and check the "'''Text windows use GUI'''" box. Then, enter the number of the GUI which you used.<br>
  The element will be resized to about 1/4 of the screen, and you will see 8 pictures
You can also set a background picture for the text window. In the GUI editor, simply set a background picture for the GUI element. The graphic you specify will not be tiled or stretched in the game; however, it will be clipped to fit the window. You should use a graphic of at least about 250x80 pixels to make sure that it fills up the whole window.<br>
  - one in each corner and one on each side. These are the border graphics. You
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.
  change the graphic for a corner in the normal way.
</blockquote>
  In the game, the corner graphics will be placed in the respective corners of
  the text window, and the side graphics will be repeated along the edge of the
  window. To tell the game to use your custom text window style, go to the General
  Settings pane, and check the "Text windows use GUI" box. Then, enter the number
  of the GUI which you used.
  You can also set a background picture for the text window. In the GUI editor, simply
  set a background picture for the GUI element. The graphic you specify will not be
  tiled or stretched in the game; however, it will be clipped to fit the window. You
  should use a graphic of at least about 250x80 pixels to make sure that it fills up
  the whole window.
  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.
 
[[Category:The AGS Beginners' FAQ]]
[[Category:The AGS Beginners' FAQ]]