Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Yes yes the column part is a very simple change, the way I have it is that the portrait and the description are within an hbox, which displays them next to each other, you just delete the hbox and the portrait line of code to remove the icon, and you also need to delete the line that constrains the xsize of the description so it will naturally fill the box! The overflow scrolling is something I haven't done much before, but basically you just add the text inside of a frame and add the properties draggable and scrollwheel!

In example, each character profile has a line that says #layout starts and #layout ends, between these you can paste this code:

 vbox:

                    spacing 10

                    frame:

                        background gui.selected_color

                        padding (10, 10)

                        label "{color=#000}{size=50}[character1]{/size}"

                    label "{color=[gui.accent_color]}{size=25}[character1title]{/color}"

                    frame:

                        ysize scrollframeheight

                        has viewport:

                            draggable True
                            mousewheel True

                        label "{color=#fff}[character1description]"

                vbox:

                    frame:

                        background gui.selected_color
                        padding (10, 10)

                        textbutton "Return" action Return() xalign 0.5 #You can uncenter the return button by removing "xalign 0.5"

                    xalign 0.5

And that should get you where you're trying to go! I made a new layout code and posted it on the download page for you if you want to pop that in and give it a try, it'll save you the effort of renaming all the stuff and whatnot!

Let me know if you come across any errors or if something doesn't make enough sense, good luck!

(+1)

OH WAIT THATS AWESOME i cant try it out now but i will do so first thing tomorrow !! thank you so much :D

this is like exactly what i needed :0 one last question- is there any way the name section can scroll if you need more characters?

It would be the same process we use to make the description scroll! All you need to do is put the characters inside a frame and add the scroll+drag properties!

I'll show some pictures of my code so you can see what to change! You must make this change for every separate character screen, so you'll likely need to copy+paste it in each!

frame:

                    ysize scrollframeheight

                    has viewport:

                        draggable True
                        mousewheel True

                        vbox:

                            textbutton "[character1]" action ShowMenu("character1") xalign 0.5

                            textbutton "[character2]" action ShowMenu("character2") xalign 0.5

                            textbutton "[character3]" action ShowMenu("character3") xalign 0.5

                            textbutton "[character4]" action ShowMenu("character4") xalign 0.5

                            textbutton "[character5]" action ShowMenu("character5") xalign 0.5

                            textbutton "[character6]" action ShowMenu("character6") xalign 0.5

                            textbutton "[character7]" action ShowMenu("character7") xalign 0.5

                            textbutton "[character8]" action ShowMenu("character8") xalign 0.5


Be cautious the indentations match if you paste it directly in!

Also the frame's border bothers me, so you can add this line of code to remove it if you'd like.

Good luck!!!!!

(+1)

ur like so sick and awesome for this holy shit ty.... im normally so good at coding i swear but the scrolling vexed me lmao

(+1)

Anytime! :D