Skip to content

Format gui xmls #10743

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

Open
wants to merge 5 commits into
base: version/main
Choose a base branch
from
Open

Format gui xmls #10743

wants to merge 5 commits into from

Conversation

Thodor12
Copy link
Contributor

Changes proposed in this pull request

  • Added spotless using prettier to format XML files
  • Format all XML GUI files

Testing

  • Yes I tested this before submitting it.
  • I also did a multiplayer test.

Review please

<text size="110 11" pos="90 80" color="black" label="§n$(com.minecolonies.coremod.gui.citizen.family.partner):§r"/>
<text id="partner" size="130 11" pos="50 95" color="black" textalign="MIDDLE"/>
<text color="black" label="§n$(com.minecolonies.coremod.gui.citizen.family.parents):§r" pos="90 40" size="110 11"/>
<text color="black" id="parentA" pos="50 51" size="130 11" textalign="MIDDLE"/>
Copy link
Member

@Nightenom Nightenom Mar 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have more logical sorting for these? like id, pos, size going first (id -> size -> pos seems to be the most used one)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, Id like id/pos/size by alphabet

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't configure it that much since prettier can only do it fully by alphabet. I did look at this myself but I'm not sure if it's doable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try and do this, draft this PR for now, whilst I modify the prettier plugin in the source to allow for such an option

@Thodor12
Copy link
Contributor Author

Waiting on prettier/plugin-xml#860

@Thodor12 Thodor12 added the PR: Not Ready This PR is not ready. Do. Not. Merge. label May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Not Ready This PR is not ready. Do. Not. Merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants