Skip to content

Instantly share code, notes, and snippets.

@Vultraz
Created November 16, 2019 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vultraz/00d1e50f7bc44ccf43864a026c643ace to your computer and use it in GitHub Desktop.
Save Vultraz/00d1e50f7bc44ccf43864a026c643ace to your computer and use it in GitHub Desktop.

[window] id = "title_screen" description = "The game's main menu."

[resolution]
	definition = "title_screen"

	{GUI_WINDOW_FULLSCREEN}

	[tooltip]
		id = "tooltip_large"
	[/tooltip]

	[helptip]
		id = "tooltip_large"
	[/helptip]

	[linked_group]
		id = "panel"
		fixed_height = true
	[/linked_group]

	[grid]

		[row]
			grow_factor =1

			[column]
				grow_factor = 1
				vertical_grow = true
				horizontal_alignment = "right"

				[panel]
					definition = "box_display_no_border"

					[grid]

						[row]
							grow_factor = 0

							[column]
								border = "left"
								border_size = 5
								linked_group = "panel"

								[grid]

								[/grid]

							[/column]
						[/row]

						[row]
							grow_factor = 1

							[column]

								[grid]

									#{_GUI_BUTTON "tutorial" _"Tutorial" _"Start a tutorial to familiarize yourself with the game"}
									{_GUI_BUTTON "campaign" _"Campaigns" _"Start a new single player campaign"}
									{_GUI_BUTTON "multiplayer" _"Multiplayer" _"Play multiplayer (hotseat, LAN, or Internet), or a single scenario against the AI"}
									{_GUI_BUTTON "load" _"Load" _"Load a saved game"}
									{_GUI_BUTTON "addons" _"Add-ons" _"Download usermade campaigns, eras, or map packs"}
									{_GUI_BUTTON "editor" _"Map Editor" _"Start the map editor"}
									#{_GUI_BUTTON "language" _"Language" _"Change the language"}
									#{_GUI_BUTTON "preferences" _"Preferences" _"Configure the game’s settings"}
									#{_GUI_BUTTON "credits" _"Credits" _"View the credits"}
									{_GUI_BUTTON "quit" _"Quit" _"Quit the game"}
									# This debug feature doesn't need to be translated.
									#{_GUI_BUTTON "clock" "Clock" "Show debug clock"}

								[/grid]

							[/column]

						[/row]

						[row]
							grow_factor = 0

							[column]
								border = "all"
								border_size = 5
								linked_group = "panel"

								[label]
									id = "revision_number"
									definition = "default_small"
								[/label]

							[/column]

						[/row]

					[/grid]

				[/panel]

			[/column]

			{GUI_FILLER WIDTH=200}
		[/row]

	[/grid]

[/resolution]

[/window]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment