Search found 391 matches

by _ticlock_
Thu Jul 28, 2022 11:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Disable menu and rollback in a screen
Replies: 2
Views: 228

Re: Disable menu and rollback in a screen

Just realized it is better to use use statement:

Code: Select all

screen disable_menu_rollback():
    key "game_menu" action NullAction()
    key "rollback" action NullAction()
    key "rollforward" action NullAction()

screen some_screen():
    ...
    use disable_menu_rollback()
Anyway, is it a better way?
by _ticlock_
Thu Jul 28, 2022 11:46 pm
Forum: Ren'Py Questions and Announcements
Topic: Disable menu and rollback in a screen
Replies: 2
Views: 228

Disable menu and rollback in a screen

Hello All, Is it some proper way to disable menu and rollback action in a screen. I can add NullAction() for the appropriate keys, but is there a better way to do it? screen some_screen(): ... key "game_menu" action NullAction() key "rollback" action NullAction() key "rollforward" action NullAction()
by _ticlock_
Thu Jul 28, 2022 11:19 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I view the script of a renpy game?
Replies: 2
Views: 242

Re: How do I view the script of a renpy game?

It's my own game so I'm pretty sure the script isn't locked or anything. I've deleted renpy a few times and don't have the project in my renpy anymore? I have a download of my older game; is there anyway I can view the script?? It is not clear what is the problem. Basically, you can view your scrip...
by _ticlock_
Thu Jul 28, 2022 11:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Mouse hover image on the hotspot load screen
Replies: 2
Views: 206

Re: Mouse hover image on the hotspot load screen

Hi everyone, I made a save and load screen with a hotspot. The function is works normally. When I hover my mouse over the saved slot on the load screen, can I use the hover image in that slot? I want to display the saved slot to know which slot I am in when I operate it with a keyboard. I tried cha...
by _ticlock_
Mon Jul 25, 2022 4:29 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How can I get the coordinates x and y of rendered objects?
Replies: 12
Views: 411

Re: How can I get the coordinates x and y of rendered objects?

I think, in the renpy screen language you are not supposed to get coordinates of the displayables. Instead, you can use style properties for positioning and other screen language tools. Yes, I solved this problem using a function and now I get a tooltip exactly opposite each button. I can add and re...
by _ticlock_
Mon Jul 25, 2022 11:33 am
Forum: Ren'Py Questions and Announcements
Topic: predict displayable for next screen while being in screen
Replies: 1
Views: 229

Re: predict displayable for next screen while being in screen

"Possible" solution: I can get around it by hiding the screen_1 (without using on_hide animation) to make a prediction and then reshow it and hide with on_hide animation when proceeding to screen_2: label start: label .screen_1: call screen screen_1(on_hide_anim = False) if _return == "predict": sh...
by _ticlock_
Mon Jul 25, 2022 11:01 am
Forum: Ren'Py Questions and Announcements
Topic: Confirm menu in "Load" of Title menu
Replies: 3
Views: 272

Re: Confirm menu in "Load" of Title menu

The text for saving is "セーブしますか?", and text for overwriting is "上書きしますか?". Is there a way to distinguish "save confirm text" from empty slot and "overwrite confirm text"? Not sure what is the best way to do it. Maybe using renpy.list_slots to get list of existing save files. Then, you could use con...
by _ticlock_
Mon Jul 25, 2022 10:33 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How can I get the coordinates x and y of rendered objects?
Replies: 12
Views: 411

Re: How can I get the coordinates x and y of rendered objects?

span4ev wrote:
Mon Jul 25, 2022 7:09 am
To avoid confusion, are you actually trying to make tooltips and position them next to the displayable?

Check the tooltip example using Nearrect from renpy documentation tooltip_example2
by _ticlock_
Sun Jul 24, 2022 3:43 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How can I get the coordinates x and y of rendered objects?
Replies: 12
Views: 411

Re: How can I get the coordinates x and y of rendered objects?

span4ev wrote:
Sun Jul 24, 2022 10:22 am
EDIT:
renpy.get_image_bounds or renpy.get_placement might be useful. Not sure if that is what you are looking for.
by _ticlock_
Fri Jul 22, 2022 11:12 pm
Forum: Ren'Py Questions and Announcements
Topic: predict displayable for next screen while being in screen
Replies: 1
Views: 229

predict displayable for next screen while being in screen

I would like to predict a displayable that is supposed to be shown in the next screen and wait till the prediction is over (show a loading animation) to make sure that animations will be smooth. Current implementation: label start: call screen screen_1 call loading_screen_label("displayable_to_predi...
by _ticlock_
Fri Jul 22, 2022 4:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Confirm menu in "Load" of Title menu
Replies: 3
Views: 272

Re: Confirm menu in "Load" of Title menu

confirm argument in FileSave and FileLoad prompt for confirmation before loading the file only if not at the main menu, and only before overwriting existing save file. I am not sure why you want to prompt for confirmation in these cases but I guess you could use Confirm action to implement it. Some...
by _ticlock_
Fri Jul 22, 2022 2:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Modifying the confirm text
Replies: 2
Views: 206

Re: Modifying the confirm text

Look at the screen confirm in screens.rpy : screen confirm(message, yes_action, no_action): ... label _(message): style "confirm_prompt" xalign 0.5 ... style confirm_prompt is gui_prompt style confirm_prompt_text is gui_prompt_text Actually, by default message should be centered. xalign 0.5 Some way...
by _ticlock_
Mon Jul 18, 2022 2:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Moving Input in Android (to avoid keyboard)
Replies: 2
Views: 201

Re: Moving Input in Android (to avoid keyboard)

You need to change the input screen location.

For example in screens.rpy:

Code: Select all

screen input(prompt):
   #...

style input_window:
    yalign 0.0
Maybe add variant and other style changes.
by _ticlock_
Thu Jul 14, 2022 9:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding tint to the image based on the variable
Replies: 4
Views: 248

Re: Adding tint to the image based on the variable

Remix wrote:
Thu Jul 14, 2022 7:00 pm
You could use a displayable prefix to push the image through a function...
Wow. That seems promising. Is it any reason why you would not recommend using this approach? (Like it may slow down displayable processing (besides using tint) or complicate anything else)

Thank you for your help!!!
by _ticlock_
Thu Jul 14, 2022 9:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Showing one screen over the other.
Replies: 1
Views: 191

Re: Showing one screen over the other.

When you call screen renpy doesn't go to the next line until you return from the screen mapajuego. To actually show msecundaria01 you need to show it first and only then call mapajuego. In order to put msecundaria01 on top, you can use different zorder for the screens. For example: screen mapajuego:...