Search found 13 matches
- Thu Feb 17, 2022 1:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: transition toggle
- Replies: 1
- Views: 263
Re: transition toggle
nevermind figured it out. Here's the test code label start: $ var1 = False scene white with dissolve "dialogue 1" "dialogue 2" scene blue with Dissolve(2.0) "dialogue 3" "dialogue 4" if preferences.transitions == 0: $ preferences.transitions = 2 $ var1 = True scene red with Dissolve(2.0) if var1: $ ...
- Wed Feb 16, 2022 9:12 am
- Forum: Ren'Py Questions and Announcements
- Topic: transition toggle
- Replies: 1
- Views: 263
transition toggle
hi i want to know if there is way to toggle transitions switch (the in preferences menu) via code in game. what i want is as follows show abc dialogue dialogue if transitions = false transitions = true $ var = true show abc2 with dissolve if var = true transitions = false dialogue dialogue ... Basic...
- Sat Oct 09, 2021 12:38 am
- Forum: Ren'Py Questions and Announcements
- Topic: Text and Name Position
- Replies: 1
- Views: 288
Text and Name Position
I changed the dialogue box image and its height and name position and text position in gui.rpy. Everything looks fine when i launch project but when i launch project for andoird phone via renpy launcher emulation, name and text are shown above the dialogue box(see image). https://i.ibb.co/pnndFCY/im...
- Sat Oct 02, 2021 3:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: Persistent delete
- Replies: 6
- Views: 364
Re: Persistent delete
The error message says that "value" is None in this operation: value -= self.offset while running get_adjustment() in file "renpy/common/00barvalues.rpy", line 285. In case this error was caused by some previously compiled codes, try to delete all the files in "game/cache" folder and all the *.rpyc...
- Thu Sep 30, 2021 12:01 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Persistent delete
- Replies: 6
- Views: 364
Re: Persistent delete
The manual says: Confirm(prompt, yes, no=None, confirm_selected=False) Prompts the user for confirmation of an action. If the user clicks yes, the yes action is performed. So what you are trying to invoke as an action: persistent._clear(progress=False) is not a standard action. The manual says: Alo...
- Thu Sep 30, 2021 12:39 am
- Forum: Ren'Py Questions and Announcements
- Topic: Persistent delete
- Replies: 6
- Views: 364
Persistent delete
Hi
I want to create a text button to delete persistent data afte confirming yes. The following code didnt work.
I want to create a text button to delete persistent data afte confirming yes. The following code didnt work.
Code: Select all
textbutton _("Delete Persistent Data") action Confirm(_("Are you sure you?"), persistent._clear(progress=False))
- Wed Sep 29, 2021 7:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Custom Screens
- Replies: 2
- Views: 317
Re: Custom Screens
This did the trickdrKlauz wrote: ↑Wed Sep 29, 2021 11:47 am
Should be something like i guess:Also if you translating message in screen, you probably shouldn't add _() to show, just provide string. Or other way around.Code: Select all
Show("customscreen",None,_("Not Yet Implemented"))
- Wed Sep 29, 2021 7:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Cursor change on button hover
- Replies: 2
- Views: 307
Re: [SOLVED]Cursor change on button hover
Thanks, this works.
Code: Select all
define config.mouse = { }
define config.mouse['default'] = [ ( "gui/cursor_1.png", 0, 0) ]
define config.mouse['mbselect'] = [ ( "gui/cursor_2.png", 0, 0) ]
textbutton _("TestButton") pos (1835, 1037) action Notify("Testing") mouse "mbselect"
- Wed Sep 29, 2021 11:19 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved]Custom Screens
- Replies: 2
- Views: 317
[Solved]Custom Screens
Hi The following code works. screen customscreen: modal True zorder 200 style_prefix "confirm" add "gui/overlay/confirm.png" frame: vbox: xalign .5 yalign .5 spacing 45 label _("Not Yet Implemented"): style "confirm_prompt" xalign 0.5 textbutton _("OK") xalign 0.5 action Hide("customscreen") key "ga...
- Wed Sep 29, 2021 9:30 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Cursor change on button hover
- Replies: 2
- Views: 307
[SOLVED]Cursor change on button hover
Hi I changed the default cursor in renpy and want to change the cursor when i hover over a button and when i unhover the cursor should go back to default. this is the code i used define config.mouse = {"default":[ ("gui/cursor_1.png", 1, 1) ] } I want the same effect we have in windows operating sys...
- Wed Sep 29, 2021 7:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] Button
- Replies: 0
- Views: 374
[Solved] Button
Hi
I want confirm type screen to appear on click of a button but with only one button 'OK' instead of a yes or no. And that 'OK' when clicked should hide the screen that appeared. How can i do that?
Edit - Nevermind Found a way using this viewtopic.php?f=8&t=63237
I want confirm type screen to appear on click of a button but with only one button 'OK' instead of a yes or no. And that 'OK' when clicked should hide the screen that appeared. How can i do that?
Edit - Nevermind Found a way using this viewtopic.php?f=8&t=63237
- Mon Sep 27, 2021 6:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: Imagebutton Animation or Transition
- Replies: 5
- Views: 375
Re: Imagebutton Animation or Transition
If ATL wouldn't give the desired effect, then it's possible to do with Creator-Defined Displayables: https://www.renpy.org/doc/html/cdd.html But I'm not sure that it's an easy way. It would be something like: init python: class SmoothHover(renpy.Displayable): """ Gives animated hovering / unhoverin...
- Sun Sep 26, 2021 8:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Imagebutton Animation or Transition
- Replies: 5
- Views: 375
Imagebutton Animation or Transition
Hi I created an image button in the middle of the main menu screen. I have the idle image and the hover image and they work as expected. What I want to do is when I hover over the the button the hovered image should appear with a dissolve (or any other) transition and when I unhover the button the i...