More imagebutton woes [SOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
squark
Veteran
Posts: 277
Joined: Fri Aug 17, 2007 9:59 am
Completed: Tour de Pharmacy (Proofreader), The Abandoned Land: Book One (Proofreader)
Projects: Raven Hollow (Core Coder, Proofreader), The Universal Hope (Core Coder, Proofreader)
Organization: FlareBlue Entertainment
Location: Always somewhere behind you...
Contact:

More imagebutton woes [SOLVED]

#1 Post by squark »

So I'd like to set up the title menu to have imagebuttons instead of textbuttons. The code has probably changed in the last while, but I've tried these:

Code: Select all

imagebutton auto "Images/gui/start.png"

Code: Select all

imagebutton idle "Images/gui/start.png"
I keep getting some sort of error about "Not a displayable: None" and yes, those folder exist and it is the correct structure and file names.
I can't access my traceback from my current location, but will post it later today.
Last edited by squark on Tue Mar 10, 2015 8:09 pm, edited 1 time in total.
Without communication, nothing is possible.
"All we see or seem
Is but a dream within a dream.

I stand amid the roar
Of a surf-tormented shore"
-- Edgar Allen Poe, "A Dream Within A Dream"
Current Projects:
Universal Hope Stalled
Raven Hollow (on hold for now)
Peace and Love,
Squark

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: More imagebutton woes

#2 Post by korova »

you need at least a "hover" version of the button

Code: Select all

imagebutton:
    idle "Images/gui/start_idle.png"
    hover "Images/gui/start_hover.png"
or

Code: Select all

imagebutton auto "Images/gui/start_%s.png"
with a start_idle.png and a start_hover.png images in your folder.

The error message comes from the fact that the programm is looking for a "hover" displayable, and you didn't give it one.

squark
Veteran
Posts: 277
Joined: Fri Aug 17, 2007 9:59 am
Completed: Tour de Pharmacy (Proofreader), The Abandoned Land: Book One (Proofreader)
Projects: Raven Hollow (Core Coder, Proofreader), The Universal Hope (Core Coder, Proofreader)
Organization: FlareBlue Entertainment
Location: Always somewhere behind you...
Contact:

Re: More imagebutton woes

#3 Post by squark »

Okay, thanks ^^ *makes a note*
Without communication, nothing is possible.
"All we see or seem
Is but a dream within a dream.

I stand amid the roar
Of a surf-tormented shore"
-- Edgar Allen Poe, "A Dream Within A Dream"
Current Projects:
Universal Hope Stalled
Raven Hollow (on hold for now)
Peace and Love,
Squark

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]