Change Window Title in-game with SRD.GameUpgrade?

So with Some Random Dude's GameUpgrade plugin, you can change quite a few weird traits about your game, including what the title bar of your game window says, kinda like Minecraft.
I was wondering if there was a way to use a script call to change this mid-game? That way I could mess with players a bit if they're paying close attention to their surroundings. >🙂

Thanks in advance!
Here's the script in question:
Absolutely there is a way to change the window's title name even without SRD's game upgrade plugin.

nw.Window.get().title = whatever

But I don't see why would you want to do it. There are people who play on fullscreen.
Absolutely there is a way to change the window's title name even without SRD's game upgrade plugin.

nw.Window.get().title = whatever

But I don't see why would you want to do it. There are people who play on fullscreen.

I tried that as a script command but it doesn't seem to have worked ^^;; Tried it with the string in quotes, too. Am I missing something?

As for why I'd want to do it- I'm not releasing this game to the public or anything. Just a point and click game I'm making for my girlfriend~ She doesn't play on fullscreen and I like to mess with her.
Doesnt nwjs just use the regular page title as the application title?


If it does, doing something like
Code:
document.title = "awesome title.";
should work.
edit:
1593088160881.png


yup.
In that case document.title = should work. Tested it on MV 1.6.2
Doesnt nwjs just use the regular page title as the application title?


If it does, doing something like
Code:
document.title = "awesome title.";
should work.
edit:
View attachment 148939

yup.

It works great, awesome!
Thiiiis won't mess with any other features of the game though, right? It's an odd thing to change, I don't want to accidentally run into weird errors if changing document.title will mess with things.
changing document.title is how the game engine sets the game title normally. shouldnt have any issue. 🙂
changing document.title is how the game engine sets the game title normally. shouldnt have any issue. 🙂
Awesome! I'll consider this solved then, and I'll open a new thread with a link to this one if something comes up.
Thread closed s

Original thread: https://forums.rpgmakerweb.com/threads/change-window-title-in-game-with-srd-gameupgrade.123283/