You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the project you are working on:
2D mobile game.
Describe the problem or limitation you are having in your project:
So, I have 3 textures like this:
I'm using them for TextureProgress node. First and third texture have a size of 544x198, the middle one is 362x70. Here's what it looks like when I put it in the node:
As you can see, the progress texture is aligned in the corner and there's no way to center it. I can't make it the same size as other textures, because the transparent pixels are counted in progress to, so it would make the bar inaccurate.
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
There should be a way to offset the progress texture. Other textures can easily be aligned in image editing software, but the progress can't, because it needs to contain solely the part that will show the progress. I've ran into this problem multiple times and it makes it impossible to make fancy TextureProgress nodes. Offset for progress texture would fix this.
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
In the Texture section of TextureProgress, there could be an additional Vector2 property called progress_offset, which would move the progress texture from the corner.
If this enhancement will not be used often, can it be worked around with a few lines of script?:
This can be worked around by using other nodes as over and under textures, but it kills the purpose of TextureProgress. IMO this is a common need for this node.
Is there a reason why this should be core and not an add-on in the asset library?:
It's about core node.
The text was updated successfully, but these errors were encountered:
Very much agree and was looking into writing a proposal about this. Can imagine this is a common issue. Using the several nodes workaround also makes using the Nine Patch Stretch feature tedious, as all 3 nodes must be aligned and resized.
Describe the project you are working on:
2D mobile game.
Describe the problem or limitation you are having in your project:
So, I have 3 textures like this:
I'm using them for TextureProgress node. First and third texture have a size of 544x198, the middle one is 362x70. Here's what it looks like when I put it in the node:
As you can see, the
progress
texture is aligned in the corner and there's no way to center it. I can't make it the same size as other textures, because the transparent pixels are counted in progress to, so it would make the bar inaccurate.Describe the feature / enhancement and how it helps to overcome the problem or limitation:
There should be a way to offset the
progress
texture. Other textures can easily be aligned in image editing software, but the progress can't, because it needs to contain solely the part that will show the progress. I've ran into this problem multiple times and it makes it impossible to make fancy TextureProgress nodes. Offset for progress texture would fix this.Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
In the
Texture
section of TextureProgress, there could be an additional Vector2 property calledprogress_offset
, which would move the progress texture from the corner.If this enhancement will not be used often, can it be worked around with a few lines of script?:
This can be worked around by using other nodes as over and under textures, but it kills the purpose of TextureProgress. IMO this is a common need for this node.
Is there a reason why this should be core and not an add-on in the asset library?:
It's about core node.
The text was updated successfully, but these errors were encountered: