So I noticed that in Fate/Stay Night, there is a graphic button to hide the text and the text box, and show the images behind it,
is it possible to do this in renpy, like adding a graphic button to the menu? and if so, how?
Graphic Button
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.
-
Tagumonman55
- Newbie
- Posts: 20
- Joined: Thu Nov 13, 2014 12:56 am
- Projects: Legend Of Quadopolia
- Deviantart: Tagumonman55
- Contact:
- firecat
- Miko-Class Veteran
- Posts: 540
- Joined: Sat Oct 25, 2014 6:20 pm
- Completed: The Unknowns Saga series
- Projects: The Unknown Saga series
- Tumblr: bigattck
- Deviantart: bigattck
- Skype: bigattck firecat
- Soundcloud: bigattck-firecat
- Contact:
Re: Graphic Button
yes, you need to change the size of the text box.
in options find a code that kinda looks like this (this is my code), its tricky at first but you'll get used to it.
Code: Select all
#########################################
## These settings let you customize the window containing the
## dialogue and narration, by replacing it with an image.
## The background of the window. In a Frame, the two numbers
## are the size of the left/right and top/bottom borders,
## respectively.
style.window.background = Frame("textbox.png", 12, 12)
## Margin is space surrounding the window, where the background
## is not drawn.
style.window.left_margin = 0
style.window.right_margin = 0
style.window.top_margin = 0
style.window.bottom_margin = 0
## Padding is space inside the window, where the background is
## drawn.
style.window.left_padding = 120
style.window.right_padding = 120
style.window.top_padding = 50
style.window.bottom_padding = 70
## This is the minimum height of the window, including the margins
## and padding.
style.window.yminimum = 170- SundownKid
- Lemma-Class Veteran
- Posts: 2299
- Joined: Mon Feb 06, 2012 9:50 pm
- Completed: Icebound, Selenon Rising Ep. 1-2
- Projects: Selenon Rising Ep. 3-4
- Organization: Fastermind Games
- Deviantart: sundownkid
- Location: NYC
- Contact:
Re: Graphic Button
Hmm, a quick hack I could think of is to make a textbutton show a screen that is tagged as "menu" therefore replacing the game textbox screen. Then make that screen a button so you can press it to return to the game.
Who is online
Users browsing this forum: Bing [Bot]



