Add a panel for the new title screen.

This commit is contained in:
Mark de Wever 2009-06-14 09:04:37 +00:00
parent f8097c24d0
commit a7982dedcb
2 changed files with 127 additions and 12 deletions

View file

@ -0,0 +1,110 @@
#textdomain wesnoth-lib
###
### Definition of the panel for the title screen.
###
### Most of the code is a copy paste of window_default.cfg.
###
[panel_definition]
id = "title_screen"
description = "Definition of the panel for the title screen"
[resolution]
left_border = 25
right_border = 25
top_border = 25
bottom_border = 25
[background]
[draw]
# Blurring doesn't work yet, keeps adding
# [pre_commit]
#
# [blur]
# depth = 1
# [/blur]
#
# [/pre_commit]
[image]
name = "dialogs/translucent54-border-topleft.png"
[/image]
[image]
x = 5
y = 0
w = "(width - 14)"
stretch = "true"
name = "dialogs/translucent54-border-top.png"
[/image]
[image]
x = "(width - 9)"
y = 0
name = "dialogs/translucent54-border-topright.png"
[/image]
[image]
x = "(width - 9)"
y = 5
h = "(height - 14)"
stretch = "true"
name = "dialogs/translucent54-border-right.png"
[/image]
[image]
x = "(width - 9)"
y = "(height - 9)"
name = "dialogs/translucent54-border-botright.png"
[/image]
[image]
x = 5
y = "(height - 9)"
w = "(width - 14)"
stretch = "true"
name = "dialogs/translucent54-border-bottom.png"
[/image]
[image]
x = 0
y = "(height - 9)"
name = "dialogs/translucent54-border-botleft.png"
[/image]
[image]
x = 0
y = 5
h = "(height - 14)"
stretch = "true"
name = "dialogs/translucent54-border-left.png"
[/image]
[image]
x = 5
y = 5
w = "(width - 14)"
h = "(height - 14)"
name = "dialogs/translucent54-background.png"
[/image]
[/draw]
[/background]
[foreground]
[draw]
[/draw]
[/foreground]
[/resolution]
[/panel_definition]

View file

@ -73,18 +73,23 @@
#enddef
#define _GUI_MENU_SECTION
[grid]
{_GUI_BUTTON "tutorial" _"Tutorial"}
{_GUI_BUTTON "campaign" _"Campaign"}
{_GUI_BUTTON "multiplayer" _"Multiplayer"}
{_GUI_BUTTON "load" _"Load"}
{_GUI_BUTTON "addons" _"Add-ons"}
{_GUI_BUTTON "editor" _"Editor"}
{_GUI_BUTTON "language" _"Language"}
{_GUI_BUTTON "preferences" _"Preferences"}
{_GUI_BUTTON "credits" _"Credits"}
{_GUI_BUTTON "quit" _"Quit"}
[/grid]
[panel]
definition = "title_screen"
[grid]
{_GUI_BUTTON "tutorial" _"Tutorial"}
{_GUI_BUTTON "campaign" _"Campaign"}
{_GUI_BUTTON "multiplayer" _"Multiplayer"}
{_GUI_BUTTON "load" _"Load"}
{_GUI_BUTTON "addons" _"Add-ons"}
{_GUI_BUTTON "editor" _"Editor"}
{_GUI_BUTTON "language" _"Language"}
{_GUI_BUTTON "preferences" _"Preferences"}
{_GUI_BUTTON "credits" _"Credits"}
{_GUI_BUTTON "quit" _"Quit"}
[/grid]
[/panel]
#enddef
[window]