Hand-written by Joseph San Nicolas, Roblox Developer
Constructors
| Name | Description |
| new(InitialDockState: Enum.InitialDockState,InitialEnabled: boolean,InitialEnabledShouldOverrideRestore: boolean,FloatingXSize: number,FloatingYSize: number,MinWidth: number,MinHeight: number) | Returns a new DockWidgetPluginGuiInfo, used when constructing a PluginGui via Plugin:CreateDockWidgetPluginGuiAsync(). |
Code Snippet
local widgetInfo = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Right,
true,
false,
300,
200,
150,
100
)
local widget = plugin:CreateDockWidgetPluginGuiAsync("MyWidget", widgetInfo)
widget.Title = "My Plugin"
widget.Enabled = true
Properties
| Name | Type | Description |
| InitialEnabled | boolean | The initial enabled state of a PluginGui created using this DockWidgetPluginGuiInfo. If a PluginGui with the same pluginGuiId was created in an earlier Studio session, that saved enabled state is reloaded instead (unless InitialEnabledShouldOverrideRestore is true). |
| InitialEnabledShouldOverrideRestore | boolean | If true, the value of InitialEnabled overrides any previously saved enabled state of a PluginGui being created with this DockWidgetPluginGuiInfo. |
| FloatingXSize | number | The initial pixel width of a PluginGui created using this DockWidgetPluginGuiInfo, when InitialDockState is Float. |
| FloatingYSize | number | The initial pixel height of a PluginGui created using this DockWidgetPluginGuiInfo, when InitialDockState is Float. |
| MinWidth | number | The minimum pixel width of a PluginGui created using this DockWidgetPluginGuiInfo. Each platform enforces its own absolute minimum. |
| MinHeight | number | The minimum pixel height of a PluginGui created using this DockWidgetPluginGuiInfo. |