XML/Menu

From MegaGlest
Revision as of 01:18, 9 April 2011 by Hofmic (talk) (Expansion, testing.)
Jump to: navigation, search
This Article is Undergoing a Major Edit!

To prevent edit conflicts, please do not edit this article until the editor has removed this tag. If you wish to know who is editing and when the editing began, please see the page history.

The menu XML defines how the menu screen works. It controls the fog, rain, and water level, as well as the camera positions and angles for each menu option. It varies slightly in the differing versions of Glest, since the forks add different menu options, such as GAE's save menu. As well, GAE has options to toggle the images and a total conversion option.

Complete XML

<?xml version="1.0"?>

<menu>  <water value="true" height="3" />  <rain value="true" />  <fog value="true" density="0.025" />  <camera>   <start-position x="5" y="10" z="40" />   <root-position x="-9" y="11" z="10" />   <about-position x="6" y="8.5" z="11" />   <config-position x="4" y="17" z="0" />   <info-position x="5" y="6" z="-5" />   <new-game-position x="12" y="17" z="5" />   <join-game-position x="14" y="15" z="5" />   <scenario-position x="10" y="13" z="2" />   <loadgame-position x="0" y="20" z="-5" />
  <start-rotation x="0" y="0" z="0" />   <root-rotation x="0" y="-40" z="0" />   <about-rotation x="0" y="-80" z="0" />   <config-rotation x="0" y="-5" z="0" />   <info-rotation x="0" y="25" z="0" />   <new-game-rotation x="0" y="10" z="0" />   <join-game-rotation x="0" y="12" z="0" />   <scenario-rotation x="0" y="-10" z="0" />   <loadgame-rotation x="-15" y="0" z="0" />  </camera>  <logos>   <total-conversion value="false" />   <gae-logo value="false" />   <gpl-logo value="true" />  </logos>

</menu>

Documentation

water

Toggles and sets the height value, in game tiles, of the water. Each game tile is equal to roughly 1 tile in Blender. If the water is turned off, exclude the height value:

<water value="false" />

rain

Toggles on or off rain. There is not yet a method of adding snow.

fog

Toggles and sets the density of fog. The density is the thickness of the fog. You cannot yet choose the color of this fog, and it will be rendered the standard grey.

camera

These settings control the position and rotation of the camera for each menu.

start-position

Sets the very first position the camera will be in when the game starts. It will not stay in this position and will move towards the root menu position, so this is entirely a cinematic effect.

root-position

The camera location for the main menu.

See Also