aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UThemes.pas
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-04-30 12:30:35 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-04-30 12:30:35 +0000
commit5737662e749229ef0631e3731858a5bf013c78eb (patch)
tree675f4a745bc93c27ddffa4822ca6f739ffd4335b /Game/Code/Classes/UThemes.pas
parent37f734e1943563ca121791eabb9bff067a591e3d (diff)
downloadusdx-5737662e749229ef0631e3731858a5bf013c78eb.tar.gz
usdx-5737662e749229ef0631e3731858a5bf013c78eb.tar.xz
usdx-5737662e749229ef0631e3731858a5bf013c78eb.zip
Added ability to make buttons invisible(and also unselectable) in Theme.
Visible = 0 Useful for f.e. the Exit Button from MainScreen Fixed a bug in PartyNewRoundScreen that causes a crash when an Arrow Button is pressed git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@152 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UThemes.pas5
1 files changed, 5 insertions, 0 deletions
diff --git a/Game/Code/Classes/UThemes.pas b/Game/Code/Classes/UThemes.pas
index 414da72f..47c1abf1 100644
--- a/Game/Code/Classes/UThemes.pas
+++ b/Game/Code/Classes/UThemes.pas
@@ -131,6 +131,9 @@ type
DInt: real;
Tex: string;
Typ: string;
+
+ Visible: Boolean;
+
//Reflection Mod
Reflection: boolean;
Reflectionspacing: Real;
@@ -1530,6 +1533,8 @@ begin
ThemeButton.DColB := Color[C].RGB.B;
end;
+ ThemeButton.Visible := (ThemeIni.ReadInteger(Name, 'Visible', 1) = 1);
+
//Fade Mod
ThemeButton.SelectH := ThemeIni.ReadInteger (Name, 'SelectH', ThemeButton.H);
ThemeButton.SelectW := ThemeIni.ReadInteger (Name, 'SelectW', ThemeButton.W);