how to style my Scene Gallery (SOLVED)

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
MoonStar
Regular
Posts: 163
Joined: Mon Jun 09, 2014 10:21 am
Projects: Yggdrasil
Contact:

how to style my Scene Gallery (SOLVED)

#1 Post by MoonStar » Fri Dec 05, 2014 8:19 pm

Hi so i made my Scene Gallery works perfect and exactly how i wanted it. But now when i want to style it to look good it wont listen to me anymore it seems and im going nuts.

Code: Select all

screen replay_gallery:
    tag menu
    
    add "gui/gm_bg.jpg"
    add "upsidedown_nav" xalign 0.5 yalign 0.0
    
    add "gui/title_cg.png" xalign 0.5 yalign 0.09
    
    grid 4 3:
        
        spacing 15 xalign 0.5 yalign 0.55
        
        
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene")) 
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene")) 
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
        button:
            action If(persistent.myfirstscene, Replay("myfirstscene"))
            if persistent.myfirstscene :
                image ("gui/cg_frame.png")
            else :
                image ("gui/cg_locked.png")
    
    add "gui/nav_bar.png" xalign 0.5 yalign 1.0
    button:
        action Return()
        text "Back" xalign 0.5 yalign 0.98


can you please tell me what I'm doing wrong?

this is how it looks

http://i.imgur.com/MlBG3ui.jpg

and this is how i want it to look but it wont listen to me

http://i.imgur.com/Fq9VQ48.jpg
Attachments
script.rpy
the full code
(10.37 KiB) Downloaded 15 times
Last edited by MoonStar on Sun Dec 07, 2014 8:04 pm, edited 2 times in total.

philat
Eileen-Class Veteran
Posts: 1853
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: how to style my Scene Gallery

#2 Post by philat » Fri Dec 05, 2014 8:23 pm

Can't tell from the code you posted (you should post the style code), but it looks like a padding issue?

User avatar
MoonStar
Regular
Posts: 163
Joined: Mon Jun 09, 2014 10:21 am
Projects: Yggdrasil
Contact:

Re: how to style my Scene Gallery

#3 Post by MoonStar » Sat Dec 06, 2014 4:25 am

philat wrote:Can't tell from the code you posted (you should post the style code), but it looks like a padding issue?
I've attached the full code file to the first post

User avatar
MoonStar
Regular
Posts: 163
Joined: Mon Jun 09, 2014 10:21 am
Projects: Yggdrasil
Contact:

Re: how to style my Scene Gallery

#4 Post by MoonStar » Sun Dec 07, 2014 6:38 pm

Bump!

Anyone? Please?

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: how to style my Scene Gallery

#5 Post by PyTom » Sun Dec 07, 2014 6:57 pm

What do cg_frame and cg_locked look like?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
MoonStar
Regular
Posts: 163
Joined: Mon Jun 09, 2014 10:21 am
Projects: Yggdrasil
Contact:

Re: how to style my Scene Gallery

#6 Post by MoonStar » Sun Dec 07, 2014 7:01 pm

the locked bit i got it to show its the frame thats not showing

this is the cg frame
Image

and this locked that works

Image

Also this are the cg_overlay and cg_overlay_hover that go in the frame along with the image from the scene/cg

Image

Image

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: how to style my Scene Gallery

#7 Post by PyTom » Tue Dec 09, 2014 1:30 am

[quote="MoonStar"]the locked bit i got it to show its the frame thats not showing[/quite]

Does this mean it works?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Bing [Bot], _ticlock_