mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Visual Improvements, Fixed check-style
This commit is contained in:
parent
9b3d9965fb
commit
b6d94a85f3
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue