Add preview for Druid components, change the README component section
77
README.md
@ -1,5 +1,8 @@
|
|||||||
|
|
||||||
[](https://insality.github.io/druid/)
|
[](https://insality.github.io/druid/)
|
||||||
|
|
||||||
|
[](https://github.com/sponsors/insality) [](https://ko-fi.com/insality) [](https://www.buymeacoffee.com/insality)
|
||||||
|
|
||||||
[](https://github.com/Insality/druid/releases)
|
[](https://github.com/Insality/druid/releases)
|
||||||
[](https://github.com/Insality/druid/actions)
|
[](https://github.com/Insality/druid/actions)
|
||||||
[](https://codecov.io/gh/Insality/druid)
|
[](https://codecov.io/gh/Insality/druid)
|
||||||
@ -115,51 +118,36 @@ druid.on_window_callback(event)
|
|||||||
|
|
||||||
## Components
|
## Components
|
||||||
|
|
||||||
**Druid** provides the following *basic* components:
|
Here is full **Druid** components list:
|
||||||
|
|
||||||
- **[Button](docs_md/01-components.md#button)** - Basic Druid button input component. Handles all types of interactions (tap, long-tap, hold-tap, double-tap, simple key triggers, etc)
|
| Name | Description | API page | Example Link | Is Basic component[^1] | Preview |
|
||||||
|
|------|-------------|----------|------------|-------------|---------|
|
||||||
|
| **[Button](docs_md/01-components.md#button)** | Basic input component. Handles all types of interactions: click, long click, hold click, double click, etc | [Button API](https://insality.github.io/druid/modules/Button.html) | [Button Example](https://insality.github.io/druid/druid/?example=general_buttons) | ✅ | 
|
||||||
|
| **[Text](docs_md/01-components.md#text)** | Wrap on GUI text node, handle different text size adjusting, providing additional text API | [Text API](https://insality.github.io/druid/modules/Button.html) | [Text Example](https://insality.github.io/druid/druid/?example=texts_general) | ✅ | 
|
||||||
|
| **[Scroll](docs_md/01-components.md#scroll)** | Scroll component | [Scroll API](https://insality.github.io/druid/modules/Scroll.html) | [Scroll Example](https://insality.github.io/druid/druid/?example=general_scroll) | ✅ | 
|
||||||
|
| **[Blocker](docs_md/01-components.md#blocker)** | Block user input in node zone area | [Blocker API](https://insality.github.io/druid/modules/Blocker.html) | ❌ | ✅ | 
|
||||||
|
| **[Back Handler](docs_md/01-components.md#back-handler)** | Handle back button (Android back button, backspace key) | [Back Handler API](https://insality.github.io/druid/modules/BackHandler.html) | ❌ | ✅ | 
|
||||||
|
| **[Static Grid](docs_md/01-components.md#static-grid)** | Component to manage node positions with equal sizes | [Static Grid API](https://insality.github.io/druid/modules/StaticGrid.html) | [Static Gid Example](https://insality.github.io/druid/druid/?example=general_grid) | ✅ | 
|
||||||
|
| **[Hover](docs_md/01-components.md#hover)** | Handle hover node state on node | [Hover API](https://insality.github.io/druid/modules/Hover.html) | ❌ | ✅ | 
|
||||||
|
| **[Swipe](docs_md/01-components.md#swipe)** | Handle swipe gestures on node | [Swipe API](https://insality.github.io/druid/modules/Swipe.html) | [Swipe Example](https://insality.github.io/druid/druid/?example=general_swipe) | ✅ | 
|
||||||
|
| **[Drag](docs_md/01-components.md#drag)** | Handle drag input on node | [Drag API](https://insality.github.io/druid/modules/Drag.html) | [Drag Example](https://insality.github.io/druid/druid/?example=general_drag) | ✅ | 
|
||||||
|
| **[Checkbox](docs_md/01-components.md#checkbox)** | Checkbox component | [Checkbox API](https://insality.github.io/druid/modules/Checkbox.html) | [Checkbox Example](https://insality.github.io/druid/druid/?example=general_checkboxes) | ❌ | 
|
||||||
|
| **[Checkbox group](docs_md/01-components.md#checkbox-group)** | Several checkboxes in one group | [Checkbox group API](https://insality.github.io/druid/modules/CheckboxGroup.html) | [Checkbox group Example](https://insality.github.io/druid/druid/?example=general_checkboxes) | ❌ | 
|
||||||
|
| **[Radio group](docs_md/01-components.md#radio-group)** | Several checkboxes in one group with a single choice | [Radio group API](https://insality.github.io/druid/modules/RadioGroup.html) | [Radio Group Example](https://insality.github.io/druid/druid/?example=general_checkboxes) | ❌ | 
|
||||||
|
| **[Dynamic Grid](docs_md/01-components.md#dynamic-grid)** | Component to manage node positions with different sizes. Only in one row or column | [Dynamic Grid API](https://insality.github.io/druid/modules/DynamicGrid.html) | [Dynamic Grid Example](https://insality.github.io/druid/druid/?example=general_grid) | ❌ | 
|
||||||
|
| **[Data List](docs_md/01-components.md#data-list)** | Component to manage data for huge datasets in scroll | [Data List API](https://insality.github.io/druid/modules/DataList.html) | [Data List Example](https://insality.github.io/druid/druid/?example=general_data_list) | ❌ | 
|
||||||
|
| **[Input](docs_md/01-components.md#input)** | User text input component | [Input API](https://insality.github.io/druid/modules/Input.html) | [Input Example](https://insality.github.io/druid/druid/?example=general_input) | ❌ | 
|
||||||
|
| **[Lang text](docs_md/01-components.md#lang-text)** | Wrap on Text component to handle localization | [Lang Text API](https://insality.github.io/druid/modules/LangText.html) | ❌ | ❌ | 
|
||||||
|
| **[Progress](docs_md/01-components.md#progress)** | Progress bar component | [Progress API](https://insality.github.io/druid/modules/Progress.html) | [Progress Example](https://insality.github.io/druid/druid/?example=general_progress_bar) | ❌ | 
|
||||||
|
| **[Slider](docs_md/01-components.md#slider)** | Slider component | [Slider API](https://insality.github.io/druid/modules/Slider.html) | [Slider Example](https://insality.github.io/druid/druid/?example=general_sliders) | ❌ | 
|
||||||
|
| **[Timer](docs_md/01-components.md#timer)** | Handle timers on GUI text node | [Timer API](https://insality.github.io/druid/modules/Timer.html) | ❌ | ❌ | 
|
||||||
|
| **[Hotkey](docs_md/01-components.md#hotkey)** | Handle keyboard hotkeys with key modificators | [Hotkey API](https://insality.github.io/druid/modules/Hotkey.html) | [Hotkey Example](https://insality.github.io/druid/druid/?example=general_hokey) | ❌ | 
|
||||||
|
| **[Layout](docs_md/01-components.md#layout)** | Handle node size depends on layout mode and screen aspect ratio | [Layout API](https://insality.github.io/druid/modules/Layout.html) | [Layout Example](https://insality.github.io/druid/druid/?example=general_layout) | ❌ | 
|
||||||
|
|
||||||
- **[Text](docs_md/01-components.md#text)** - Basic Druid text component. Wrap on gui text node, handle text size adjusting.
|
For a complete overview, see: **_[components.md](docs_md/01-components.md)_**.
|
||||||
|
|
||||||
- **[Scroll](docs_md/01-components.md#scroll)** - Basic Druid scroll component
|
[^1]: Non basic components before use should be registered first to be included in build
|
||||||
|
|
||||||
- **[Blocker](docs_md/01-components.md#blocker)** - Block input in node zone component
|
|
||||||
|
|
||||||
- **[Back Handler](docs_md/01-components.md#back-handler)** - Handle back button (Android back button, backspace key)
|
|
||||||
|
|
||||||
- **[Static Grid](docs_md/01-components.md#static-grid)** - Component to manage node positions with equal sizes
|
|
||||||
|
|
||||||
- **[Hover](docs_md/01-components.md#hover)** - System Druid component, handle hover node state
|
|
||||||
|
|
||||||
- **[Swipe](docs_md/01-components.md#swipe)** - System Druid component, handle swipe gestures on node
|
|
||||||
|
|
||||||
- **[Drag](docs_md/01-components.md#drag)** - System Druid component, handle drag input on node
|
|
||||||
|
|
||||||
**Druid** also provides the following *extended* components:
|
|
||||||
|
|
||||||
***Note**: In the future, to use extended components, you should register them first. This is required to make **Druid** modular - to exclude unused components from builds*
|
|
||||||
|
|
||||||
- **[Checkbox](docs_md/01-components.md#checkbox)** - Checkbox component
|
|
||||||
|
|
||||||
- **[Checkbox group](docs_md/01-components.md#checkbox-group)** - Several checkboxes in one group
|
|
||||||
|
|
||||||
- **[Dynamic Grid](docs_md/01-components.md#dynamic-grid)** - Component to manage node positions with different sizes. Only in one row or column
|
|
||||||
|
|
||||||
- **[Data List](docs_md/01-components.md#data-list)** - Component to manage data for huge dataset in scroll
|
|
||||||
|
|
||||||
- **[Input](docs_md/01-components.md#input)** - User text input component
|
|
||||||
|
|
||||||
- **[Lang text](docs_md/01-components.md#lang-text)** - Wrap on Text component to handle localization
|
|
||||||
|
|
||||||
- **[Progress](docs_md/01-components.md#progress)** - Progress bar component
|
|
||||||
|
|
||||||
- **[Radio group](docs_md/01-components.md#radio-group)** - Several checkboxes in one group with a single choice
|
|
||||||
|
|
||||||
- **[Slider](docs_md/01-components.md#slider)** - Slider component
|
|
||||||
|
|
||||||
- **[Timer](docs_md/01-components.md#timer)** - Handle timer work on gui text node
|
|
||||||
|
|
||||||
For a complete overview, see: _[components.md](docs_md/01-components.md)_.
|
|
||||||
|
|
||||||
|
|
||||||
## Basic usage
|
## Basic usage
|
||||||
@ -285,3 +273,10 @@ https://insality.github.io/druid/
|
|||||||
## Issues and suggestions
|
## Issues and suggestions
|
||||||
|
|
||||||
If you have any issues, questions or suggestions please [create an issue](https://github.com/Insality/druid/issues) or contact me: [insality@gmail.com](mailto:insality@gmail.com)
|
If you have any issues, questions or suggestions please [create an issue](https://github.com/Insality/druid/issues) or contact me: [insality@gmail.com](mailto:insality@gmail.com)
|
||||||
|
|
||||||
|
|
||||||
|
## ❤️ Support project ❤️
|
||||||
|
|
||||||
|
Please support me if you like this project! It will help me keep engaged to update **Druid** and make it even better!
|
||||||
|
|
||||||
|
[](https://github.com/sponsors/insality) [](https://ko-fi.com/insality) [](https://www.buymeacoffee.com/insality)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[bootstrap]
|
[bootstrap]
|
||||||
main_collection = /test/test.collectionc
|
main_collection = /example/example.collectionc
|
||||||
|
|
||||||
[script]
|
[script]
|
||||||
shared_state = 1
|
shared_state = 1
|
||||||
|
BIN
media/preview/button.gif
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
media/preview/checkbox.gif
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
media/preview/checkbox_group.gif
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
media/preview/data_list.gif
Normal file
After Width: | Height: | Size: 258 KiB |
BIN
media/preview/drag.gif
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
media/preview/dynamic_grid.gif
Normal file
After Width: | Height: | Size: 110 KiB |
BIN
media/preview/hotkey.gif
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
media/preview/hover.gif
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
media/preview/input.gif
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
media/preview/lang_text.gif
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
media/preview/layout.gif
Normal file
After Width: | Height: | Size: 329 KiB |
BIN
media/preview/progress.gif
Normal file
After Width: | Height: | Size: 94 KiB |
BIN
media/preview/radio_group.gif
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
media/preview/scroll.gif
Normal file
After Width: | Height: | Size: 461 KiB |
BIN
media/preview/slider.gif
Normal file
After Width: | Height: | Size: 148 KiB |
BIN
media/preview/static_grid.gif
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
media/preview/swipe.gif
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
media/preview/text.gif
Normal file
After Width: | Height: | Size: 143 KiB |
BIN
media/preview/timer.gif
Normal file
After Width: | Height: | Size: 14 KiB |