Description for hovered word

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
valery_iwanofu
Newbie
Posts: 8
Joined: Tue May 18, 2021 2:56 am
Contact:

Description for hovered word

#1 Post by valery_iwanofu »

Screenshots:
Image

Image

Image

Github repository:
https://github.com/valery-iwanofu/renpy ... escription

Usage:
  • Download game/glossary_core.rpy from repository to game folder of your project
  • Customize view of glossary_word and glossary_word_frame screens in glossary_core.rpy file
  • Define glossary words:

    Code: Select all

    init python:
        GlossaryWord(
            uid='unique_word_id',
            word=_('Tatakae'),
            description=_('Means fight in Japanese.')
        )
    
  • Use glossary in characters lines:

    Code: Select all

        eren '{glossary=unique_word_id}Tatakae, tatakae, tatakae{/glossary}.'
        hange 'Are you mad?'
    

User avatar
Tess
Regular
Posts: 59
Joined: Thu Aug 04, 2022 3:43 pm
Projects: The Songbird Guild
Organization: Yurisoft
Github: wainwt2
Discord: Tess#7782
Contact:

Re: Description for hovered word

#2 Post by Tess »

I was already trying to work on something like this myself for a game, but this looks like it'll do the job really well already. Thanks for posting this!

Post Reply

Who is online

Users browsing this forum: No registered users