From 97f3a5eb3ddf71ebe67bc55fc19a63ef5b92dc6d Mon Sep 17 00:00:00 2001 From: Uptight Date: Sun, 24 Jul 2022 18:09:42 -0400 Subject: [PATCH] `v0.2.0` Stable --- CHANGELOG.md | 25 ++++- package.json | 2 +- snippets/snippets.code-snippets | 178 ++++++++++++++++++++++++++++++-- 3 files changed, 195 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf47fde..eeb8039 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,30 @@ -# 0.2.0 Stable Release +# 0.2.0 Stable Alpha Release Added - `!dxl` [Pull](https://github.com/RobloxArchiver/dx9lua/pull/1) +- `!dxui` [Pull](https://github.com/RobloxArchiver/dx9lua/pull/1) +- `dxui:SetWatermarkVisiblity` +- `dxui:SetWatermark` +- `dxui:Notify` +- `dxui:CreateWindow` +- `Window:AddTab` +- `Tab:AddGroupbox` +- `Tab:Focus` +- `Tab:AddGroupbox` +- `Tab:AddLeftGroupbox` +- `Tab:AddRightGroupbox` +- `Groupbox:AddButton` and it's residing functions within `ColorPicker:{Function}` +- `Groupbox:AddColorPicker` and it's residing functions within `ColorPicker:{Function}` +- `Groupbox:AddToggle` and it's residing functions within `ColorPicker:{Function}` +- `Groupbox:AddSlider` and it's residing functions within `ColorPicker:{Function}` +- `Groupbox:AddDropdown` and it's residing functions within `Dropdown:{Function}` +- `Groupbox:AddLabel` +- `Groupbox:AddTitle` +- `Groupbox:AddBlank` +- `Groupbox:AddBorder` + +Fixes +- Added Images that actually load to `README.md` # 0.1.2 Stable Release diff --git a/package.json b/package.json index 050ba0b..4730703 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dx9lua", "description": "DX9WARE Lua support for Visual Studio Code.", - "version": "0.1.2", + "version": "0.2.0", "publisher": "RobloxArchiver", "icon": "images/logo.png", "engines": { diff --git a/snippets/snippets.code-snippets b/snippets/snippets.code-snippets index 2cf6b3a..18177cf 100644 --- a/snippets/snippets.code-snippets +++ b/snippets/snippets.code-snippets @@ -315,34 +315,196 @@ "!dxui": { "prefix": "!dxui", "body": [ - "local ${1:lib} = loadstring(dx9.Get(\"https://raw.githubusercontent.com/soupg/DXLibUI/main/main.lua\"))()" + "local ${1:Lib} = loadstring(dx9.Get(\"https://raw.githubusercontent.com/soupg/DXLibUI/main/main.lua\"))()" ] }, - "dxui.SetWatermarkVisibility": { + "dxui:SetWatermarkVisibility": { "prefix": "dxui:SetWatermarkVisibility", "body": [ - "${1:lib}:SetWatermarkVisibility(${2:bool})" + "${1:Lib}:SetWatermarkVisibility(${2:bool})" ] }, "dxui:SetWatermark": { "prefix": "dxui:SetWatermark", "body": [ - "${1:lib}:SetWatermark(${1:text}, {Location = ${2:x}, ${3:y}})" + "${1:Lib}:SetWatermark(${1:text}, {Location = ${2:x}, ${3:y}})" ] }, "dxui:Notify": { "prefix": "dxui:Notify", "body": [ - "${1:lib}:Notify(${2:Notification_Message}, ${2:duration})" + "${1:Lib}:Notify(${2:notificationMessage}, ${2:duration})" ] }, "dxui:CreateWindow": { "prefix": "dxui:CreateWindow", "body": [ - "${1:lib}:CreateWindow(${2:WindowTitle})" + "${1:Lib}:CreateWindow(${2:windowTitle})" ] }, - "dxui:AddTab": { - "prefix": "dxui:AddTab" + "Window:AddTab": { + "prefix": "Window:AddTab", + "body": [ + "${1:Window}:AddTab(${2:tabName})" + ] + }, + "Tab:Focus": { + "prefix": "Tab:Focus", + "body": [ + "${1:Tab}:Focus()" + ] + }, + "Tab:AddGroupbox": { + "prefix": "Tab:AddGroupbox", + "body": [ + "${1:Tab}:AddGroupbox(${2:name}, ${3:side})" + ] + }, + "Tab:AddLeftGroupbox": { + "prefix": "Tab:AddLeftGroupbox", + "body": [ + "${1:Tab}:AddLeftGroupbox(${2:name})" + ] + }, + "Tab.AddRightGroupbox": { + "prefix": "Tab.AddRightGroupbox", + "body": [ + "${1:Tab}:AddRightGroupbox(${2:name})" + ] + }, + "Groupbox:AddButton": { + "prefix": "Groupbox:AddButton", + "body": [ + "${1:Groupbox}:AddButton(${2:text}, ${3:function})" + ] + }, + "Groupbox:AddColorPicker": { + "prefix": "Groupbox:AddColorPicker", + "body": [ + "${1:Groupbox}:AddColorPicker({Index = ${2:UTI}, Default = {${3:r}, ${4:g}, ${5:b}}, Text = ${6:text}})" + ], + "description": "UTI = Unique Tool Index" + }, + "ColorPicker:OnChanged": { + "prefix": "ColorPicker:OnChanged", + "body": [ + "${1:ColorPicker}:OnChanged(${2:function})" + ] + }, + "ColorPicker:SetValue": { + "prefix": "ColorPicker:SetValue", + "body": [ + "${1:ColorPicker}:SetValue({${2:r}, ${3:g}, ${4:b}})" + ] + }, + "ColorPicker:Show": { + "prefix": "ColorPicker:Show", + "body": [ + "${1:ColorPicker}:Show()" + ] + }, + "ColorPicker:Hide": { + "prefix": "ColorPicker:Hide", + "body": [ + "${1:ColorPicker}:Hide()" + ] + }, + "Groupbox:AddToggle": { + "prefix": "Groupbox:AddToggle", + "body": [ + "${1:Groupbox}:AddToggle({Index = ${2:UTI}, default = ${3:bool}, Text = ${4:text}})" + ], + "description": "UTI = Unique Tool Index" + }, + "Toggle:OnChanged": { + "prefix": "Toggle:OnChanged", + "body": [ + "${1:Toggle}:OnChanged(${2:function})" + ] + }, + "Toggle:SetValue": { + "prefix": "Toggle:SetValue", + "body": [ + "${1:Toggle}:SetValue(${2:bool})" + ] + }, + "Groupbox:AddSlider": { + "prefix": "Groupbox:AddSlider", + "body": [ + "${1:Groupbox}:AddSlider({Index = ${2:UTI}, Default = ${3:int}, Text = ${4:text}, Min = ${5:int}, Max = ${6:int}, Suffix = {7:value}})" + ], + "description": "UTI = Unique Tool Index" + }, + "Slider:OnChanged": { + "prefix": "Slider:OnChanged", + "body": [ + "${1:Slider}:OnChanged(${function})" + ] + }, + "Slider:SetValue": { + "prefix": "Slider:SetValue", + "body": [ + "${1:Slider}:SetValue(${2:int})" + ] + }, + "Groupbox:AddDropdown": { + "prefix": "Groupbod:AddDropdown", + "body": [ + "${1:Groupbox}:AddDropdown()" + ] + }, + "Dropdown:SetValues": { + "prefix": "Dropdown:SetValues", + "body": [ + "${1:Dropdown}:SetValues(${2:table})" + ] + }, + "Dropdown:Show": { + "prefix": "Dropdown:Show", + "body": [ + "${1:Dropdown}:Show()" + ] + }, + "Dropdown:Hide": { + "prefix": "Dropdown:Hide", + "body": [ + "${1:Dropdown}:Hide()" + ] + }, + "Dropdown:OnChanged": { + "prefix": "Dropdown:OnChanged", + "body": [ + "${1:Dropdown}:OnChanged(${2:function})" + ] + }, + "Dropdown:SetValue": { + "prefix": "Dropdown:SetValue", + "body": [ + "${1:Dropdown}:SetValue(${2:value})" + ] + }, + "Groupbox:AddLabel": { + "prefix": "Groupbox:AddLabel", + "body": [ + "${1:Groupbox}:AddLabel(${2:text})" + ] + }, + "Groupbox:AddTitle": { + "prefix": "Groupbox:AddTitle", + "body": [ + "${1:Groupbox}:AddTitle(${2:text})" + ] + }, + "Groupbox:AddBlank": { + "prefix": "Groupbox:AddBlank", + "body": [ + "${1:Groupbox}:AddBlank(${2:soze})" + ] + }, + "Groupbox:AddBorder": { + "prefix": "Groupbox:AddBorder", + "body": [ + "${1:Groupbox}:AddBorder()" + ] } }