Change Window Title in-game with SRD.GameUpgrade?

Status
Not open for further replies.

VTDraws

Filthy Point-&-Click casual
Veteran
Joined
Apr 17, 2017
Messages
56
Reaction score
9
First Language
English
Primarily Uses
RMMV
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:
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
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.
 

VTDraws

Filthy Point-&-Click casual
Veteran
Joined
Apr 17, 2017
Messages
56
Reaction score
9
First Language
English
Primarily Uses
RMMV
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.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,502
Reaction score
3,184
First Language
Binary
Primarily Uses
RMMZ
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.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
In that case document.title = should work. Tested it on MV 1.6.2
 

VTDraws

Filthy Point-&-Click casual
Veteran
Joined
Apr 17, 2017
Messages
56
Reaction score
9
First Language
English
Primarily Uses
RMMV
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.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,502
Reaction score
3,184
First Language
Binary
Primarily Uses
RMMZ
changing document.title is how the game engine sets the game title normally. shouldnt have any issue. :)
 

VTDraws

Filthy Point-&-Click casual
Veteran
Joined
Apr 17, 2017
Messages
56
Reaction score
9
First Language
English
Primarily Uses
RMMV
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.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,605
Reaction score
5,071
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Star citizen just announced they will develop a roadmap for their planned roadmap...
And i thought i needed order on my project... :kaoswt2:
Big City Greens had it right:
"Always back up your brain game, that's what I like to say!"
I think I've created a monster.
...and I love it. <3
Today represents my one year anniversary of throwing out the tile map. :LZSexcite: One year ago my game looked like...


And now for those that don't know, it looks like..


What a year, what a year indeed. RIP Tile Map, nobody misses you. :LZSwink:
There is now a demo released for [Beyond the Mirror]! Check the team recruitment thread to learn more!

Forum statistics

Threads
105,701
Messages
1,015,728
Members
137,384
Latest member
nobodyreally
Top