Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newk5/decui-vscode
DecUI extension for visual studio code
https://github.com/newk5/decui-vscode
Last synced: about 1 month ago
JSON representation
DecUI extension for visual studio code
- Host: GitHub
- URL: https://github.com/newk5/decui-vscode
- Owner: newk5
- Created: 2019-06-12T14:01:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-22T00:56:01.000Z (over 3 years ago)
- Last Synced: 2024-10-31T17:44:31.534Z (3 months ago)
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# DecUI vscode extension
This is a vscode extension for the VCMP UI library [DecUI](https://github.com/newk5/decui). It contains many snippets that make it easier to do UI development in VCMP using the DecUI library. You need to have the Squirrel support extension installed for this extension to work. You can get it [here](https://marketplace.visualstudio.com/items?itemName=deldrid1.SquirrelLanguageExtension).
## Snippets
- **cp** - prints to the console: Console.Print("")
- **vec** - creates a new Vector
- **col** - creates a new Colour
- **vs** - creates a new VectorScreen
- **lbl** - creates a new GUILabel
- **btn** - creates a new GUIButton
- **prog** : creates a new GUIProgressBar
- **scroll** : creates a new GUIScrollbar
- **canv** : creates a new GUICanvas
- **spr** : creates a new GUISprite
- **tbl** : creates a new DataTable
- **lst** : creates a new GUIListbox
- **window** : creates a new GUIWindow
- **memo** : creates a new GUIMemobox
- **edt** : creates a new GUIEditbox
- **chk** : creates a new GUICheckbox
- **pop** : creates a new Popup
- **combo** : creates a new ComboBox
- **kb** : creates a new KeyBind
- **tabs** : creates a new Tabview
All of the snippets above for creating components have a variant where if you prepend "f" to any of them, it will instead output the code for fetching the component instead of creating the component.For example, using the **lbl** snippet will output:
```javascript
//creates a new label with id: newLabelID
UI.Label({
id = "newLabelID"
Text = "labelText"
})
```
Using **flbl** will output:
```javascript
//fetches an existing label with id: newLabelID
UI.Label("newLabelID")
```