mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 02:23:47 +00:00
gui types using image_asset
This commit is contained in:
parent
fa8110ce8f
commit
f519cff6ff
25 changed files with 184 additions and 266 deletions
|
|
@ -47,21 +47,12 @@ class GuiProgressBitmapCtrl : public GuiTextCtrl
|
|||
|
||||
F32 mProgress;
|
||||
|
||||
DECLARE_IMAGEASSET(GuiProgressBitmapCtrl, Bitmap, onImageChanged, GFXDefaultGUIProfile);
|
||||
DECLARE_ASSET_SETGET(GuiProgressBitmapCtrl, Bitmap);
|
||||
DECLARE_IMAGEASSET_REFACTOR(GuiProgressBitmapCtrl, Bitmap, GFXDefaultGUIProfile)
|
||||
|
||||
bool mUseVariable;
|
||||
bool mTile;
|
||||
S32 mNumberOfBitmaps;
|
||||
S32 mDim;
|
||||
|
||||
static bool _setBitmap( void* object, const char* index, const char* data )
|
||||
{
|
||||
static_cast< GuiProgressBitmapCtrl* >( object )->setBitmap( data );
|
||||
return false;
|
||||
}
|
||||
|
||||
void onImageChanged() {}
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue