mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
alpha masking for buttons. original attribution @dottools
This commit is contained in:
parent
61bae52c89
commit
76228f2d0c
2 changed files with 45 additions and 0 deletions
|
|
@ -113,6 +113,9 @@ class GuiBitmapButtonCtrl : public GuiButtonCtrl
|
|||
/// File name for bitmap.
|
||||
String mBitmapName;
|
||||
|
||||
/// alpha masking
|
||||
bool mMasked;
|
||||
|
||||
///
|
||||
Textures mTextures[ NumModifiers ];
|
||||
|
||||
|
|
@ -163,6 +166,7 @@ class GuiBitmapButtonCtrl : public GuiButtonCtrl
|
|||
virtual void onRender(Point2I offset, const RectI &updateRect);
|
||||
|
||||
static void initPersistFields();
|
||||
bool pointInControl(const Point2I& parentCoordPoint);
|
||||
|
||||
DECLARE_CONOBJECT(GuiBitmapButtonCtrl);
|
||||
DECLARE_DESCRIPTION( "A button control rendered entirely from bitmaps.\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue