Making a Plugin GUI

Hello,

I am having difficulties using the DockWidgetPluginGuiInfo I try to set the precise settings but my GUI just never fits properly into the widget. Can anyone tell me how to fix this please?

image

These are my setting -

local EvilWidgetInfo = DockWidgetPluginGuiInfo.new(
	Enum.InitialDockState.Float,
	true, 
	true,
	200,
	300,
	150,
	150
)

Help is appreciated, thanks!

The size of the ui not the widget should be (1 , 0 , 1 , 0) and should have a position of (0 , 0 , 0 , 0) except if you changed the anchor point, just make it centered.

How do you change the anchor point/position?

Go into the properties you have in your UI (Frame) and set the anchor point .5,.5

Its a property of the frame, the actual frame not the widget

1 Like


It doesn’t show anything now

What is the anchor point and position now?

Can we see the Position?
Also Make sure the Size is 1,0,1,0

image
image

Position should be .5 , 0 . 5 , 0

It shows it properly but how do I change the color or get rid of the white space?

Is the Size 1,0,1,0?
Make sure it is or it will not work.

Thats why the size should be 1 , 0 , 1 , 0
The widget should NOT be reasizable

@msix29
Size of dock widget or the GUI?

GUI not widget.

1 Like

The gui, the dock widget should be the original size of the gui in pixels

Does the GUI have to be scaled accordingly? As in convert everything scale because when I drag the GUI, everything gets distorted. Or just the main frame in which everything is parented needs to be 1,0,1,0?

The gui should be scaled (1 , 0 , 1 , 0) the widget should be in pixels(Original size of the gui in pixels, keep the gui in scale just change it to get the size and back to scale) if you can use scale for the widget then do it

1 Like

So I scale every element of the GUI and then set the frame in which everything is parented to {1,0} {1,0}?

Exactly, after that, resize the widget so it looks good

1 Like