Search found 10 matches

by eath
Thu Jul 23, 2020 10:13 am
Forum: Ren'Py Questions and Announcements
Topic: Why won't my button hide?
Replies: 1
Views: 241

Why won't my button hide?

I'm at a loss after trying to build this for several days. Experts, please point out my error? screen inv_grid: hbox: xalign .5 # center generally # tried grid and vpgrid # vpgrid: # cols num_columns for i in range(4): # or whatever hbox: python: tag = "slot_{}".format(i) if not renpy.get_...
by eath
Tue Jul 21, 2020 3:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Dropdown menu code?
Replies: 3
Views: 388

Re: Dropdown menu code?

You can make a simple dropdown menu like this. default closed=True screen drop(): vbox: frame: if closed: textbutton "Menu" action SetVariable("closed", False) elif closed==False: textbutton "Menu" action SetVariable("closed", True) if closed==False: frame: v...
by eath
Tue Jul 21, 2020 12:20 pm
Forum: Ren'Py Questions and Announcements
Topic: Possible to name screen with variable?
Replies: 6
Views: 439

Re: Possible to name screen with variable?

Just use the use and transclude method in screens. Its well documented in the screen language docs. It lets you recycle screens like what you're trying to do considering that item01 and item02 are pretty much the same but only differs in the contents such as item name etc. AH! It's useful to find o...
by eath
Tue Jul 21, 2020 12:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Possible to name screen with variable?
Replies: 6
Views: 439

Re: Possible to name screen with variable?

Alex wrote: Thu Jul 16, 2020 1:38 pm Kind of sample - viewtopic.php?f=8&t=57095#p520418
This is super cool and interesting! I'll definitely use this for parts of my game. Thanks!
by eath
Tue Jul 21, 2020 9:46 am
Forum: Ren'Py Questions and Announcements
Topic: Dropdown menu code?
Replies: 3
Views: 388

Dropdown menu code?

Has anyone written a collapsible dropdown menu system you wouldn't mind sharing? For example: Edit > Text > Font > Size > 12 I've only found two snippets of possible dropdown code and they're not working correctly (even after messing with them). https://lemmasoft.renai.us/forums/viewtopic.php?t=2688...
by eath
Thu Jul 16, 2020 8:52 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Toggle checkbox imagebutton?
Replies: 4
Views: 396

Re: Toggle checkbox imagebutton?

Thanks, all! That works great!
by eath
Thu Jul 16, 2020 8:51 am
Forum: Ren'Py Questions and Announcements
Topic: Possible to name screen with variable?
Replies: 6
Views: 439

Possible to name screen with variable?

Is there a way to loop through a list and define screens like screen item01, screen item02, screen item03...?
by eath
Wed Jul 15, 2020 8:48 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Toggle checkbox imagebutton?
Replies: 4
Views: 396

Re: Toggle checkbox imagebutton?

Well, this seems to do what I want it to do... but I am still willing to learn a better way of doing things! default buttonvalue = False screen alternatebuttonswitch(): modal True imagebutton: focus_mask True if buttonvalue == True: idle "on.png" else: idle "off.png" action [Togg...
by eath
Wed Jul 15, 2020 7:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Simple imagebutton that changes a variable then disappears?
Replies: 4
Views: 458

Re: Simple imagebutton that changes a variable then disappears?

show tutorialshovel

should be

show screen tutorialshovel

Sorry I can't help with the rest. Maybe "modal True" in the screen definition would help.
by eath
Wed Jul 15, 2020 11:32 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Toggle checkbox imagebutton?
Replies: 4
Views: 396

[SOLVED]Toggle checkbox imagebutton?

This should be a very simple thing, but I'm brand new to Ren'py and can't find it… Here's what I want to do in pseudocode: show current imagebutton state (on or off) imagebutton: if x==True: imagebutton's image = "on.jpg" if x==False: imagebutton's image = "off.jpg" onclick: togg...