mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 18:43:48 +00:00
SoundAsset Refactor
This commit is contained in:
parent
9f29bee45f
commit
da40838560
61 changed files with 1333 additions and 1828 deletions
|
|
@ -244,8 +244,6 @@ GuiControlProfile::GuiControlProfile(void) :
|
|||
mTextOffset(0,0),
|
||||
mBitmapArrayRects(0)
|
||||
{
|
||||
INIT_ASSET(SoundButtonDown);
|
||||
INIT_ASSET(SoundButtonOver);
|
||||
mLoadCount = 0;
|
||||
mUseCount = 0;
|
||||
|
||||
|
|
@ -321,21 +319,6 @@ GuiControlProfile::GuiControlProfile(void) :
|
|||
mUseBitmapArray = def->mUseBitmapArray;
|
||||
mTextOffset = def->mTextOffset;
|
||||
|
||||
// default sound
|
||||
_setSoundButtonDown(def->getSoundButtonDown());
|
||||
if (getSoundButtonDown() != StringTable->EmptyString())
|
||||
{
|
||||
if (!getSoundButtonDownProfile())
|
||||
Con::errorf(ConsoleLogEntry::General, "GuiControlProfile: Can't get default button pressed sound asset.");
|
||||
}
|
||||
|
||||
_setSoundButtonOver(def->getSoundButtonOver());
|
||||
if (getSoundButtonOver() != StringTable->EmptyString())
|
||||
{
|
||||
if (!getSoundButtonOverProfile())
|
||||
Con::errorf(ConsoleLogEntry::General, "GuiControlProfile: Can't get default button hover sound asset.");
|
||||
}
|
||||
|
||||
//used by GuiTextCtrl
|
||||
mModal = def->mModal;
|
||||
mAlignment = def->mAlignment;
|
||||
|
|
|
|||
|
|
@ -467,10 +467,8 @@ public:
|
|||
Vector<RectI> mBitmapArrayRects; ///< Used for controls which use an array of bitmaps such as checkboxes
|
||||
|
||||
DECLARE_SOUNDASSET(GuiControlProfile, SoundButtonDown); ///< Sound played when a button is pressed.
|
||||
DECLARE_ASSET_SETGET(GuiControlProfile, SoundButtonDown);
|
||||
|
||||
DECLARE_SOUNDASSET(GuiControlProfile, SoundButtonOver); ///< Sound played when a button is hovered.
|
||||
DECLARE_ASSET_SETGET(GuiControlProfile, SoundButtonOver);
|
||||
|
||||
StringTableEntry mChildrenProfileName; ///< The name of the profile to use for the children controls
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue