-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Better Types Redesigned the types to create a unique one for each widget containing only the necessary arguments and properties. Added generic type support to State widgets which should make it clearer to use. This may be inconvenient to have a type for every widget, but it should make Iris easier to use with intellisense which is one of the biggest issues I here of. ## Additions - State objects and Input widgets use generic types rather than any. - PubTypes file for public types which most users only need to be exposed to. - WidgetTypes file containing a unique type for every widget. ## Changes - Removed unnecessary thisWidget arguments to certain utility functions. - Fixed child widget naming inconsistencies. ## Fixes - Fixed Style Window reset not chaning combo boxes.
- Loading branch information
1 parent
7be1b09
commit 211d296
Showing
22 changed files
with
1,199 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
local Types = require(script.Parent.Types) | ||
|
||
export type ID = Types.ID | ||
export type State<T> = Types.State<T> | ||
|
||
export type Widget = Types.Widget | ||
export type Root = Types.Root | ||
export type Window = Types.Window | ||
export type Tooltip = Types.Tooltip | ||
export type MenuBar = Types.MenuBar | ||
export type Menu = Types.Menu | ||
export type MenuItem = Types.MenuItem | ||
export type MenuToggle = Types.MenuToggle | ||
export type Separator = Types.Separator | ||
export type Indent = Types.Indent | ||
export type SameLine = Types.SameLine | ||
export type Group = Types.Group | ||
export type Text = Types.Text | ||
export type SeparatorText = Types.SeparatorText | ||
export type Button = Types.Button | ||
export type Checkbox = Types.Checkbox | ||
export type RadioButton = Types.RadioButton | ||
export type Image = Types.Image | ||
export type ImageButton = Types.ImageButton | ||
export type Tree = Types.Tree | ||
export type CollapsingHeader = Types.CollapsingHeader | ||
export type Input<T> = Types.Input<T> | ||
export type InputColor3 = Types.InputColor3 | ||
export type InputColor4 = Types.InputColor4 | ||
export type InputEnum = Types.InputEnum | ||
export type InputText = Types.InputText | ||
export type Selectable = Types.Selectable | ||
export type Combo = Types.Combo | ||
export type ProgressBar = Types.ProgressBar | ||
export type Table = Types.Table | ||
|
||
export type Iris = Types.Iris | ||
|
||
return {} |
Oops, something went wrong.