Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

this is what happens when i copy the code over :( its mostly unedited other than the frame code block you showed.

before i yoinked this template the code worked fine so i dont know what to do

Looking closer, this code relies on the default layout of the history screen and the provided styles. The template styles use an hbox rather than a window + name label positioned individually. It'll be easier if you just adjust the existing code and modify it how you like. For example, you can modify the first few lines of the history screen:

screen history():
    tag menu
    ## Avoid predicting this screen, as it can be very large.
    predict False
    # add HBox(Transform("#292835", xsize=350), "#21212db2") # The background; can be whatever
    # use game_menu(_("History"))
    frame:
        align (0.5, 0.5) xysize (1450, 900)
        textbutton _("Return") align (1.0, 1.0) action Return()
        viewport:
            mousewheel True draggable True pagekeys True
            scrollbars "vertical" yinitial 1.0
            has vbox
            style_prefix "history"
Make whatever adjustments you like to the sizes of everything.

its better now! although this happens. apologies for asking for so much help but i do really appreciate it.

You still need the has vbox line and below - don't remove those.

The window itself is working!! My only issue now is that the textboxes for dialogue are both layered over one another and have the frame.png surrounding them!

Yes I'm aware. They're stacking because there isn't a vbox. The original screen has a vbox. It looks like when you pasted the code I provided earlier, you got rid of it. Don't do that.

Oh, okay! Thank you sm!!!