mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-15 00:25:24 +00:00
Add a panel for the new title screen.
This commit is contained in:
parent
f8097c24d0
commit
a7982dedcb
110
data/gui/default/widget/panel_title_screen.cfg
Normal file
110
data/gui/default/widget/panel_title_screen.cfg
Normal 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]
|
||||||
|
|
@ -73,18 +73,23 @@
|
|||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
#define _GUI_MENU_SECTION
|
#define _GUI_MENU_SECTION
|
||||||
[grid]
|
[panel]
|
||||||
{_GUI_BUTTON "tutorial" _"Tutorial"}
|
definition = "title_screen"
|
||||||
{_GUI_BUTTON "campaign" _"Campaign"}
|
|
||||||
{_GUI_BUTTON "multiplayer" _"Multiplayer"}
|
[grid]
|
||||||
{_GUI_BUTTON "load" _"Load"}
|
{_GUI_BUTTON "tutorial" _"Tutorial"}
|
||||||
{_GUI_BUTTON "addons" _"Add-ons"}
|
{_GUI_BUTTON "campaign" _"Campaign"}
|
||||||
{_GUI_BUTTON "editor" _"Editor"}
|
{_GUI_BUTTON "multiplayer" _"Multiplayer"}
|
||||||
{_GUI_BUTTON "language" _"Language"}
|
{_GUI_BUTTON "load" _"Load"}
|
||||||
{_GUI_BUTTON "preferences" _"Preferences"}
|
{_GUI_BUTTON "addons" _"Add-ons"}
|
||||||
{_GUI_BUTTON "credits" _"Credits"}
|
{_GUI_BUTTON "editor" _"Editor"}
|
||||||
{_GUI_BUTTON "quit" _"Quit"}
|
{_GUI_BUTTON "language" _"Language"}
|
||||||
[/grid]
|
{_GUI_BUTTON "preferences" _"Preferences"}
|
||||||
|
{_GUI_BUTTON "credits" _"Credits"}
|
||||||
|
{_GUI_BUTTON "quit" _"Quit"}
|
||||||
|
[/grid]
|
||||||
|
|
||||||
|
[/panel]
|
||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
[window]
|
[window]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user