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

SVG Idea i just had #4333

Closed
DNDEBUG opened this issue Apr 2, 2022 · 1 comment
Closed

SVG Idea i just had #4333

DNDEBUG opened this issue Apr 2, 2022 · 1 comment

Comments

@DNDEBUG
Copy link

DNDEBUG commented Apr 2, 2022

Describe the project you are working on

Nothing

Describe the problem or limitation you are having in your project

The Way Godot works with SVG Images

Describe the feature / enhancement and how it helps to overcome the problem or limitation

load SVG images just as they are and be able to manipulate layers independently on the screen
also this would be really cool for animated icons and HUD and custom menus
untitled

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Load icons.svg
load layer 1 on x=100, y=250
load layer 2 on x=100, y=300
load layer 3 on x=100, y=350 & rotate layer 3 in 90 degrees every 3 seconds
load layer 4 on x=100, y=400 & scale layer 4 in the y axis by 80 pixels if player click on it

also godot could have and option to load svg images from outside the res
so the programmer could easily implement a modding option like
load file from "/mods/icons/icons.svg"

If this enhancement will not be used often, can it be worked around with a few lines of script?

I believe it can be used a lot for icons and HUD stuff

Is there a reason why this should be core and not an add-on in the asset library?

Because the way Godot works with svg images now is kinda dumb ngl

@Calinou
Copy link
Member

Calinou commented Apr 2, 2022

Duplicate of #2924.

also godot could have and option to load svg images from outside the res
so the programmer could easily implement a modding option like
load file from "/mods/icons/icons.svg"

This might be available in the master branch with the migration from nanosvg to ThorVG – I haven't checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants