Skip to content

feat: Making some scripts crossplatforms#2125

Merged
colinator27 merged 23 commits intoUnderminersTeam:masterfrom
Eliandro4:cross_scripts
May 31, 2025
Merged

feat: Making some scripts crossplatforms#2125
colinator27 merged 23 commits intoUnderminersTeam:masterfrom
Eliandro4:cross_scripts

Conversation

@Eliandro4
Copy link
Copy Markdown
Contributor

@Eliandro4 Eliandro4 commented May 17, 2025

Makes some scripts crossplatfrom

NewTextureRepacker, ExportAllStringsBetter, ImportAllStringsBetter, ImportASound and FindNullsInOffsetMap by removing WinForms use.

ImportMask and ImportFontData by using ImageMagick instead of System.Drawing.

UndertaleDialogSimulator, FindObjectsinRoom, CopySound, GameOjectCopy, GameOjectCopyInternal, ImportSoundsBulk, SpriteOriginCopy, ExportSpritesAsGIF and ImportGraphics_Full_Repack by removing unecessary "using windows_only_api" statements.

NOTE
I also added a method to the IScriptInterface to save files. Called "PromptSaveFile"

@github-actions
Copy link
Copy Markdown

github-actions bot commented May 30, 2025

Copy link
Copy Markdown
Member

@colinator27 colinator27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this looks really good! I just have a few questions and small things that will need corrections before being merged. Once those are done, I'll also make some formatting changes of my own, for consistency with the rest of the codebase. Thanks!

Eliandro4 added 3 commits May 30, 2025 22:29
Removing uncessary things, and a silly gaffe
UndertaleModTests couldn't be built because it hadn't implemented PromptSaveFile
@Eliandro4 Eliandro4 requested a review from colinator27 May 31, 2025 02:21
Copy link
Copy Markdown
Member

@colinator27 colinator27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got a little bit carried away with fixing up the sound/mask scripts while I was fixing some formatting there, but I think everything is good now!

@colinator27 colinator27 merged commit 37fabab into UnderminersTeam:master May 31, 2025
5 checks passed
@Eliandro4 Eliandro4 deleted the cross_scripts branch June 1, 2025 00:54
@Eliandro4 Eliandro4 restored the cross_scripts branch June 1, 2025 00:54
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.

2 participants