Click or drag to resize

Texture Class

Drawable textures
Inheritance Hierarchy
SystemObject
  Mannequin.BindingsTexture

Namespace:  Mannequin.Bindings
Assembly:  Collapse (in Collapse.exe) Version: 0.4.6.1290 (0.4.6.1290)
Syntax
C#
public class Texture

The Texture type exposes the following members.

Methods
  NameDescription
Public methodAddToScene Obsolete.
Draw a Texture on a Scene.
Public methodDrawOnScene
Draw a Texture on a Scene.
Top
Examples
Draw a sprite for 2 seconds whenever a Living is damaged.
Mannequin:Import("Content")
Mannequin:Import("Event")

local sprite = nil

Event.On("ContentReady", function()
    sprite = Content.GetTexture("gui/button.fistred")
end)

Event.On("LivingAttacked", function(attacker, victim)
    sprite:Draw(attacker.Position, 2000)
end)
See Also