Search found 55 matches

by Georgine
Tue Mar 18, 2014 4:47 am
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Re: Change imagebutton images in-game

So that works perfectly, and you are awesome for suggesting it and the rest of your patient advice in this thread. I am finding a weird bug, however- using SetDict the menus work perfectly, but I found that if I toggled between the select screen and the main screen a bunch of times I got a recursion...
by Georgine
Tue Mar 18, 2014 3:56 am
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Re: Change imagebutton images in-game

Hmm, can SetVariable take lists? I have [SetVariable("List_main_interface [Icon_number]", "List_selection_interface[Selected_icon]")] where Selected_icon is the number of the icon the user selected in List_selection_interface, and Icon_number is the icon in List_main_interface th...
by Georgine
Mon Mar 17, 2014 7:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Re: Change imagebutton images in-game

Sorry for not being clear, and you can ignore the inconsistencies- they were all typos on my end, not part of the code. In layman's terms, I have two screens, a main screen and a select screen, both populated with imagebuttons set to various icons. The icons on the main screen each represent an acti...
by Georgine
Mon Mar 17, 2014 4:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Re: Change imagebutton images in-game

Okay, that makes sense- this works, but the method it's feeding is still pretty inefficient- the reason I need to set Icon_number to begin with is that the user changes icons with a second screen- change_icon_screen_label, whose only job is to figure out which of my icons should be changed. Right no...
by Georgine
Mon Mar 17, 2014 5:10 am
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Re: Change imagebutton images in-game

So I'm looking at http://www.renpy.org/doc/html/screens.html#imagebutton , and is there documentation I'm missing which specifies exactly what constitutes an Action in an imagbutton? I'm trying to manipulate the variable I use to track which imagebutton is being interacted with, as in screen schedul...
by Georgine
Sat Mar 15, 2014 3:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Re: Change imagebutton images in-game

You are awesome, this not only works, but does what I've been trying all week to accomplish, thank you!! :)
by Georgine
Sat Mar 15, 2014 8:55 am
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Re: Change imagebutton images in-game

Hmm just tried that, it returned a different error: u'Icon_name' is not a keyword argument or valid child for the imagebutton statement.
by Georgine
Fri Mar 14, 2014 11:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Re: Change imagebutton images in-game

So I almost have this working, what I'm doing now is setting string variables equal to the name of the file I want- I can get it to check what each icon is and check what the user has set new icons to be, but I'm having trouble passing the new data to the screen without a long conditional loop- is t...
by Georgine
Fri Mar 14, 2014 9:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Re: Change imagebutton images in-game

Hmm okay... would this require me to define each button in a separate screen and display them simultaneously, or could I keep my current logic where I set them all up in the one $button_info[]?
by Georgine
Fri Mar 14, 2014 7:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Change imagebutton images in-game
Replies: 24
Views: 4706

Change imagebutton images in-game

This question arose from a prior discussion- essentially, I have code which creates a number of imagebuttons for me and arranges them in a circle as so: screen interface_screen: $import math $center_x = 400 $center_y = 300 $radius = 250 $button_info = [("iconidle.png", "iconhover.png&...
by Georgine
Thu Mar 13, 2014 8:42 am
Forum: Ren'Py Questions and Announcements
Topic: Automatically align imagebuttons around a coordinate?
Replies: 15
Views: 2221

Re: Automatically align imagebuttons around a coordinate?

I'm sorry for the followup question, and I promise this is the last one as everything else actually works, but I think I'm misunderstanding the syntax for changing an imagebutton's images after I've created it, and I can't find an example of this in the cookbook or documentation. Right now, the acti...
by Georgine
Thu Mar 13, 2014 7:26 am
Forum: Ren'Py Questions and Announcements
Topic: Automatically align imagebuttons around a coordinate?
Replies: 15
Views: 2221

Re: Automatically align imagebuttons around a coordinate?

And it works perfectly, thank you! Goes to show what happens when you forget to comment half-written code and then leave it for a few days. XD
by Georgine
Thu Mar 13, 2014 6:13 am
Forum: Ren'Py Questions and Announcements
Topic: Automatically align imagebuttons around a coordinate?
Replies: 15
Views: 2221

Re: Automatically align imagebuttons around a coordinate?

I hope you don't mind a quick follow-up Asceai: I implemented everything we discussed and everything runs fine, but when I adjusted the tuples for five images instead of just idle/hover, I started getting TypeError: 'str' object is not callable whenever I clicked on an imagebutton. I know that usual...
by Georgine
Thu Mar 13, 2014 3:53 am
Forum: Ren'Py Questions and Announcements
Topic: Nested label not executing in right order
Replies: 2
Views: 370

Re: Nested label not executing in right order

And just like that the problem is fixed, and you are quite awesome- thank you!
by Georgine
Thu Mar 13, 2014 3:32 am
Forum: Ren'Py Questions and Announcements
Topic: Nested label not executing in right order
Replies: 2
Views: 370

Nested label not executing in right order

I'm almost certain this has to do with return not working the way I think it does, but here's the setup: I'm allowing the player to select three things to do during the day-their choices are stored in string variables that point to the label associated with each activity, and whenever the player hit...