Skip to content

Conversation

LeeSpork
Copy link
Contributor

@LeeSpork LeeSpork commented Mar 8, 2025

Adjusted the pixel co-ordinates of the checkbox widgets in the Company Options tab of the Scenario Options window:

  • Decreased their widths so that they do not overlap.
  • Changed the horizontal positions so that they are evenly spaced, and line up with the rest of the elements on this window/tab.

@LeeSpork
Copy link
Contributor Author

LeeSpork commented Mar 8, 2025

Before:
3003 before

After:
3003 after

@AaronVanGeffen
Copy link
Member

Nice catch on the checkbox widths. That seems to be a remnant of the time when they were still just listed underneath each other, as in vanilla.

I think I prefer the checkboxes with the padding on the left, though. The groupbox looks a bit more cluttered without, imo. Could you change the 11 base coord back to 15?

@AaronVanGeffen AaronVanGeffen added this to the v25.02+ milestone Mar 10, 2025
@LeeSpork
Copy link
Contributor Author

LeeSpork commented Mar 10, 2025

Fair suggestion

Total width of window:
366

padding of 15 on both sides:
366 - 15*2 = 336 px space for the three colums of widgets

add 3 px padding between the two columns
(336 - 3 * 2) / 3 = 110 px widget width
-> 113 from left side to left side

Am I overthinking this? Yes.
@LeeSpork
Copy link
Contributor Author

3003 15 110 3 110 3 110 15

@AaronVanGeffen AaronVanGeffen merged commit 536598f into OpenLoco:master Mar 10, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tick box bug in Scenario Option > Competitors tab
2 participants