Little used features screen quick menu

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Post Reply
Message
Author
User avatar
Andredron
Miko-Class Veteran
Posts: 719
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Little used features screen quick menu

#1 Post by Andredron »

Image

I was collecting material for writing a paper on ui in visual novels (here are some sketches for those who are interested https://vk.com/topic-7553243_49413139 )

And when I started to write down the history of how ui changed in different periods, I came across the fact that in 2019 and up to now a lot of developers from Japan began to apply as in the image of this plan ui where a lot of shortcut buttons began to display on the screen (this is due to the emergence of widescreens, etc. there is a long story explaining why developers from Japan began to do so...).

And when I started to conduct a survey, I noticed that in Renpi a lot of articles how to do such chips, but that would be in 1 place it was collected unfortunately was not, and so I decided to collect all such solutions in one place.

https://vk.com/wall-7553243_68032

Many of course will say that there is no need for such little-used chips on Renpi, but they allow you to improve the quality of visual novels, and populize among developers Renpi engine, and increase the threshold of entry into it newcomers.

1) Action in the Load/Save menu so that players could lock a game state

viewtopic.php?t=33375

2) Swap Auto-Forward Speed around

viewtopic.php?t=38091

https://renpymemo.hateblo.jp/entry/2021/07/20/205054

Code: Select all

label _( "auto-forward time" ) 
null height ( 3 ) 
hbox: 
    text _( "slow" ) 
    bar value Preference( "auto-forward time" ) bar_invert True 
  text _( "fast" ) 
3) Text button with background.

https://renpymemo.hateblo.jp/entry/2022/01/28/000000

4) Twitter button

https://renpymemo.hateblo.jp/entry/2022/01/31/000000

First, use this tweet link tool to create a link to a tweet with fixed text including hashtags

https://tools.ikunaga.net/tweet-link/ - Each social network has a similar tool, you can supplement with examples.

We get something like this:

Code: Select all

imagebutton:
    idle "gui/tweet_hover.png"
    action OpenURL("https://twitter.com/intent/tweet?text=%E6%88%8C%E5%BD%A6%E3%83%AB%E3%83%BC%E3%83%88%E3%82%AF%E3%83%AA%E3%82%A2%EF%BC%81%E3%80%80%23%E3%83%8F%E3%83%9F%E3%83%85%E3%82%AD”)
    alt _("Twitter")
If you want to partially generate another sentence using the button:

Code: Select all

 mochi = "inuhiko"

imagebutton:
    idle "gui/tweet_hover.png"
    action OpenURL("https://twitter.com/intent/tweet?text="+mochi+"%E3%83%AB%E3%83%BC%E3%83%88%E3%82%AF%E3%83%AA%E3%82%A2%EF%BC%81%E3%80%80%23%E3%83%8F%E3%83%9F%E3%83%85%E3%82%AD")
    alt _("Twitter")
5) Continue automatic state even after pressing

https://renpymemo.hateblo.jp/entry/2022/02/01/000000

Code: Select all

preferences.afm_after_click = True

Code: Select all

textbutton _( "Auto-continue after click" ) action ToggleVariable( "preferences.afm_after_click" , true_value= True , false_value= False )
6) Inactive translucent buttons

https://renpymemo.hateblo.jp/entry/2022/12/31/000501

Code: Select all

imagebutton:
            idle "images/skipA.png"
            hover "images/skipA2.png"
            insensitive "skipA3"

Code: Select all

transform opa_hover:
        linear 0 matrixcolor OpacityMatrix(0.5)

    image skipA3 = At("skipA.png", opa_hover)

7) Renpy mouse tooltip

https://github.com/jsfehler/renpy-mouse-tooltip

8) Voice Replay

Code: Select all

textbutton _("repeat") action VoiceReplay() text_size 17
9) Skip with sound

viewtopic.php?f=8&t=66557

10) On and off mode.

https://renpy.org/wiki/renpy/doc/cookbo ... s_optional

11) On and off vibration(Android and ios)

viewtopic.php?f=8&t=53284#p502502

12) Adv and NVL Mode

viewtopic.php?p=542168#p542168

13) Setting up an option to toggle dialogue between left and centered.

viewtopic.php?p=548244#p548244

14) Drop down menus

https://patreon.renpy.org/dev-2022-05.h ... down-menus


15) Screenshot button


viewtopic.php?f=8&t=50850

16) Button Volume

viewtopic.php?f=8&t=53266

17) Stop the song and the make it play again from the point it was stopped

viewtopic.php?f=8&t=51656#p494873

18) Pull-out side menu (panel)

https://www.renpy.org/doc/html/screens. ... -mousearea

19) Screen Magnifier.

https://renpyfordummies.blogspot.com/20 ... m.html?m=1

20) Hide Interface ui

Code: Select all

imagebutton auto "gui/quick_menu/load_button_%s.png" action [HideInterface(), Hide("in_game_menu")
]
The HideInterface() hides the window

Hide() function hides the menu you were in. That way this can go in a menu.


If you want it to be a quick menu feature just remove the Hide() so it looks like:

Code: Select all

imagebutton auto "gui/quick_menu/load_button_%s.png" action HideInterface()

21) Dialog box transparency


https://renpymemo.hateblo.jp/entry/2022/01/10/141203


You may be interested in the following materials:

Post Reply

Who is online

Users browsing this forum: No registered users