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

Rework loot table view #154

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Rework loot table view #154

merged 1 commit into from
Oct 2, 2023

Conversation

lcdr
Copy link
Collaborator

@lcdr lcdr commented Oct 2, 2023

The current view only displays one item per line, which becomes a problem when loot tables are large ( Example ). As loot tables are mainly about what items are in them, this PR simplifies the view to just show an inline list of slots, just like LU's inventory does. As for the other columns, id never seems to be used in the game and is probably an auto-added primary key. missionDrop is indicated by highlighting the slot. sortPriority is not displayed directly, but is used to order the items. Sorting is also moved from JS to CSS, as it is only used in presentation. As sortPriority is also only used by LU to order items, without the precise value being of much importance, not displaying it directly seems like an acceptable tradeoff for a much more compact representation of loot tables.

The current view only displays one item per line, which becomes a problem when loot tables are large. As loot tables are mainly about what items are in them, this PR simplifies the view to just show an inline list of slots, just like LU's inventory does. As for the other columns, `id` never seems to be used in the game and is probably an auto-added primary key. `missionDrop` is indicated by highlighting the slot. `sortPriority` is not displayed directly, but is used to order the items. Sorting is also moved from JS to CSS, as it is only used in presentation. As `sortPriority` is also only used by LU to order items, without the precise value being of much importance, not displaying it directly seems like an acceptable tradeoff for a much more compact representation of loot tables.
@Xiphoseer Xiphoseer merged commit 98a2f52 into LUDevNet:main Oct 2, 2023
1 check passed
@lcdr lcdr deleted the loot-table branch October 2, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants