GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Fantasy UI Borders - Kenney

Open Kruger77 opened this issue 9 months ago • 8 comments

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

  • License: Creative Commons CC0
  • Author: Kenney
  • Link to the original website: https://kenney.nl/assets/fantasy-ui-borders
  • Zip file: kenney_fantasy-ui-borders.zip

Kruger77 avatar Apr 28 '24 18:04 Kruger77

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.

D8H avatar May 11 '24 10:05 D8H

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

Kruger77 avatar May 11 '24 16:05 Kruger77

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.

D8H avatar May 11 '24 17:05 D8H

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

Kruger77 avatar May 11 '24 18:05 Kruger77

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": []
},

D8H avatar May 11 '24 18:05 D8H

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

Kruger77 avatar May 12 '24 15:05 Kruger77

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

D8H avatar May 12 '24 15:05 D8H

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

Kruger77 avatar May 12 '24 18:05 Kruger77

Hello, Thank you, this pack has been added into the app.

Bouh avatar May 31 '24 13:05 Bouh