Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to the CHILD control #1831

Merged
merged 3 commits into from
Jun 9, 2024

Conversation

wixoaGit
Copy link
Member

@wixoaGit wixoaGit commented Jun 8, 2024

Our CHILD control now uses a custom Splitter control rather than the SplitContainer provided by RT. This simplifies a lot of the code in ControlChild and allows us to more closely emulate BYOND appearance and behavior.

It now also has a color and border to more clearly separate panes.

Before:
image

After:
image

I also made the top/bottom attributes alias to left/right as they do in BYOND. This fixes the top-left Text and Info buttons on Paradise.

@boring-cyborg boring-cyborg bot added the Client Involves the OpenDream client label Jun 8, 2024
@github-actions github-actions bot added the size/L label Jun 8, 2024
private Control? _leftElement, _rightElement;

public ControlChild(ControlDescriptor controlDescriptor, ControlWindow window) : base(controlDescriptor, window) { }
private Splitter _splitter;

Check warning

Code scanning / InspectCode

Non-nullable member is uninitialized. Warning

Non-nullable field '_splitter' is uninitialized. Consider declaring the field as nullable.
@wixoaGit wixoaGit merged commit c0c190d into OpenDreamProject:master Jun 9, 2024
9 checks passed
@wixoaGit wixoaGit deleted the better_child_control branch June 9, 2024 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client Involves the OpenDream client size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant