Skip to content

What purpose does Update have in Images? #1933

Answered by Ethereal77
MCVenor asked this question in Newcomers
Discussion options

You must be logged in to vote

They are always "updated" by the UI system. You don't have to register or do anything at all. They are virtual methods you can override in derived classes if you think you need a derived specialized ImageElement. But unless that is your case, you can just use ImageElement and not override anything.

The current implementation in there is prettly lightweight, just updates the sprite if it has changed (i.e. when you set / unset the sprite via the Source property). Take a look.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Ethereal77
Comment options

Answer selected by MCVenor
@MCVenor
Comment options

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