mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Continue fixing positions for right2left layout (hebrew)
This commit is contained in:
parent
94df6a2210
commit
5c7d61fb44
@ -2028,13 +2028,20 @@ CEvent::CreateButtons (Sint32 phase)
|
|||||||
pos.y = table[m_index].buttons[i].y;
|
pos.y = table[m_index].buttons[i].y;
|
||||||
message = table[m_index].buttons[i].message;
|
message = table[m_index].buttons[i].message;
|
||||||
|
|
||||||
if (IsRightReading ())
|
auto isRightReading =
|
||||||
|
((message == EV_PHASE_INIT || message == EV_PHASE_PLAY ||
|
||||||
|
message == EV_SETUP_EXIT) ||
|
||||||
|
(phase != EV_PHASE_SETTINGS && phase != EV_PHASE_SETUP &&
|
||||||
|
phase != EV_PHASE_SETUPp)) &&
|
||||||
|
IsRightReading ();
|
||||||
|
|
||||||
|
if (isRightReading)
|
||||||
pos.x = LXIMAGE () - pos.x - DIMBUTTONX;
|
pos.x = LXIMAGE () - pos.x - DIMBUTTONX;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
phase != EV_PHASE_PLAY && phase != EV_PHASE_BUILD &&
|
phase != EV_PHASE_PLAY && phase != EV_PHASE_BUILD &&
|
||||||
phase != EV_PHASE_INIT)
|
phase != EV_PHASE_INIT)
|
||||||
pos.x = IsRightReading () ? pos.x - LXOFFSET () : pos.x + LXOFFSET ();
|
pos.x = isRightReading ? pos.x - LXOFFSET () : pos.x + LXOFFSET ();
|
||||||
|
|
||||||
if (m_bPrivate)
|
if (m_bPrivate)
|
||||||
{
|
{
|
||||||
@ -2136,6 +2143,8 @@ CEvent::DrawButtons ()
|
|||||||
rect.right = pos.x + 300;
|
rect.right = pos.x + 300;
|
||||||
rect.top = pos.y;
|
rect.top = pos.y;
|
||||||
rect.bottom = pos.y + DIMLITTLEY;
|
rect.bottom = pos.y + DIMLITTLEY;
|
||||||
|
if (IsRightReading ())
|
||||||
|
pos.x = LXIMAGE () - pos.x;
|
||||||
DrawText (m_pPixmap, pos, text, FONTLITTLE);
|
DrawText (m_pPixmap, pos, text, FONTLITTLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2158,6 +2167,8 @@ CEvent::DrawButtons ()
|
|||||||
res, sizeof (res),
|
res, sizeof (res),
|
||||||
gettext ("New version available for download on www.blupi.org (v%s)"),
|
gettext ("New version available for download on www.blupi.org (v%s)"),
|
||||||
this->m_updateVersion.c_str ());
|
this->m_updateVersion.c_str ());
|
||||||
|
if (IsRightReading ())
|
||||||
|
pos.x = LXIMAGE () - pos.x;
|
||||||
DrawText (m_pPixmap, pos, res, FONTLITTLE);
|
DrawText (m_pPixmap, pos, res, FONTLITTLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user