How can specify the window title? I used
loadPrcFileData("", "win-title MyPanda")
but the title remains “Panda” anyway.
How can specify the window title? I used
loadPrcFileData("", "win-title MyPanda")
but the title remains “Panda” anyway.
You have to do the above before you open the window (i.e. before you import DirectStart). After you have opened the window, you can usually change the title with:
wp = WindowProperties()
wp.setTitle('My new title')
base.win.requestProperties(wp)
David
Yes, I did it before importing DirectStart, but without success. The second way (with WindowProperties()) worked well, thank you.
Ah, you’re right. The correct variable name is window-title, not win-title.
David
Then someone who has access to wiki should update the manual. There it is called “win-title”.
You have access to the wiki, too.
David