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

Wardrobe organization #154

Closed
4 tasks done
AidenJules opened this issue Aug 29, 2023 · 2 comments
Closed
4 tasks done

Wardrobe organization #154

AidenJules opened this issue Aug 29, 2023 · 2 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@AidenJules
Copy link

Terms

  • I'm using the very latest version of CosmeticsCore and its dependencies.
  • I already searched on this Github page to check if the same suggestion was already reported.
  • I already searched on the plugin wiki to know if the feature is already implemented.
  • I already searched on the Discord server to know if anyone already has a solution for this or if the feature was already suggested.

Discord tag (optional)

AidenJules

Describe the solution you'd like

Hello!
I was talking with ItzASecret in the discord server trying to troubleshoot any way to organize the wardrobe and we couldn't find one. I am trying to organize my cosmetics because I have tons of items and I would like them to have some sort of organization system so that all the hats from pack 1 can go before all the hats from pack 2. Same thing with other types of cosmetics. Maybe if there was a configuration addition that allowed defining the position in the wardrobe GUI, like the first slot is 1, then 2, etc.

Is your feature request related to a problem?

Yes, but it isn't a big problem? I tried alphabetically and alphanumerically remaining items inside of the config and thought that would fix the order of my items and it did for the first few items but the rest didn't, I got support on it and found out its not a feature and I should request it. The few that got organized appear to be a coincidence.

Describe alternatives you've considered

I currently just plan to have my wardrobe unorganized for the time being, I have put the name of the pack before the item so there's something defining that but the physical order itself will remain all over for now.

Additional context

I would really appreciate if this gets considered, I think this could help out tons of servers and it isn't just specific to my case<3

@LoneDev6
Copy link
Contributor

LoneDev6 commented Sep 6, 2023

I'm sure order of cosmetics is based on their namespace+key.
In order to order various packs you can just rename them accordingly.

Code:

        TreeMap<String, AbstractProperties> tmpReordered = new TreeMap<>(REGISTRY);
        REGISTRY.clear();
        REGISTRY.putAll(tmpReordered);

From the Java docs:

TreeMap:
A Red-Black tree based NavigableMap implementation. The map is sorted according to the natural ordering of its keys

@LoneDev6 LoneDev6 added the status: need more info Need more info from the original poster label Sep 6, 2023
@LoneDev6
Copy link
Contributor

LoneDev6 commented Nov 7, 2023

Duplicate of #158

@LoneDev6 LoneDev6 marked this as a duplicate of #158 Nov 7, 2023
@LoneDev6 LoneDev6 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2023
@LoneDev6 LoneDev6 added type: duplicate This issue or pull request already exists and removed type: feature request status: need more info Need more info from the original poster labels Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
Status: No status
Development

No branches or pull requests

2 participants