aboutsummaryrefslogblamecommitdiffstats
path: root/Game/Code/Menu/UMenuStatic.pas
blob: 4b10e54c3bab45610a94ebb117303e9744380088 (plain) (tree)































                                                               
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.