forked from VoxeLibre/VoxeLibre
WIP: Survival inventory and mcl_chest formspec overhaul. #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "formspec_list"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
i won't deal with anything outside of itemslot and inventory formspec. one of us could deal with the other stuff later.
EDIT: i will also not touch anything outside of survival
mcl_inventory
andmcl_chest
Current To-Dos
othermcl_chests
formspec dialogs to match the new itemslot interface.Misc.
i'll request a review once this is ready for review. right now, it's kinda messy.
Relevant links: MCL2#1869, MCL2#1720
@AFCMS from blame, i noticed that you added
form2
intomcl_inventory/init.lua
. what's the purpose of this completely unused formspec?oops, my mistake
will remove it ofc
Will test soon, but no time rn 😢
i think i'll just include the commit to remove it in this PR. also current PR branch is pretty outdated with my local branch, i'll update once i'm done with exposing the formspecs for modders and refactored
mcl_chest
formspecs (because it's ugly that i have to copy the same thing more than once in the 62K lines of lua... someone needs to refactormcl_chest
in a different PR/commits)Could you review the exposed API i have set up? you can ignore the commit history, i'll change the history later. maybe there's something you want to change, like naming etc. reminder that codestyle is low priority rn :p
i would also like to clarify that this PR sets the foundation for all the other formspec-v4 stuff. i won't be working on formspec after this PR, leaving the rest to you. i hope that's alright :)
WIP: Itemslot and inventory formspec overhaul.to WIP: Survival inventory and mcl_chest formspec overhaul.It looks just insane!!!
btw, the itemslot border should be sightly smaller IMO
Interesting, on your (larger) screen, the text is much smaller than mine (see attached). This confirms my suspicion: text does not scale to screen size, and boy that goes agaisnt how formspec is meant to be used (common measurements scalable to any screen size, i think).
Another thing i noticed, on your screen, the player model background's border is also much smaller than mine (see attached). This also confirms my suspicion,
background9
slices are not quite as reliable as plain images. perhaps i need to rethink this...you should also compare chest UI too.
anyways, when you're reviewing the API, could you also attempt to create a formspec with the storage size of 5 x 5 itemslots? i want to see how difficult/simple this API will be for modders. consider this a bit of a simulation of how a modder would go about making their own formspec.
i also noticed the armor bug. will fix.
Which is your screen size?
Mine is 1920x1080
mine's 1366x768, but simulating other screen sizes is as easy as changing your window size. thankfully, on linux+KDE i can change window sizes precisely to your screen size.
i'm kinda tilted handling borders rn
i've decided that i would use a new branch in MCL2 to develop a formspec overhaul.
i'll try to cherry pick your commits, but if i failed,i hope you don't mind having me as the author of your initial formspec work.EDIT: yeah, i think i'll have to start from scratch now that i've thought about it ¯\_(ツ)_/¯.
Pull request closed