Hello there guys.
I'm in quite a pickle.These days I've been searching for a way to replace my project's main menu textbox buttons with my own handmade PNG ones. The thing is... I'm not sure how to do this replacement. Maybe someone can give me some hints about this, or a solution.
Thanks in advance!
[SOLVED]PNG buttons instead of textbox 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.
[SOLVED]PNG buttons instead of textbox button
Last edited by Udar on Sat Mar 17, 2018 10:09 am, edited 1 time in total.
-
- Miko-Class Veteran
- Posts: 793
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
- Contact:
Re: PNG buttons instead of textbox button
you would have to use imagebuttons instead of textbuttons
only an example:
only an example:
Code: Select all
imagebutton idle im.Scale("gui/button/button_config.png", 129, 25) xpos 1100 ypos 550 hover im.Scale("gui/button/button_config(1).png", 129, 25) action ShowMenu('preferences')
imagebutton idle im.Scale("gui/button/button_logs.png", 129, 25) xpos 973 ypos 579 hover im.Scale("gui/button/button_load(4).png", 129, 25) action ShowMenu('history')
imagebutton idle im.Scale("gui/button/button_save(3).png", 129, 25) xpos 848 ypos 604 hover im.Scale("gui/button/button_save(4).png", 129, 25) action ShowMenu('save')
imagebutton idle im.Scale("gui/button/button_load(3).png", 127, 25) xpos 723 ypos 629 hover im.Scale("gui/button/button_load(5).png", 127, 25) action ShowMenu("load")
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3792
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: PNG buttons instead of textbox button
Just so its a bit clearer (you should really look at the documentation for imagebuttons to learn how to position them and their various functions / attributes), here is the _minimum_ you would need for an imagebutton.
imagebutton auto "my_image_%s.png" action ShowMenu('save')
In addition you would require two images, located in the images folder - my_image_idle.png and my_image_hover.png
imagebutton auto "my_image_%s.png" action ShowMenu('save')
In addition you would require two images, located in the images folder - my_image_idle.png and my_image_hover.png
Last edited by Imperf3kt on Fri Mar 16, 2018 10:10 pm, edited 1 time in total.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- Taleweaver
- Writing Maniac
- Posts: 3428
- Joined: Tue Nov 11, 2003 8:51 am
- Completed: Metropolitan Blues, The Loyal Kinsman, Daemonophilia, The Dreaming, The Thirteenth Year, Adrift, Bionic Heart 2, Secrets of the Wolf, The Photographer
- Projects: The Pilgrim's Path, Elspeth's Garden, Secret Adventure Game!
- Organization: Tall Tales Productions
- Location: Germany
- Contact:
Re: PNG buttons instead of textbox button
Moved to Ren'Py questions.
Scriptwriter and producer of Metropolitan Blues
Creator of The Loyal Kinsman
Scriptwriter and director of DaemonophiliaScriptwriter and director of The Dreaming
Scriptwriter of Zenith ChroniclesScriptwriter and director of The Thirteenth Year
Scriptwriter and director of Romance is DeadScriptwriter and producer of Adrift
More about me in my blog"Adrift - Like Ever17, but without the Deus Ex Machina" - HigurashiKira
Re: PNG buttons instead of textbox button
Thx guys,thx a lot
Who is online
Users browsing this forum: apocolocyntose