Skip to content

Commit f422117

Browse files
committed
Update
1 parent 0d0581b commit f422117

File tree

10 files changed

+715
-732
lines changed

10 files changed

+715
-732
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Maxim Tuprikov
3+
Copyright (c) 2025 Maxim Tuprikov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ In this example you can inspect a variety of **Druid** components and see how th
2323
- **Input Handling** - Handles input in a stack-based manner and manage input priority
2424
- **Event Based** - Uses [Defold Event](https://github.com/Insality/defold-event) for components callbacks and communication between components
2525

26+
## Quick Links
27+
28+
- [Basic Usage](wiki/basic_usage.md)
29+
- [Quick API Reference](api/quick_api_reference.md)
30+
- [List of Components](#druid-components)
31+
- [Contributors](#contributors)
2632
## Setup
2733

2834
### [Dependency](https://defold.com/manuals/libraries/#setting-up-library-dependencies)
@@ -121,7 +127,7 @@ Here is full **Druid** components list.
121127
| **[Back Handler](/api/components/base/back_handler_api.md)** | Call callback on user "Back" action. It's a Android back button or keyboard backspace key | [Back Handler Example](https://insality.github.io/druid/?example=ui_example_basic_back_handler) | <img src="media/preview/back_handler.gif" width="200" height="100"> |
122128
| **[Static Grid](/api/components/base/static_grid_api.md)** | Logic over GUI Node. Component to manage node positions with all equal node sizes. | [Static Gid Example](https://insality.github.io/druid/?example=ui_example_basic_grid) | <img src="media/preview/static_grid.gif" width="200" height="100"> |
123129
| **[Hover](/api/components/base/hover_api.md)** | Logic over GUI Node. Handle hover action over node. For both: mobile touch and mouse cursor. | [Hover Example](https://insality.github.io/druid/?example=ui_example_basic_hover) | <img src="media/preview/hover.gif" width="200" height="100"> |
124-
| **[Swipe](/api/components/base/swipe_api.md)** | Logic over GUI Node. Handle swipe gestures over node. | [Swipe Example](https://insality.github.io/druid/?example=ui_example_basic_swipe) | <img src="media/preview/swipe.gif" width="200" height="100"> |
130+
| **[Swipe](/api/components/extended/swipe_api.md)** | Logic over GUI Node. Handle swipe gestures over node. | [Swipe Example](https://insality.github.io/druid/?example=ui_example_basic_swipe) | <img src="media/preview/swipe.gif" width="200" height="100"> |
125131
| **[Drag](/api/components/base/drag_api.md)** | Logic over GUI Node. Handle drag input actions. Can be useful to make on screen controlls. | [Drag Example](https://insality.github.io/druid/?example=ui_example_basic_drag) | <img src="media/preview/drag.gif" width="200" height="100"> |
126132
| **[Data List](/api/components/extended/data_list_api.md)** | Logic over Scroll and Grid components. Create only visible GUI nodes or components to make "infinity" scroll befaviour | [Data List Example](https://insality.github.io/druid/?example=ui_example_data_list_basic) | <img src="media/preview/data_list.gif" width="200" height="100"> |
127133
| **[Input](/api/components/extended/input_api.md)** | Logic over GUI Node and GUI Text (or Text component). Provides basic user text input. | [Input Example](https://insality.github.io/druid/?example=ui_example_basic_input) | <img src="media/preview/input.gif" width="200" height="100"> |
@@ -137,7 +143,7 @@ Here is full **Druid** components list.
137143

138144
## Druid Events
139145

140-
All **Druid** components using [Defold Event](https://github.com/Insality/defold-event) for components callbacks. In component API ([button example](https://insality.github.io/druid/modules/Button.html#on_click)) pointed list of component events. You can manually subscribe to these events with the following API:
146+
All **Druid** components using [Defold Event](https://github.com/Insality/defold-event) for components callbacks. In component API ([button example](/api/components/base/button_api.md#fields)) pointed list of component events. You can manually subscribe to these events with the following API:
141147

142148
- **event:subscribe**(callback)
143149

@@ -187,8 +193,10 @@ To better understand **Druid**, read the following documentation:
187193

188194
- [How To GUI in Defold](https://forum.defold.com/t/how-to-gui-in-defold/73256)
189195
- [Widgets](wiki/widgets.md)
190-
- [Create custom components](wiki/creating_custom_components.md)
191196
- [Druid styles](wiki/styles.md)
197+
- [Advanced Setup](wiki/advanced-setup.md)
198+
- [Optimize Druid Size](wiki/optimize_druid_size.md)
199+
- [Changelog](wiki/changelog.md)
192200

193201

194202
## Licenses
@@ -198,16 +206,16 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
198206

199207
## Issues and suggestions
200208

201-
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)
209+
If you have any issues, questions or suggestions please [create an issue](https://github.com/Insality/druid/issues)
202210

203211

204212
## History
205213
For a complete history of the development of **Druid**, please check the [changelog](docs_md/changelog.md).
206214

207215

208-
## 👏 Contributors
216+
## Contributors
209217

210-
Original idea by [AGulev](https://github.com/AGulev)
218+
Original Druid idea by [AGulev](https://github.com/AGulev)
211219

212220
Special thanks to all the contributors who have helped make **Druid** better!
213221

test/helper/mock_input.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,11 @@ function M.input_empty_action_nil(x, y)
5858
end
5959

6060

61+
function M.input_text(text)
62+
return hash("text"), {
63+
text = text,
64+
}
65+
end
66+
6167

6268
return M

test/helper/test_helper.lua

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)