Jazz2::Editor::WeaponSpriteView class

An animation of a weapon in a small box, as it plays in the game.

Nothing is shown while the function returns nullptr.

Constructors, destructors, conversion operators

WeaponSpriteView(IEditorContext& session, Function<const GraphicResource*(bool&)>&& getResource)
Creates a new instance, the function returns the animation and whether it glows.

Public functions

auto Measure(const Context& context, Vector2f available) -> Vector2f override
void Draw(Painter& painter) override