Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisUI Draggable on Grid #356

Open
tehnewb opened this issue Mar 11, 2021 · 3 comments
Open

VisUI Draggable on Grid #356

tehnewb opened this issue Mar 11, 2021 · 3 comments

Comments

@tehnewb
Copy link

tehnewb commented Mar 11, 2021

When using the Draggable on the GridGroup, it would be nice to be able to switch the Actor that you drag the dragging Actor to instead of just shifting the Actors forward. Is this possible?

If I could find what specific class handled the action of moving the actor between the grid, then I would like to do it myself!

@czyzby
Copy link
Collaborator

czyzby commented Mar 11, 2021

Check out this application - it's a showcase of LML + VisUI. I think the Vis: fixedGroup example is what you're trying to achieve. I'm not sure if it's available in vanilla VisUI, but you can find the specialized GridGroup here.

@tehnewb
Copy link
Author

tehnewb commented Mar 12, 2021

Creating a FixedSizeGridGroup(itemAmount, itemSize) only creates a gridGroup of half of the itemAmount.

If I specify 36 itemAmount and any itemSize, it'll create a gridGroup 18 items
If I specify 70 itemAmount and any itemSize, it'll create a gridGroup of 35 items
If I specify 100 itemAmount and any itemSize, it'll create a gridGroup of 50 items.

I've changed table size to be over 300 width and height as well as the grid group size. Added to a table by itself, added to stage by itself. All same outcomes.

@czyzby
Copy link
Collaborator

czyzby commented Mar 12, 2021

@tehnewb Unfortunately, you might have to try to copy the sources and fix the error. I'm not entirely sure why that happens, as these lines suggest that the correct amount of placeholders is added and it seems to work in the web version. You can start by checking how many children there are in the group. Anyway, LML is no longer maintained and it's been a while since its VisUI version was updated, so it's possible that GridGroup was changed in the meanwhile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants