gnembon / scarpet

Public Repository of scarpet programs for Minecraft
Creative Commons Zero v1.0 Universal
351 stars 157 forks source link

Scarpet library for creating GUI menus. #315

Open opsaaaaa opened 2 years ago

opsaaaaa commented 2 years ago

After making the waystone app #305 and reviewing the fake player gui app #310 I think it would be nice to have a generalize library for GUI menus.

I like the idea of a page function and button or icon, and filler utilities. I also like the idea of a open_page function/ button

I think it should be as data generated as reasonable. I am imaging passing in a map or array of slot -> button/icon maybe with optional callback lambdas called when clicked.

Ghoulboy78 commented 2 years ago

You mean a system which is built on existing scarpet, hacking stuff together with arcane features to make an overly complex system which about 3 people will end up using?

This is for me!!

On a more serious note, I do think this is a pretty good idea, tho ig rn it's basically a glorified button panel.

opsaaaaa commented 2 years ago

lol. Yeah your totally right. Practicality didn't even cross my mind if i'm totally honest. I guess I got excited about the problem solving and stuff.

GhostIsBeHere commented 1 year ago

I would also really like this lol

Ghoulboy78 commented 1 year ago

Ok, I made a rudimentary version of this (tho it's the result of about half an hour's work, so it's not pretty). I'll publish it on a branch.