Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCastleTheme.Images as TCastleImagePersistent #254

Merged
merged 5 commits into from
Mar 1, 2021

Conversation

eugeneloza
Copy link
Member

Use TCastleImagePersistent instead of TCastleImage in TCastleTheme, e.g. to allow pixelart splash screens, etc.

Also fix a bug with TCastleImagePersistent.SmoothScaling not being applied if set runtime.

Should fix https://trello.com/c/lNJYLskZ/129-theme-images-as-tcastleimagepersistent

Copy link
Member

@michaliskambi michaliskambi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

And thanks for catching broken TCastleImagePersistent.SetSmoothScaling by the way too.

This should cleanup some examples, since now one can just set image URL and it will work naturally, it will also use cache, it will also automatically make OwnsImage to true.

@michaliskambi michaliskambi merged commit 35b58ce into master Mar 1, 2021
@michaliskambi michaliskambi deleted the theme-images-persistent branch March 1, 2021 22:42
michaliskambi added a commit that referenced this pull request Mar 1, 2021
TCastleImagePersistent has already ProtectedSides

Also simplify fps_game/gameinitialize.pas code now

See #254
@michaliskambi
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants