Search found 26 matches

by Gamma Vector
Sun Jan 21, 2024 10:39 am
Forum: Ren'Py Questions and Announcements
Topic: Screen Language Vbox Children Alignment Problem
Replies: 5
Views: 668

Re: Screen Language Vbox Children Alignment Problem[SOLVED]

EDIT: I tried to edit the topic of my original post to indicate the issue was solved and...Somehow I accidentally replied to the thread instead. Sorry. ^^;
by Gamma Vector
Sun Jan 21, 2024 10:39 am
Forum: Ren'Py Questions and Announcements
Topic: Screen Language Vbox Children Alignment Problem
Replies: 5
Views: 668

Re: Screen Language Vbox Children Alignment Problem

My suggestion: use vbox with box_reverse set To True so it fills from the bottom. Place your button as first element and another vbox, which will contain the rest of the data, second. That second vbox should not have any padding set, so elements would be spaced properly horisontally. THIS WORKS!!! ...
by Gamma Vector
Sun Jan 21, 2024 9:05 am
Forum: Ren'Py Questions and Announcements
Topic: Screen Language Vbox Children Alignment Problem
Replies: 5
Views: 668

Re: Screen Language Vbox Children Alignment Problem

You could try using a side widget, placing the vbox in the center slot, and the button in the bottom slot. Assuming the enclosing frame has a size (or you give the side a size) the vbox contents should stack from the top, with the button appearing at the bottom of the frame . Going off of memory he...
by Gamma Vector
Sat Jan 20, 2024 1:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Screen Language Vbox Children Alignment Problem
Replies: 5
Views: 668

Screen Language Vbox Children Alignment Problem

Trying to make a screen that involves a large frame, and within that several smaller frames, and within each of those a vbox with some stuff in it. All good, all fine, except I need the last item in the vbox to sit at the BOTTOM of the vbox no matter what all is above it, and for all the other items...
by Gamma Vector
Fri Dec 29, 2023 1:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating temporary characters
Replies: 3
Views: 433

Re: Creating temporary characters

Thank you both for the reassurance.
by Gamma Vector
Thu Dec 28, 2023 12:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Creating temporary characters
Replies: 3
Views: 433

Creating temporary characters

So I'm dynamically creating temporary, disposable characters who only need to exist for one scene and then they will never show up again. The scene they appear in is repeatable (and will repeat many, many times over the course of the game) and the characters need to be different every time. They hav...
by Gamma Vector
Sat Jul 09, 2022 5:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Complex logic in menu conditions? Can I use some kind of bracket?
Replies: 2
Views: 255

Re: Complex logic in menu conditions? Can I use some kind of bracket?

Oh, you're a lifesaver. I swear I tried round brackets and the engine threw a fit. I must have typo'd something. Thank you very much for the explanation about how my expression doesn't need the brackets, and the way to simplify it as well. I've never had a talent for math, lol.
by Gamma Vector
Sat Jul 09, 2022 4:44 pm
Forum: Ren'Py Questions and Announcements
Topic: Complex logic in menu conditions? Can I use some kind of bracket?
Replies: 2
Views: 255

Complex logic in menu conditions? Can I use some kind of bracket?

So basically, I'm trying to make a menu option that shows up only if A = True and B = False, OR if A = False and B = True. The way I want to phrase that is something like menu: "Default Option": stuff "Contextual Option" if {a == True and b == False} or {a == False and b == True}...
by Gamma Vector
Fri Oct 21, 2016 9:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't seem to remove an item from a list
Replies: 6
Views: 790

Re: Can't seem to remove an item from a list

I still don't know why exactly it didn't worked before for you, but, well, welcome :D Yes, using dictionary instead of list is implementation detail, so only code inside methods will be affected, usage will be same. But if you have inventory working, probably no need to invent something else. Your ...
by Gamma Vector
Fri Oct 21, 2016 5:40 am
Forum: Ren'Py Questions and Announcements
Topic: Can't seem to remove an item from a list
Replies: 6
Views: 790

Re: Can't seem to remove an item from a list

This code works for me. Amazing code" List copy used because if you iterate over wearing list directly and remove something, then next item is skipped and can potentially get you whole lot of weird bugs. So i used comprehension before, somehow didn't noticed index update at undress method. If ...
by Gamma Vector
Thu Oct 20, 2016 10:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't seem to remove an item from a list
Replies: 6
Views: 790

Re: Can't seem to remove an item from a list

You remove item from list while iterating over it, common bug. Instead of this if self.wearing != []: for item in self.wearing: if item.tag == clothes.tag: self.wearing.remove(item) use list comprehension: self.wearing=[item for item in self.wearing if item.tag!=clothes.tag] I'm sorry, I don't unde...
by Gamma Vector
Thu Oct 20, 2016 9:01 am
Forum: Ren'Py Questions and Announcements
Topic: Can't seem to remove an item from a list
Replies: 6
Views: 790

Can't seem to remove an item from a list

Alright, I'm trying to make it so that the player has clothing items that they can wear. These clothing items each have a "tag" property that basically tells the game which part of their body the player is trying to wear the item on. (Example tags are "shirt", "vest", &...
by Gamma Vector
Thu Oct 20, 2016 5:25 am
Forum: Ren'Py Questions and Announcements
Topic: Need help with custom classes (sort of inventory-ish)
Replies: 2
Views: 445

Re: Need help with custom classes (sort of inventory-ish)

Ocelot wrote:You need to call method to get result:

$ style = player.check_style()
Well, I feel hilariously stupid. Thank you so much for your help!
by Gamma Vector
Thu Oct 20, 2016 3:28 am
Forum: Ren'Py Questions and Announcements
Topic: Need help with custom classes (sort of inventory-ish)
Replies: 2
Views: 445

Need help with custom classes (sort of inventory-ish)

Okay, so what I'm trying to do is create a system where the player can wear different clothing, and NPCs will notice. Some of them have preferences for what the player wears. The way I'm trying to do this is to create clothing objects which have "style characteristics" as a property repres...
by Gamma Vector
Mon Oct 17, 2016 9:35 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Call screen save from inside choice menu issues
Replies: 14
Views: 1375

Re: Calling save screen inside a choice menu gives save issu

I did try something like that, but it didn't work. Oddly enough, your version works in my test game, but doesn't work in my full game. I'm going to go through and redo the changes in my full game so that I know I haven't accidentally done something different than I did with the test game. (I didn't ...