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,640
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,517
Reaction score
3,221
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,640
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,517
Reaction score
3,221
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,635
Reaction score
5,116
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 Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,454
Members
137,821
Latest member
Capterson
Top