Bigger kart stat (#4113)
This commit is contained in:
parent
50988c6c60
commit
84d99ac690
@ -157,8 +157,8 @@ void KartStatsWidget::move(int x, int y, int w, int h)
|
||||
{
|
||||
Widget::move(x,y,w,h);
|
||||
setSize(m_x, m_y, m_w, m_h);
|
||||
int margin = m_h / SKILL_COUNT / 2;
|
||||
int offset = m_h / 4;
|
||||
int margin = m_h / SKILL_COUNT * 0.6f;
|
||||
int offset = m_h / 5;
|
||||
for (int i = 0; i < SKILL_COUNT; ++i)
|
||||
{
|
||||
m_skills[i]->move(m_skill_bar_x,
|
||||
@ -196,7 +196,7 @@ void KartStatsWidget::setSize(const int x, const int y, const int w, const int h
|
||||
|
||||
// -- sizes
|
||||
m_skill_bar_w = w - m_w / 16; // make sure the bars can't be out of screen
|
||||
m_skill_bar_h = m_h / SKILL_COUNT / 5;
|
||||
m_skill_bar_h = m_h / SKILL_COUNT / 4;
|
||||
|
||||
m_skill_bar_x = x;
|
||||
} // setSize
|
||||
|
@ -120,8 +120,8 @@ void SkillLevelWidget::setSize(const int x, const int y, const int w, const int
|
||||
m_w = w;
|
||||
m_h = h;
|
||||
|
||||
int iconbox_h = h * 4 / 3;
|
||||
int iconbox_w = h * 4 / 3; //assuming square icon
|
||||
int iconbox_h = h * 5 / 3;
|
||||
int iconbox_w = h * 5 / 3; //assuming square icon
|
||||
|
||||
m_iconbutton_h = iconbox_h;
|
||||
m_iconbutton_w = iconbox_w;
|
||||
|
Loading…
Reference in New Issue
Block a user