diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-04-30 12:30:35 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-04-30 12:30:35 +0000 |
commit | 5737662e749229ef0631e3731858a5bf013c78eb (patch) | |
tree | 675f4a745bc93c27ddffa4822ca6f739ffd4335b /Game/Code/Classes | |
parent | 37f734e1943563ca121791eabb9bff067a591e3d (diff) | |
download | usdx-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 'Game/Code/Classes')
-rw-r--r-- | Game/Code/Classes/UThemes.pas | 5 |
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);
|