mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 12:21:39 +00:00
Replicate the same scaling applied to the rectangle in world map.
This commit is contained in:
parent
bd0ec78cf5
commit
f1a46c9890
1 changed files with 8 additions and 1 deletions
|
|
@ -190,8 +190,15 @@ static void DrawTitle()
|
|||
|
||||
if (isRectVisible)
|
||||
{
|
||||
float rectScale = 1.0f;
|
||||
if (rectBlinkMotion == 0.0)
|
||||
{
|
||||
constexpr float RECT_SCALES[] = { 1.2f, 1.1f, 1.1f, 1.0f, 1.15f, 0.4f, 1.2f, 1.1f, 1.05f, 1.0f, 1.5f, 1.2f, 1.0f };
|
||||
rectScale = RECT_SCALES[uint32_t(round(rectX / rectSize)) % std::size(RECT_SCALES)];
|
||||
}
|
||||
|
||||
ImVec2 rectMin = { optionsMin.x + rectX, optionsMin.y + rectY };
|
||||
ImVec2 rectMax = { optionsMin.x + rectX + rectSize, optionsMin.y + rectY + rectSize };
|
||||
ImVec2 rectMax = { optionsMin.x + rectX + rectSize * rectScale, optionsMin.y + rectY + rectSize };
|
||||
|
||||
auto rectOutlineMargin = Scale(2.5f);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue