SimpleSpritesheetButton - HermesPasser/Ramu GitHub Wiki

class SimpleSpritesheetButton : SimpleButtonBase

Description

A simple spritesheet button.

Constructor Parameters

  • int x: Position in x.
  • int x: Position in y.
  • int w: Width.
  • int h: Height.
  • Image Object img: The image.
  • Rect rectNormal: Default rect.
  • Rect rectHover: Rect on hover. (optional, default is null)
  • Rect rectClick: Rect on click. (optional, default is null)
new SimpleSpritesheetButton(30, 30, 50, 50, img, rectNormal, rectHover, rectClick);

Inherited Members