[Solved] Text not showing on Frame

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
XxrenxX
Veteran
Posts: 267
Joined: Tue Oct 02, 2012 2:40 am
Projects: Chasing
Deviantart: bara-ettie
Location: Canada
Contact:

[Solved] Text not showing on Frame

#1 Post by XxrenxX »

If there's an easier way to do this coding then oops, I'm still pretty beginner when it comes to coding.

I wanted to set up a scrollable list kind of similar to a glossary but I don't need anything fancy so I came up with this the below code. Everything works but the text button text does not appear, but all the buttons work as it should.

Code: Select all

screen notes():
    tag menu
    modal True
    imagemap:
        ground "GUI/Phone/Cell_Notes_G.png"
        hover "GUI/Phone/Cell_Notes_H.png"
        xoffset 341
        hotspot (752,163,69,74) action ShowMenu("phone_menu")

        frame:
            style_prefix "notes"
            background None
            xpos 458
            ypos 238
            xsize 376
            ysize 400

            viewport:
                scrollbars "vertical"
                mousewheel True
                draggable True

                vbox:
                    textbutton "Example" action ShowMenu("notes_example") style "notes_frame"
                    textbutton "Example" action ShowMenu("notes_example") style "notes_frame"
                    textbutton "Example" action ShowMenu("notes_example") style "notes_frame"

style notes_frame:
    background "GUI/Phone/Note_Frame.png"
    xsize 365
    ysize 55
Attachments
screenshot0001.png
Last edited by XxrenxX on Tue Nov 05, 2019 1:58 pm, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Text not showing on Frame

#2 Post by Imperf3kt »

What color is the text?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
XxrenxX
Veteran
Posts: 267
Joined: Tue Oct 02, 2012 2:40 am
Projects: Chasing
Deviantart: bara-ettie
Location: Canada
Contact:

Re: Text not showing on Frame

#3 Post by XxrenxX »

Imperf3kt wrote: Sat Nov 02, 2019 3:20 pm What color is the text?
Black, sorry I was testing different things when I commented so color "#000" didn't get added in. But even with defining, it doesn't change anything.

User avatar
XxrenxX
Veteran
Posts: 267
Joined: Tue Oct 02, 2012 2:40 am
Projects: Chasing
Deviantart: bara-ettie
Location: Canada
Contact:

Re: [Solved] Text not showing on Frame

#4 Post by XxrenxX »

Making each button like so has fixed the issue

Code: Select all

                vbox:
                    button:
                        background "GUI/Phone/Note_Frame.png"
                        textbutton "Text Images" action ShowMenu("notes_textimages") style "notes_button"

style notes_button:
    xoffset 30
    xsize 365 ysize 55
Attachments
screenshot0004.png

Post Reply

Who is online

Users browsing this forum: Google [Bot]