Hello everyone,

I need to make a little popup menu, where i will show a little label and buttons.

  • The "label box" must have a static dimension, that's means it must not be resized;
  • The grid container can be resized in Y coordinate.

I don't know how to "lock" the dimensions of the "label box" when the popup panel will be extended. Can you explain to me what should i do ?

  • I'm not sure to understand the link with my problem.

    Meanwhile i found something whitch please me:

    Just a label and grid container: When a new button is added in the second column, i have to use set_as_minsize() (for popup panel) to "update" the panel size to make the things visualy logic. The label dimensions are fixed as expected.

    Thanks for your attentions.

To clarify: You want to place different text strings in the Label node from your script, while keeping the dimensions of Label the same? What do you want to happen if the text is too long to fit in the Label?

    DaveTheCoder What do you want to happen if the text is too long to fit in the Label?

    Draw hint on cursor hover?

    In a similar situation, I'm using a RichTextLabel. The RichTextLabel automatically wraps the text and adds a scroll bar if needed.

    Hello everyone,

    You want to place different text strings in the Label node from your script...

    No. Textured Buttons.

    When the mouse is over a button, the text must show a name not up to 10 characters approximatively (like: House, Refinnery, Factory, etc).

    I'm not sure to understand the link with my problem.

    Meanwhile i found something whitch please me:

    Just a label and grid container: When a new button is added in the second column, i have to use set_as_minsize() (for popup panel) to "update" the panel size to make the things visualy logic. The label dimensions are fixed as expected.

    Thanks for your attentions.