Page 1 of 1

[solved]two load screens?

Posted: Sat Jan 23, 2016 12:03 pm
by Kia
I'm solving a little problem for showing a different navigation menu when the player goes to the load screen from the main menu.
I tried to pass name of the navigation menu to the screen as argument but looks like the "use" statement don't take variables.
the next solution was having two load screen is too attached to its name :lol:

Code: Select all

screen load1():

    # This ensures that any other menu screen is replaced.
    tag menu

    use navigation1
    use file_picker
any suggestions?

Re: two load screens?

Posted: Sun Jan 24, 2016 5:31 am
by ringonoki-ua
Is it even possible?

Re: two load screens?

Posted: Sun Jan 24, 2016 5:51 am
by chocojax
If you want to pass a variable to a screen, you'll have to give it a name when defining the screen. A simple solution could be passing in an int value:

Code: Select all

screen load1(navi):
    if navi is 0:
        use navigation
    else:
        use navigation1

Re: two load screens?

Posted: Sun Jan 24, 2016 6:01 am
by Kia
thanks chocojax ^_^ I wonder why I didn't think about that.