Design forum
cancel
Showing results for 
Search instead for 
Did you mean: 

GDL: Basic UI Shapes

Lingwisyer
Rockstar
Hi all,

Is there a way to create basic shapes in the UI script without resorting to images?



Ling.
AC22-23 AUS 7000
Self-taught, bend it till it breaks.

Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660
2 REPLIES 2

Barry Kelly
Moderator
Apart from horizontal or vertical lines or rectangles, not that I know of.
You will have to use a picture.

And be aware that the bounding box of the picture will block other infields & outfields even if the picture has a transparent background.
It is especially troublesome for infields - it may look like it is in front of the picture but you can type anything in the field.
The trick I have found if you want an infield and picture to overlap is to script the infield, then the picture and then the same infield again.

UI_INFIELD...
UI_PICTURE...
UI_INFIELD...

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

I use single pixel bitmaps for frames and line (H&V),
It could be possible to script the other shapes using such single pixel bitmaps as well...yet I try avoiding it, because more complicated the UI scrip is, the less responsive the UI can be (especially the first use until it is cached).

Best Regards,
Piotr

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!