Search found 1853 matches
- Wed Sep 01, 2021 5:48 am
- Forum: Ren'Py Questions and Announcements
- Topic: Resizing Frame Image based on String Length
- Replies: 6
- Views: 531
Re: Resizing Frame Image based on String Length
There isn't really a reason to use that specific code since it seems to force you to create the displayable manually, which is what's tripping you up. I would suggest using new style tooltips (https://www.renpy.org/doc/html/screen_actions.html#tooltips) and renpy.get_mouse_pos() if you need the tool...
- Fri Aug 27, 2021 2:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I set the ypos of a textbox as equal to ypos of an imagebutton?
- Replies: 9
- Views: 1493
Re: Can I set the ypos of a textbox as equal to ypos of an imagebutton?
This is a late necro, but I was looking through my old posts looking for something and came across this. I'd forgotten about renpy.focus_coordinates() like an idiot, but here's an update if you want to switch away from the grid. screen test(): vbox: xpos 300 ypos 300 textbutton "test1": action NullA...
- Fri Aug 27, 2021 1:30 am
- Forum: Ren'Py Questions and Announcements
- Topic: Automate text box sizes?
- Replies: 4
- Views: 622
Re: Automate text box sizes?
If you set yminimum instead of ysize, the box will grow to fit if necessary. But you'll probably need to check your images and positioning to see if those will work with a resized box.
- Wed Jul 21, 2021 2:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I set the ypos of a textbox as equal to ypos of an imagebutton?
- Replies: 9
- Views: 1493
Re: Can I set the ypos of a textbox as equal to ypos of an imagebutton?
You could fiddle with zorder and such to make it work, I imagine, but perhaps someone else will have a better idea.
- Wed Jul 21, 2021 1:14 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I set the ypos of a textbox as equal to ypos of an imagebutton?
- Replies: 9
- Views: 1493
Re: Can I set the ypos of a textbox as equal to ypos of an imagebutton?
I can't think of a very good way to do this off the top of my head, but a quick workaround that comes to mind is using an hbox with a null image. hbox: $ tt = GetTooltip() if tt: # add the actual tooltip here else: null width 200 # 200 is a placeholder - the width should be the width of the tooltip ...
- Tue Jul 20, 2021 5:47 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to make insensitive buttons have insensitive sound on click?
- Replies: 2
- Views: 611
Re: How to make insensitive buttons have insensitive sound on click?
Another option would be to simply use an If() or plain if conditions to have two different buttons or actions instead of utilizing the insensitive state.
- Tue Jul 06, 2021 8:15 am
- Forum: Ren'Py Questions and Announcements
- Topic: Side images that stay on screen?
- Replies: 4
- Views: 1252
Re: Side images that stay on screen?
I don't think you can have more than one side image showing anyway since for side images the TAG itself is side, which means any side image would replace any other side image. Since you said you would define who's in the scene anyway, I don't see why you couldn't just do a round of show statements a...
- Mon Jul 05, 2021 9:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Only one of two variables is updated in UDD
- Replies: 7
- Views: 965
Re: Only one of two variables is updated in UDD
If you're using watch xy_pos, then it's just not getting updated. I don't know what you're trying to DO with that xy_pos so I can't offer real advice, but you'll see it being updated in watch if you throw a renpy.restart_interaction() in there. If you're using the watcher in the developer tools, tha...
- Mon Jun 28, 2021 7:38 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Can you change attributes in a duplicated class object independently?
- Replies: 2
- Views: 636
Re: Can you change attributes in a duplicated class object independently?
You need to either 1. create a new instance each time the debuff is applied (i.e., member.dot.append(DoT(args)) ) or 2. if you have something like poison = DoT(args) and you're doing member.dot.append(poison) , you need to deep copy that predefined instance. Googling deep copy python will turn up a ...
- Thu Jun 24, 2021 9:02 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Logic statements in Screens
- Replies: 5
- Views: 679
Re: Logic statements in Screens
Code: Select all
for i in range(wood):
# doing stuffCode: Select all
while counter < wood:
# doing stuff
counter += 1- Thu Jun 24, 2021 7:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Logic statements in Screens
- Replies: 5
- Views: 679
Re: Logic statements in Screens
You can use a for loop in screens (but not while). It should be add, not show also.
- Wed Jun 16, 2021 3:59 am
- Forum: Ren'Py Questions and Announcements
- Topic: Convert Twine 2 interactive story into Ren'py
- Replies: 6
- Views: 909
Re: Convert Twine 2 interactive story into Ren'py
Twee is the annotation system. Tweego is a program that can convert between twine (html file that can be opened in the Twine program) and twee both ways. Do whatever feels more comfortable for you, but my point is that since twee uses simple text notation it would be easier for you to convert that t...
- Tue Jun 15, 2021 11:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Convert Twine 2 interactive story into Ren'py
- Replies: 6
- Views: 909
Re: Convert Twine 2 interactive story into Ren'py
I'm not aware of any auto convert solutions but you can convert to twee (http://www.motoslave.net/tweego/ ) and working from there shouldn't involve all that much extra work.
- Sun Jun 13, 2021 12:13 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Disabled buttons still enabled
- Replies: 1
- Views: 431
Re: Disabled buttons still enabled
Wouldn't it be simpler to use config.menu_include_disabled ? https://www.renpy.org/dev-doc/html/conf ... isabledYou
- Thu Jun 10, 2021 12:27 am
- Forum: Ren'Py Questions and Announcements
- Topic: Automatically darkening characters that aren't speaking, layered image version
- Replies: 10
- Views: 1175
Re: Automatically darkening characters that aren't speaking, layered image version
Caveat that I don't really use layered images, but I'm pretty sure you can also add normal attributes other than speaking_attribute as needed. Quick search shows a couple hits here that use speaking_attribute with layered images. ETA: Eh, my bad. Grabbed a layeredimage example to take a look, seems ...