I'm trying to add some image buttons to my say window and NVL window, like "skip", "load", "save", "settings" like the picture shows below.
I have tried many scripts before, like this: http://lemmasoft.renai.us/forums/viewto ... ext+window
But problem is, these button appears as soon as the game starts. That is to say, I just want to show these buttons with the appearance of my say window and NVL window, and can disappear as soon as my say window disappears.
So, how can it be possible?
Thanks for help!
Custom Say Window
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- PyTom
- Ren'Py Creator
- Posts: 16093
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Custom Say Window
Your best bet nowadays is to use screens to customize the say and nvl windows, and then add the buttons as part of the screen.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Regular
- Posts: 26
- Joined: Sun Dec 12, 2010 2:55 pm
- Projects: Sonata Twilight
- Location: China
- Contact:
Re: Custom Say Window
I'm sorry, but would you please give me more hint? I have no idea about that....PyTom wrote:Your best bet nowadays is to use screens to customize the say and nvl windows, and then add the buttons as part of the screen.
For example, what will be the label name of my code?
"God's his heaven, all's right with the world."
- SleepKirby
- Veteran
- Posts: 255
- Joined: Mon Aug 09, 2010 10:02 pm
- Projects: Eastern Starlight Romance, Touhou Mecha
- Organization: Dai-Sukima Dan
- Location: California, USA
- Contact:
Re: Custom Say Window
It's something like this code from backansi's post:
The say screen is the screen that defines the say window. You can define your own say screen, like this, and you can add your buttons to the say screen. This way, the buttons and the say window will always show/hide at the same time.
You can do something similar with the nvl screen. Unfortunately, the documentation on the nvl screen doesn't have an example for making a nvl screen with screen language. I don't have experience with NVL, but I think you just need to change the window properties to put the window on a different part of the screen, and then everything else should be very similar (unless I'm missing something).
Code: Select all
init:
screen say:
window id "window":
has vbox
if who:
text who id "who"
text what id "what"
imagebutton 'status.png' action Jump('status')
imagebutton 'save.png' action ShowMenu('save')
# .....
You can do something similar with the nvl screen. Unfortunately, the documentation on the nvl screen doesn't have an example for making a nvl screen with screen language. I don't have experience with NVL, but I think you just need to change the window properties to put the window on a different part of the screen, and then everything else should be very similar (unless I'm missing something).
-
- Regular
- Posts: 26
- Joined: Sun Dec 12, 2010 2:55 pm
- Projects: Sonata Twilight
- Location: China
- Contact:
Re: Custom Say Window
In truth, I have managed to refine my say screen, but the problem is... as you mentioned above, I can hardly get anything about NVL destination. After tons of failures that I tried to make a new definition of NVL mode in screen language, I found out it was not as easy as say... Or I do not know how to do that...SleepKirby wrote:It's something like this code from backansi's post:The say screen is the screen that defines the say window. You can define your own say screen, like this, and you can add your buttons to the say screen. This way, the buttons and the say window will always show/hide at the same time.Code: Select all
init: screen say: window id "window": has vbox if who: text who id "who" text what id "what" imagebutton 'status.png' action Jump('status') imagebutton 'save.png' action ShowMenu('save') # .....
You can do something similar with the nvl screen. Unfortunately, the documentation on the nvl screen doesn't have an example for making a nvl screen with screen language. I don't have experience with NVL, but I think you just need to change the window properties to put the window on a different part of the screen, and then everything else should be very similar (unless I'm missing something).
But thanks very much!
"God's his heaven, all's right with the world."
Who is online
Users browsing this forum: Ahrefs [Bot], Draida