aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-06-01 17:40:09 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-06-01 17:40:09 +0000
commit842794d7b93443626089c00083118b532105c5ac (patch)
treeb1de3bcaed5b84987e2b71061f09ece6f7b59ed3
parentdc72a49b4c680fe6698b831a203a9b00e476d562 (diff)
downloadusdx-842794d7b93443626089c00083118b532105c5ac.tar.gz
usdx-842794d7b93443626089c00083118b532105c5ac.tar.xz
usdx-842794d7b93443626089c00083118b532105c5ac.zip
Fixed standard Cover position.
Buttons that have no expression in Theme are now hidden. The Screens are still available through Hotkeys, but they have supposably also no expression in Theme. => Better compatibility with old Screens git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@241 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--Game/Code/Classes/UThemes.pas7
1 files changed, 6 insertions, 1 deletions
diff --git a/Game/Code/Classes/UThemes.pas b/Game/Code/Classes/UThemes.pas
index 471e46bf..ef5d1136 100644
--- a/Game/Code/Classes/UThemes.pas
+++ b/Game/Code/Classes/UThemes.pas
@@ -974,7 +974,7 @@ begin
//Load Cover Pos and Size from Theme Mod
Song.Cover.X := ThemeIni.ReadInteger('SongCover', 'X', 300);
- Song.Cover.Y := ThemeIni.ReadInteger('SongCover', 'Y', 140);
+ Song.Cover.Y := ThemeIni.ReadInteger('SongCover', 'Y', 190);
Song.Cover.W := ThemeIni.ReadInteger('SongCover', 'W', 300);
Song.Cover.H := ThemeIni.ReadInteger('SongCover', 'H', 200);
Song.Cover.Style := ThemeIni.ReadInteger('SongCover', 'Style', 4);
@@ -1589,6 +1589,11 @@ var
T: integer;
Collections2: PAThemeButtonCollection;
begin
+ if not ThemeIni.SectionExists(Name) then
+ begin
+ ThemeButton.Visible := False;
+ exit;
+ end;
DecimalSeparator := '.';
ThemeButton.Tex := ThemeIni.ReadString(Name, 'Tex', '');
ThemeButton.X := ThemeIni.ReadInteger (Name, 'X', 0);