Hello everyone,

To prevent to make too much textures with different resolutions, I want to re-use the same textures by changing the node's scale. The problem is when I change the node's scale, it updates and recovers his initial scale (1:1). Is there a way to freeze that or do I make another way ?

Here my setup:

  • Toxe and xyz replied to this.
  • I have discovered if I activate the expand mode + scale mode, it solves the entire problem. Setup the min size and it's done.
    Thank for your time.

    Toxe , hello.

    How ? I don't know, that's why I ask. The scale mustn't be changed dynamically. I just need the 4 icons in the bot of the window are the same visual scale. Not more, not less.

    What are you doing with those nodes ? Just visual information to let the player know the cost required for each ressources.

    xyz, because the main window force the update ? If necessary, please give me more explanations to let me understand.

    • xyz replied to this.

      TwistedMind Container will drive their size/scale. Godot will even display a message that says so if you try to use any of the transform tools on those nodes.

      Just rearrange the layout so those icons are kept outside of any container type control.

        xyz I understand.

        But I have got another problem:
        I add dynamically buttons in green zone. When I have got more than 3 buttons, the rest goes below and extend vertical lenght. I need the information zone move down too, according to the green zone. So how can I do that and avoid the icon's auto-scaling ?

        • xyz replied to this.

          TwistedMind Anchor them to the bottom margin of the window.
          Or add an invisible color rect as the last child to the topmost vbox container, set its minimal y size and parent those icons to it.

          As a "spacer" you can add just a simple, generic Control and then set its minimum height.

          I have discovered if I activate the expand mode + scale mode, it solves the entire problem. Setup the min size and it's done.
          Thank for your time.