Home Creators Posts Import Register Favorites Logout

Content

It's probably because I'm new to coding but getting this Calendar Sub-Menu to work with the proper Date and functioning variables, within the Game-Menu, was REALLY complicated. lol. I was pulling my hair out for, I think the majority of 2 days.... Seems easy enough, but no... It wasn't... So, you now have 4 menu's. The Main Menu, In Game Quick Menu, Default Quick Menu, and the Phone's "Game Menu"... And each of those has their own buttons and screens. Like the phone menu, has SAVE, LOAD, Stats, Patreon, The Time of Day, Settings, Gallery, Calendar and an Exit button... Maybe it's overkill but, I have finished that code so I can reuse it in any future games now. :) Just change the images and I'll always have a functional menu system.For any nerds who code and like to see behind the screen... This is just the Calendar Menu Screen script. Not including the GUI script or definitions or functions/variables scripts...screen phone_menu():

    tag menu

    modal True

    # Pull current date info for the calendar text and day-of-week overlays    $ month, day, weekday = get_current_date()    fixed:        # ----------------------------------------------------------------------        # 1) Decide which background to display (Patreon, Calendar, or Default)        # ----------------------------------------------------------------------        if phone_submenu == "calendar":            add "gui/PhoneMenu/gui_phone_bg_calendar.png"            if month == "June":                add "gui/PhoneMenu/gui_phone_cal_june.png"            elif month == "July":                add "gui/PhoneMenu/gui_phone_cal_july.png"        elif phone_submenu == "patreon":            add "gui/PhoneMenu/gui_phone_bg_patreon.png"        else:            add game_state["time"]["current_phone_wallpaper"]

Files

Comments

No comments found for this post.