aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Menu/UMenuStatic.pas
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code/Menu/UMenuStatic.pas')
-rw-r--r--Game/Code/Menu/UMenuStatic.pas32
1 files changed, 32 insertions, 0 deletions
diff --git a/Game/Code/Menu/UMenuStatic.pas b/Game/Code/Menu/UMenuStatic.pas
new file mode 100644
index 00000000..4b10e54c
--- /dev/null
+++ b/Game/Code/Menu/UMenuStatic.pas
@@ -0,0 +1,32 @@
+unit UMenuStatic;
+
+interface
+uses UTexture, OpenGL12;
+
+type
+ TStatic = class
+ public
+ Texture: TTexture; // Button Screen position and size
+ Visible: boolean;
+ procedure Draw;
+ constructor Create(Textura: TTexture); overload;
+ end;
+
+implementation
+uses UDrawTexture;
+
+procedure TStatic.Draw;
+var
+ Pet: integer;
+begin
+ if Visible then
+ DrawTexture(Texture);
+end;
+
+constructor TStatic.Create(Textura: TTexture);
+begin
+ inherited Create;
+ Texture := Textura;
+end;
+
+end.