Skip to content

Conversation

@B-Kirill
Copy link
Contributor

This PR adds BUI helper overloads with support for passing constructor parameters. It also makes a few stylistic changes.

Now there is a problem that the old method of creating a window (example: _window = new IdCardConsoleWindow(this, _prototypeManager, accessLevels)) supports passing constructor parameters, but helpers do not. It's very inconvenient.. so this PR fixes it.

As an example, this allows you to pass IDependencyCollection as a parameter to replace IoCManager.InjectDependencies(this) with dependencies.InjectDependencies(this).

All new overloads have been tested on SS14 content and everything is working as intended.

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.

1 participant