From e39afabcfd650cf3b198989bbb995e799e2d0f8b Mon Sep 17 00:00:00 2001 From: lalien Date: Thu, 23 Aug 2012 14:16:46 +0000 Subject: [PATCH] - support for full screen main menu rev. 5498 - added full screen main menu image for all resolutions - added xml options mor main menu - StretchImage if 1 the image is stretched to the screen size - CenterImage if 1 the image is centered in X - ImagePositionRelative if 0 the image is displayed on the same place on any resolution, ignored when StretchImage is active - obsolete xml tags not removed for compatibility with older versions - only png images are functional git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@1505 4f8fa57e-7814-0410-bad4-adc449f26b7c --- .../TableData/Layout/LayoutMainMenu.xml | 17 ++++++++++++++++- .../Data/TableData/Layout/LayoutMainMenu.xml | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/gamedir/Data-1.13/TableData/Layout/LayoutMainMenu.xml b/gamedir/Data-1.13/TableData/Layout/LayoutMainMenu.xml index 0e0ab3af8..c8f8892b2 100644 --- a/gamedir/Data-1.13/TableData/Layout/LayoutMainMenu.xml +++ b/gamedir/Data-1.13/TableData/Layout/LayoutMainMenu.xml @@ -5,6 +5,13 @@ X800 Y600 ImagePositionXxxx = (X - 640) / 2 ImagePositionYyyy = (Y - 480) / 2 + +StretchImage if 1 the image is stretched to the screen size +CenterImage if 1 the image is centered in X +ImagePositionRelative if 0 the image is displayed on the same place on any resolution, ignored when StretchImage is active + +all tags with resolution are now obsolete but not removed for compability with older versions + --> @@ -27,6 +34,10 @@ ImagePositionYyyy = (Y - 480) / 2 LOADSCREENS\MainMenuBackground.sti LOADSCREENS\MainMenuBackground_800x600.sti LOADSCREENS\MainMenuBackground_1024x768.sti + 1 + 0 + 0 + 0 0 0 0 @@ -41,8 +52,12 @@ ImagePositionYyyy = (Y - 480) / 2 LOADSCREENS\Ja2Logo.sti LOADSCREENS\Ja2Logo.sti LOADSCREENS\Ja2Logo.sti + 0 + 0 + 1 + 1 188 - 10 + 70 268 70 380 diff --git a/gamedir/Data/TableData/Layout/LayoutMainMenu.xml b/gamedir/Data/TableData/Layout/LayoutMainMenu.xml index 0e0ab3af8..c8f8892b2 100644 --- a/gamedir/Data/TableData/Layout/LayoutMainMenu.xml +++ b/gamedir/Data/TableData/Layout/LayoutMainMenu.xml @@ -5,6 +5,13 @@ X800 Y600 ImagePositionXxxx = (X - 640) / 2 ImagePositionYyyy = (Y - 480) / 2 + +StretchImage if 1 the image is stretched to the screen size +CenterImage if 1 the image is centered in X +ImagePositionRelative if 0 the image is displayed on the same place on any resolution, ignored when StretchImage is active + +all tags with resolution are now obsolete but not removed for compability with older versions + --> @@ -27,6 +34,10 @@ ImagePositionYyyy = (Y - 480) / 2 LOADSCREENS\MainMenuBackground.sti LOADSCREENS\MainMenuBackground_800x600.sti LOADSCREENS\MainMenuBackground_1024x768.sti + 1 + 0 + 0 + 0 0 0 0 @@ -41,8 +52,12 @@ ImagePositionYyyy = (Y - 480) / 2 LOADSCREENS\Ja2Logo.sti LOADSCREENS\Ja2Logo.sti LOADSCREENS\Ja2Logo.sti + 0 + 0 + 1 + 1 188 - 10 + 70 268 70 380