void TextureButton::SetNormalTextureName(const FileIdRef& val) { mNormalTextureName = val; if (mButtonState == ButtonState::Normal) { OnUpdateMesh(); } }
void TextureButton::SetSelectedTextureName(const FileIdRef& val) { mSelectedTextureName = val; if (mButtonState == ButtonState::Selected) { OnUpdateMesh(); } }
void TextureButton::SetDisabledTextureName(const FileIdRef& val) { mDisabledTextureName = val; if (mButtonState == ButtonState::Disabled) { OnUpdateMesh(); } }
void IProgressBar::SetPercent(float val) { if (Math::IsEqual(mPercent,val)) { return; } mPercent = val; OnProgressChanged(this,mPercent); OnUpdateMesh(false); }
void IProgressBar::SetProgressType(ProgressType val) { RETURN_IF_EQUAL(mProgressType,val); mProgressType = val; OnUpdateMesh(true); }
bool IProgressBar::Initialize() { OnUpdateMesh(); return true; }
bool TextureButton::Initialize() { OnUpdateMesh(); return true; }
void TextureButton::OnButtonStateChanged() { OnUpdateMesh(); }