Spinnery icon indicating copy to clipboard operation
Spinnery copied to clipboard

WSlot: Items are offset by a miniscule amount

Open Leo40Git opened this issue 5 years ago • 3 comments

Vanilla: idea64_BrfnLUXBLD Spinnery: java_qo6HVJSCNv Also, WSlot.addArray places adjacent slots with like 1 pixel between them, vs. vanilla which places them right next to eachother. Also also WSlot.addPlayerInventory doesn't add the "Inventory" label

Leo40Git avatar Jun 11 '20 11:06 Leo40Git

Will fix.

vini2003 avatar Jun 13 '20 02:06 vini2003

The item offset has been fixed by fixating WSlots to an int grid, instead of a float-based grid like the rest of Spinnery; thanks for the report!

I was however unable to reproduce the addArray offset issue myself; and addPlayerInventory will not add the label because the developer may not want the label, eg. in a screen similar to the creative screen.

vini2003 avatar Jun 21 '20 00:06 vini2003

Mouse over the border between 2 slots in Spinnery and you can see that you don't select any slots. Do the same thing in a vanilla GUI and you should see that you select the 2nd slot.

The addPlayerInventory quirk is understandable, though. Guess I'll just make a utility method that adds the label.

Leo40Git avatar Jun 21 '20 07:06 Leo40Git