Page 1 of 1

How to create a second frame?

Posted: Sat Jun 01, 2019 11:11 am
by deltadidirac
Hi all,

If I would like to create a second different frame, can I do this?

this is the standard code you can find in the screen file of any game:

Code: Select all

style frame:
    padding gui.frame_borders.padding
    background Frame("gui/frame.png", gui.frame_borders, tile=gui.frame_tile)
if I want to create another style frame, simply can I give a name on another one in this simply way,
or I must also modify something else?

Code: Select all

style frame 2:  ## or style frame_2:
    padding gui.frame_borders.padding
    background Frame("gui/frame2.png", gui.frame_borders, tile=gui.frame_tile)
If the example i did before is correct, to call this personal frame, must I simply write in this way?

Code: Select all

screen bla_bla_bla:
            frame2:   ## (or frame_2)
                     add "my_ backgound"
                     vbox:
                           text "bla bla bla"
                           etc....
                           etc....
thanks and see you

Re: How to create a second frame?

Posted: Sat Jun 01, 2019 1:33 pm
by Alex
Try

Code: Select all

screen bla_bla_bla:
    frame:
        style "frame_2"
        text "?!"

Re: How to create a second frame?

Posted: Sun Jun 02, 2019 2:05 pm
by deltadidirac
Thanx Alex