Refactor and improvements include:
After refactoring:
NOTE that these are internals thus wont be breaking changes for the users.
Im seriously thinking of changing the fields passed in table/option to widgets from PascalCase to snake_case to make it uniform, this would however lead to breaking changes and users will have to update all of their code to match the new casing. What do you users of Slab think of this? Please feel free to share your thoughts :)
Example of the change would be:
Slab.BeginWindow("id", {Title = "PascalCase Title", X = 0, Y = 0, AutoResizeWindow = true)})
--to
Slab.BeginWindow("id", {title = "snake_case title", x = 0, y = 0, auto_resize_window = true})
Development of v1.0.0 is taking a long break since I have been really busy with work + 3 side projects.
The only thing we are missing for this major release is some functionalities are not working anymore:
Tested widgets/UIs:
It would be great if someone can do a full test and list here the things that are broken so that other people can also help with the fixing. Thank you!
BREAKING CHANGES
The following now have the function signature (id, selected, opt)
- ComboBox
- ListBoxItem
- RadioButton
Example:
--before
if Slab.ComboBox("combobox", {Selected = "Apple"}) then end
--after
if Slab.ComboBox("combobox", "Apple"}) then end
Refactor and improvements include:
snake_casefor variables,PascalCasefor methodsAfter refactoring:
NOTE that these are internals thus wont be breaking changes for the users.Im seriously thinking of changing the fields passed in table/option to widgets from
PascalCasetosnake_caseto make it uniform, this would however lead to breaking changes and users will have to update all of their code to match the new casing. What do you users of Slab think of this? Please feel free to share your thoughts :)Example of the change would be:
ButtonCheckBoxColorPickerComboBoxConfigDialogDockDrawCommandsFileSystemImageInputKeyboardLayoutManagerListBoxMenuMenuBarMenuStateMessagesMouseRegionSeperatorShapeStatsTextTooltipTreeUtilityWindowDevelopment of v1.0.0 is taking a long break since I have been really busy with work + 3 side projects.
The only thing we are missing for this major release is some functionalities are not working anymore:
Tested widgets/UIs:
It would be great if someone can do a full test and list here the things that are broken so that other people can also help with the fixing. Thank you!
BREAKING CHANGES
The following now have the function signature
(id, selected, opt)Example: