How to place a sign in an interface?

Place to get help with not working mods / modding interface.
User avatar
yaim904
Fast Inserter
Fast Inserter
Posts: 129
Joined: Wed Nov 17, 2021 11:26 pm
Contact:

How to place a sign in an interface?

Post by yaim904 »

Hello,

I've been working on an interface, but I don't know how to put a banner in the top right corner, and at the same time, put another banner in the top left corner.
Captura de pantalla 2022-02-05 143732.png
Captura de pantalla 2022-02-05 143732.png (41.27 KiB) Viewed 1625 times

I found horizontal_align but how do I overlap two elements??
Captura de pantalla 2022-02-05 143652.png
Captura de pantalla 2022-02-05 143652.png (20.32 KiB) Viewed 1625 times

I want everything to be relative, because the scale is changed.

I need help to do it.
Solo entiendo español, pero si tu también lo entiendes, escríbeme
:D
Everything i write in English is translated by Deepl.
:D
robot256
Smart Inserter
Smart Inserter
Posts: 1248
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: How to place a sign in an interface?

Post by robot256 »

Have you tried putting a 1x2 table as the heading? You might need to set the total width explicitly.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
User avatar
yaim904
Fast Inserter
Fast Inserter
Posts: 129
Joined: Wed Nov 17, 2021 11:26 pm
Contact:

Re: How to place a sign in an interface?

Post by yaim904 »

robot256 wrote: Sat Feb 05, 2022 8:04 pm
That's a good idea, but...
yaim904 wrote: Sat Feb 05, 2022 7:40 pm I want everything to be relative, because the scale is changed.
Anyway, thanks for the idea.
Solo entiendo español, pero si tu también lo entiendes, escríbeme
:D
Everything i write in English is translated by Deepl.
:D
robot256
Smart Inserter
Smart Inserter
Posts: 1248
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: How to place a sign in an interface?

Post by robot256 »

You could try calculating the width dynamically. Sorry I'm pretty new to GUI design.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
User avatar
yaim904
Fast Inserter
Fast Inserter
Posts: 129
Joined: Wed Nov 17, 2021 11:26 pm
Contact:

Re: How to place a sign in an interface?

Post by yaim904 »

robot256 wrote: Sat Feb 05, 2022 8:09 pm
Actually, it has a height and width property, which would be very useful, but it's only writeable.

Don't worry, we all start somewhere.
Solo entiendo español, pero si tu también lo entiendes, escríbeme
:D
Everything i write in English is translated by Deepl.
:D
User avatar
yaim904
Fast Inserter
Fast Inserter
Posts: 129
Joined: Wed Nov 17, 2021 11:26 pm
Contact:

Re: How to place a sign in an interface?

Post by yaim904 »

I know this can be considered SPAM, but I'm commenting in case it helps someone.

Captura de pantalla 2022-02-05 185038.png
Captura de pantalla 2022-02-05 185038.png (21.39 KiB) Viewed 1548 times
I added an empty-widget with the property horizontally_stretchable between the title and the time.
Solo entiendo español, pero si tu también lo entiendes, escríbeme
:D
Everything i write in English is translated by Deepl.
:D
Post Reply

Return to “Modding help”