22 #ifndef TWP_ACTORSWITCHER_H 23 #define TWP_ACTORSWITCHER_H 25 #include "common/func.h" 26 #include "twp/scenegraph.h" 32 #define asTemporaryUnselectable 0x2 34 typedef void SelectFunc(
int id);
44 SelectFunc *selectFunc;
54 bool isMouseOver()
const {
return _mouseOver; }
55 void setFlash(
int flash) { _flash = flash; }
58 void drawCore(
const Math::Matrix4 &trsf)
override final;
60 void drawIcon(
const Common::String &icon,
const Color &backColor,
const Color &frameColor,
const Math::Matrix4 &trsf,
int index);
61 Math::Matrix4 transform(
const Math::Matrix4 &trsf,
int index);
62 float getAlpha(
size_t index)
const;
64 int iconIndex(
const Math::Vector2d &pos)
const;
71 bool _mouseOver =
false;
75 float _flashElapsed = 0.f;
76 float _animElapsed = 0.f, _animPos = 0.f;
Definition: actorswitcher.h:49
Definition: actorswitcher.h:37
Definition: scenegraph.h:41
Definition: achievements_tables.h:27
Definition: spritesheet.h:37