Search found 391 matches

by _ticlock_
Wed Oct 19, 2022 12:58 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Spacing problem in a hbox
Replies: 2
Views: 141

Re: Spacing problem in a hbox

How can I force the hbox to use the spacing I specified? I believe the spacing is ignored because the hbox width is already specified. I'm not sure if there is a property that can solve it, however, you can add empty fixed element with xfill True to achieve the desired design: hbox : ypos 0 ysize 2...
by _ticlock_
Tue Oct 18, 2022 5:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Completely changing the UI mid-game?
Replies: 6
Views: 220

Re: Completely changing the UI mid-game?

Actually, for the 2nd scenario (If you want to change UI after the player first time reaches part2, i.e. for all playthroughs), it is easier to put ConditionSwith in the styles: default persistent.part1 = True You can leave the game_menu without changes and put only ConditionSwith in the styles: Sty...
by _ticlock_
Tue Oct 18, 2022 4:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Completely changing the UI mid-game?
Replies: 6
Views: 220

Re: Completely changing the UI mid-game?

Thanks. :) That worked. I assume I'd use something similar for things like the scrollbars, main menu, etc? To make sure I get it right, how would this be defined? Tried to use define persistent.part1 = False in the game's script, but I think it just defaulted to the 2nd image. :| Tried clearing per...
by _ticlock_
Tue Oct 18, 2022 12:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Completely changing the UI mid-game?
Replies: 6
Views: 220

Re: Completely changing the UI mid-game?

When I place the code for the screens, it gives me an error: You need to put styles after screen game_menu. Lines style game_menu_outer_frame: bottom_padding 45 top_padding 180 background "gui/overlay/game_menu.png" should already exist. Just go a bit down from screen game_menu, you will see it. So...
by _ticlock_
Tue Oct 18, 2022 12:47 am
Forum: Ren'Py Questions and Announcements
Topic: Move the position of playback button on history screen
Replies: 6
Views: 197

Re: Move the position of playback button on history screen

I don't know how to place position of the image button right, left, and upper side based on the name position. I'm too novice. :wink: One last request. Please lead me just one more time. Not to discourage, but I strongly recommend to read Renpy documentation. If it is too much, just read the topics...
by _ticlock_
Mon Oct 17, 2022 11:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Completely changing the UI mid-game?
Replies: 6
Views: 220

Re: Completely changing the UI mid-game?

Hello! I'm currently working on a game using version 8.0.3 and was wondering if there was any way to change the UI completely once a certain point is reached in the middle of the game. I have 2 sets of images, one in the regular UI images and the other is for when the player reaches a certain point...
by _ticlock_
Mon Oct 17, 2022 12:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Move the position of playback button on history screen
Replies: 6
Views: 197

Re: Move the position of playback button on history screen

I think the button next to the name is too close, so I want to adjust the spacing with the name, is there any command to add? You can use null screen to add spacing hbox: if line[0] and line[0] != " ": label line[0] # name null width 10 if line[2]: # voice button in line with name right after name ...
by _ticlock_
Mon Oct 17, 2022 10:10 am
Forum: Ren'Py Questions and Announcements
Topic: Move the position of playback button on history screen
Replies: 6
Views: 197

Re: Move the position of playback button on history screen

vbox: null height 10 for line in lines_to_show: hbox: if line[0] and line[0] != " ": label line[0] # name if line[2]: # voice button in line with name right after name (if there's a name) imagebutton: idle "grp/parts/voice_replay_idle.png" hover "grp/parts/voice_replay_hover.png" selected "grp/part...
by _ticlock_
Mon Oct 17, 2022 1:01 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Expanding an object in an hbox without moving other items
Replies: 2
Views: 208

Re: Expanding an object in an hbox without moving other items

However, when the zoom increases, it pushes the other buttons away to preserve the spacing. Is there a way to prevent this from happening? 1) If the buttons don’t need to be overlapped when zooming to max zoom value you can simply put the buttons inside fixed and specify appropriate xsize for the f...
by _ticlock_
Fri Oct 14, 2022 10:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] If statement in menu??
Replies: 4
Views: 252

Re: If statement in menu??

What I want to do is change the sentence the character says below when the menu options again appear after "jump". However, I couldn't do it. if statements does not work this way in the choice menu . I suggest to put if statement before the choice menu and then use extend expression in the choice m...
by _ticlock_
Thu Oct 13, 2022 6:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Varying layered images with variables and conditionals
Replies: 2
Views: 190

Re: Varying layered images with variables and conditionals

if statements do not work inside group or attribute There are two things you can do in your example: 1) Use a variable and substitution: default var = "formal" layeredimage character: group clothes: attribute work: "character_clothes_work" attribute leisure: "character_clothes_[var]" group face aut...
by _ticlock_
Tue Oct 11, 2022 9:50 pm
Forum: Ren'Py Questions and Announcements
Topic: How to implement a gore filter?
Replies: 1
Views: 245

Re: How to implement a gore filter?

Check this: https://patreon.renpy.org/custom-preferences.html Example default persistent.gore_enable = True label start: #Adding gore filter option to show up at the beginning menu: "Gore?" "Yes": $ persistent.gore_enable = True "No": $ persistent.gore_enable = False #screens.rpy screen preferences(...
by _ticlock_
Mon Oct 10, 2022 12:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Defining LayeredImage when image requires two attributes?
Replies: 1
Views: 211

Re: Defining LayeredImage when image requires two attributes?

If you are setting up v_clothes, I would suggest considering using if statements in the layeredimage: EDIT: It turned out that if statements do not work inside group or attribute . I updated code to use substitution instead. layeredimage ani: ... group outfit: attribute cas: "[v_clothes]_cas_outfit"...
by _ticlock_
Fri Oct 07, 2022 3:03 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Scrollable gallery
Replies: 4
Views: 271

Re: Scrollable gallery

Could you please run it and test if it works for you? Apparently there are no function improvement on my side after correcting the code. Works for me: screen gallery(): frame: xpos 250 ypos 150 side ("c r"): area (1,0,1540,770) viewport id "gallery_viewport": draggable True mousewheel True vbox: te...
by _ticlock_
Thu Oct 06, 2022 11:19 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Scrollable gallery
Replies: 4
Views: 271

Re: Scrollable gallery

It looks ok. I believe your images are less than the size of the viewport. You can add some empty elements to change the child_size of the viewport. You also should consider using vbox or grid to simplify adding elements in the viewport. screen gallery(): add "gallery_img" frame: xpos 250 ypos 150 s...