Skip to content

Commit

Permalink
Expose UI Visible property
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Nov 15, 2018
1 parent 4614a30 commit 8059732
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ui/opengl/castleuicontrols.pas
Expand Up @@ -1731,6 +1731,10 @@ TCastleUserInterface = class(TInputListener)
property HasVerticalAnchor: boolean
read FHasVerticalAnchor write FHasVerticalAnchor stored false;
deprecated 'this property does not do anything anymore, anchors are always active';

{ Is the control possibly visible.
This is always @true when @link(Culling) is @false (the default). }
property Visible: Boolean read FVisible;
published
{ Control is being displayed.
See @link(Render) for details.
Expand Down Expand Up @@ -4823,6 +4827,8 @@ procedure TCastleUserInterface.SetCulling(const Value: Boolean);
if FCulling <> Value then
begin
FCulling := Value;
if not Value then
FVisible := true; // Visible is always true when Culling is false
VisibleChange([chRender]);
end;
end;
Expand Down

0 comments on commit 8059732

Please sign in to comment.