Page 1 of 1
Graphic Button
Posted: Tue Sep 15, 2015 9:05 pm
by Tagumonman55
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?
Re: Graphic Button
Posted: Tue Sep 15, 2015 9:18 pm
by firecat
yes, you need to change the size of the text box.
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
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.
Re: Graphic Button
Posted: Tue Sep 15, 2015 9:46 pm
by SundownKid
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.