Skip to content

Added way to add creation code in rooms and instances#1901

Merged
colinator27 merged 4 commits intoUnderminersTeam:masterfrom
luizzeroxis:add-creation-code
Feb 9, 2025
Merged

Added way to add creation code in rooms and instances#1901
colinator27 merged 4 commits intoUnderminersTeam:masterfrom
luizzeroxis:add-creation-code

Conversation

@luizzeroxis
Copy link
Copy Markdown
Contributor

@luizzeroxis luizzeroxis commented Sep 4, 2024

Description

Made so the little + icon on creation code in rooms and instances can actually create the script instead of giving an error. Fixes #1900. Based on code from #1412.

Caveats

I tried to make it in a way that it could be expanded with other stuff. Maybe you could create derived classes from UndertaleObjectReference instead, so it doesn't clutter it up with a bunch of properties. Also the part that actually creates the code should probably be in the room model, and the part that creates arguments be separated and merged with the one that does that for object events already.

Notes

None

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 4, 2024

@luizzeroxis luizzeroxis marked this pull request as ready for review September 4, 2024 13:23
@luizzeroxis
Copy link
Copy Markdown
Contributor Author

Note that this will need to be changed if #1937 is merged

@colinator27
Copy link
Copy Markdown
Member

Made some changes to ensure duplicate code entries aren't accidentally created, and also added a null check for code locals while I was at it. Will be merging this as long as the builds all work, but I just tested this locally and everything was fine.

@colinator27 colinator27 merged commit 41cac2c into UnderminersTeam:master Feb 9, 2025
5 checks passed
@luizzeroxis luizzeroxis deleted the add-creation-code branch March 19, 2025 21:52
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.

Doesnt allow to add creation codes

3 participants