Visual Improvements, Fixed check-style

This commit is contained in:
Дядя Женя 2020-10-26 06:10:58 +03:00
parent 9b3d9965fb
commit b6d94a85f3
2 changed files with 8 additions and 2 deletions

View file

@ -100,7 +100,7 @@ CMenus::CMenus()
animator.m_YOffset = -2.5f;
animator.m_HOffset = 5.0f;
animator.m_WOffset = 5.0f;
animator.m_ScaleLabel = true;
animator.m_RepositionLabel = true;
}
for(SUIAnimator &animator : m_aAnimatorsBigPage)
@ -279,6 +279,12 @@ int CMenus::DoButton_MenuTab(const void *pID, const char *pText, int Checked, co
if(pAnimator != NULL)
{
if(pAnimator->m_RepositionLabel)
{
Rect.x += Rect.w - pRect->w + Rect.x - pRect->x;
Rect.y += Rect.h - pRect->h + Rect.y - pRect->y;
}
if(!pAnimator->m_ScaleLabel)
{
Rect.w = pRect->w;

View file

@ -101,6 +101,7 @@ struct SUIAnimator
{
bool m_Active;
bool m_ScaleLabel;
bool m_RepositionLabel;
float m_Time;
float m_Value;
@ -109,7 +110,6 @@ struct SUIAnimator
float m_YOffset;
float m_WOffset;
float m_HOffset;
};
class CUI