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

Fantasy UI Borders - Kenney #6543

Open
Kruger77 opened this issue Apr 28, 2024 · 8 comments
Open

Fantasy UI Borders - Kenney #6543

Kruger77 opened this issue Apr 28, 2024 · 8 comments
Labels
📦 Asset Store submission A pack of assets for the asset store

Comments

@Kruger77
Copy link

Kruger77 commented Apr 28, 2024

Description

Hello guys, I have just finished packaging this asset pack by Kenney I hope it can be useful for you. In the zip file I left the basic sprites voluntarily since they are all panels and also those decorations

@Kruger77 Kruger77 added the 📦 Asset Store submission A pack of assets for the asset store label Apr 28, 2024
@D8H
Copy link
Collaborator

D8H commented May 11, 2024

Thank you for submitting a pack.

I think it would make sense to package both sizes (default and double) because contrary to Sprite, Panel Sprites can't be scaled by changing the object size. Especially because it sounds like a pack that could be used in pixel-art games as well as HD ones.

@Kruger77
Copy link
Author

Understandable, but you mean Package both sizes still with the Panel Sprite (9-Patch) or just as normal sprites?

@D8H
Copy link
Collaborator

D8H commented May 11, 2024

I guess the fastest way would be to duplicate the project folder override the PNG files with the other ones and do a search and replace for the margins and size in the project.json with a text editor. This way you don't have any repetitive task to do.
It will result to 2 project folders and 2 GDO files, but it's not an issue.

@Kruger77
Copy link
Author

Doesn't this cause problems with panel sprites OBJ since the pixel sizes are clearly different?

@D8H
Copy link
Collaborator

D8H commented May 11, 2024

A panel sprite configuration looks like this. With some search and replace, you can divide all the values by 2 (starting from the smallest value to the biggest one).
For instance, you can search Margin": 32, and replace it with Margin": 16,.

{
  "assetStoreId": "",
  "bottomMargin": 32,
  "height": 96,
  "leftMargin": 32,
  "name": "Border_18",
  "rightMargin": 32,
  "texture": "panel-border-018.png",
  "tiled": false,
  "topMargin": 32,
  "type": "PanelSpriteObject::PanelSprite",
  "width": 96,
  "variables": [],
  "effects": [],
  "behaviors": []
},

@Kruger77
Copy link
Author

although it is something really excellent and efficient not all objects have the same margin and there are some objects that have different margins due to how they have been designated, not remembering which ones I still have to check them by hand one by one, so at this point I redo them all in the same project. I hope to send you everything by the day after tomorrow

@D8H
Copy link
Collaborator

D8H commented May 12, 2024

You can do a grep and a sort -u to find all the values to search and replace.

@Kruger77
Copy link
Author

i did it.
Project.zip
there is the project and the new GDO file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Asset Store submission A pack of assets for the asset store
Projects
None yet
Development

No branches or pull requests

2 participants