How to resize window #452
-
The CNE window is too damn small |
Beta Was this translation helpful? Give feedback.
Answered by
PetscopF
Nov 24, 2024
Replies: 1 comment 4 replies
-
use FlxG.resizeGame |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My best guess would be to do it something like this:
Since this script likely won't be in an addons folder, I did not include a mod folder name check, but you may use one if you're putting this in an addon (just import
funkin.backend.assets.ModsFolder
and include an if statement for whether or notModsFolder.currentModFolder
is equivalent to your mod's name). Here, thepreStateSwitch
callback is used, as I don't know if there is a callback for loading mods specifically and in case the player might've resized the window o…