yet another phone system + UI

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.
Message
Author
edgebug
Regular
Posts: 41
Joined: Thu Jun 30, 2016 11:44 pm
Contact:

Re: yet another phone system + UI

#16 Post by edgebug »

(fixed)
Attachments
tumblr_ddedbb09d3e7348b542a02d539c48f81_c9edb777_640.jpg

Two Dollars
Newbie
Posts: 24
Joined: Wed Oct 11, 2023 1:51 pm
Deviantart: SophomoricEnt
Contact:

Re: yet another phone system + UI

#17 Post by Two Dollars »

Thank you so much for making this code. One issue. Now all my dialogue is appearing as a text. Do I need to have duplicate characters, one for normal operations and one for texting?

Code: Select all

define alena = Actor(Character("Alena") 
define adrian = Actor(Character("Adrian") 

define alenatext = Character("Alena", kind=nvl)
define adriantext = Character("Adrian", kind=nvl)

User avatar
Nighten
Regular
Posts: 48
Joined: Fri Jan 26, 2018 12:29 am
Completed: Vincit, Sentiment Enneigés, The Devil took my Candies
Github: NightenDushi
itch: nighten
Location: France
Discord: Nighten#3081
Contact:

Re: yet another phone system + UI

#18 Post by Nighten »

Yes exactly, you need to create duplicate just like you would do to differentiate NVL characters from classic ones!
Thanks a lot for trying my code, I'm glad it's useful to you :D
If you need help with your project, you can hire me as a programmer! :D

Image ImageImage

Two Dollars
Newbie
Posts: 24
Joined: Wed Oct 11, 2023 1:51 pm
Deviantart: SophomoricEnt
Contact:

Re: yet another phone system + UI

#19 Post by Two Dollars »

Nighten wrote: Mon Oct 16, 2023 3:28 pm Yes exactly, you need to create duplicate just like you would do to differentiate NVL characters from classic ones!
Thanks a lot for trying my code, I'm glad it's useful to you :D
It rocks. I'm not a coder and was a little scared about trying to implement, but turned out to be pretty easy.

Two Dollars
Newbie
Posts: 24
Joined: Wed Oct 11, 2023 1:51 pm
Deviantart: SophomoricEnt
Contact:

Re: yet another phone system + UI

#20 Post by Two Dollars »

Question. I replaced the phone_foreground.png and phone_background.pnp. Looks sweet, but send and receive icons are off the phone to the left.

Is this where I change the text size...

Code: Select all

creen nvl_phonetext(dialogue):
    style_prefix None

    $ previous_d_who = None
    for id_d, d in enumerate(dialogue):
        if d.who == None: # Narrator
            text d.what:
                    xpos -335
                    ypos 0.0
                    xsize 350
                    text_align 0.5
                    italic True
                    size 28
                    slow_cps False
                    id d.what_id
                    if d.current:
                        at message_narrator
Image

https://www.instagram.com/p/Cykb0hwuIJH/
Attachments
iconbubblephone.jpg
(147.18 KiB) Not downloaded yet

SiddyJUK
Newbie
Posts: 3
Joined: Mon Apr 11, 2022 4:25 am
Contact:

Re: yet another phone system + UI

#21 Post by SiddyJUK »

This is really cool, and I will be 100% adding it to my game. I have been testing with it, however it appears all messages appear on the same Screen. Is there a way to have different "conversations" for different characters? I am still getting to grips with the more complex coding, so am a little lost.

Thanks in advance
Me

Post Reply

Who is online

Users browsing this forum: No registered users