Skip to content

Commit

Permalink
Hide Frame deprecation warnings (to not obscure other warnings), but …
Browse files Browse the repository at this point in the history
…add TODO
  • Loading branch information
michaliskambi committed Aug 25, 2024
1 parent ed4ae1a commit 6d7b197
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/v3dscenenamedanimations.pas
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,10 @@ constructor TNamedAnimationsUi.Create(const AOwner: TComponent; const AScene: TC
inherited Create(AOwner);

Scene := AScene;
// TODO: remove Frame usage, we need parent UI with filling and border, and AutoSizeToChildren
{$warnings off}
Frame := true;
{$warnings on}
Padding := Margin;
Spacing := 4;

Expand Down
3 changes: 3 additions & 0 deletions code/v3dscenestatus.pas
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ constructor TStatusText.Create(AOwner: TComponent);
FontSize := 15;
CustomFont := TCastleFont.Create(Self);
TCastleFont(CustomFont).Load(Font_Default3d_MonoB);
// TODO: remove Frame usage, we need parent UI with filling and border, and AutoSizeToChildren
{$warnings off}
Frame := true;
{$warnings on}
end;

procedure TStatusText.Render;
Expand Down

0 comments on commit 6d7b197

Please sign in to comment.