Skip to content

Add excludeList to FunkinParentDisabler - #1080

Open
THEkatinamicrowave wants to merge 9 commits into
CodenameCrew:mainfrom
THEkatinamicrowave:patch-15
Open

Add excludeList to FunkinParentDisabler#1080
THEkatinamicrowave wants to merge 9 commits into
CodenameCrew:mainfrom
THEkatinamicrowave:patch-15

Conversation

@THEkatinamicrowave

Copy link
Copy Markdown
Contributor

something that should probably be there. Could also make ParentDisableable typedef that just encompasses <FlxTween, FlxCamera, FlxTimer, FlxSound> but I think Dynamic is fine for now. Could break if somebody ever used FunkinParentDisabler's first two constructor args but I think it's ok because I've never seen it used in mods (personally). If it does break too much stuff, can simply move excludeList to the end of the constructor args

something that should probably be there. Could also make ParentCancellable typedef that just encompasses FlxTween FlxCamera FlxTimer and FlxSound but I think Dynamic is fine for now
so that the compiler doesn't have to deal with Array<Dynamic> every time
Comment thread source/funkin/menus/PauseSubState.hx Outdated
var __restoreUponDestroy:Bool;
public function new(replaceUponDestroy:Bool = false, restoreUponDestroy:Bool = true) {

public function new(excludeList:Array<ParentDisableable> = [], replaceUponDestroy:Bool = false, restoreUponDestroy:Bool = true) {

@MRK2009 MRK2009 Sep 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this includes for FunkinParentDisabler too, if I'm not mistaken.(Also sorry for the double notification, I pressed the wrong button.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What includes FunkinParentDisabler? ParentDisableable?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm unsure what use case could rationalize putting FunkinParentDisabler in ParentDisableable, but if you can find one I can probably do that. For the record, ParentDisableable is a wrapper for FlxTween, FlxTimer, FlxCamera, and FlxSound, since I don't want to make the compiler deal with Dynamic.

@THEkatinamicrowave

Copy link
Copy Markdown
Contributor Author

holy I think I finally fixed every error it's actually building

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.

3 participants