26 Commits

Author SHA1 Message Date
Insality
05dd08b149 cherry-pick update checkbox_group 2019-09-26 09:02:20 +03:00
Insality
2d3ef5f6c3 cherry-pick checkbox_group component 2019-09-26 09:01:46 +03:00
Insality
27e0397e6b cherry-pick simple-checkbox component 2019-09-26 09:00:58 +03:00
Alexey Gulev
4ce8e85d15 Refactoring: step 1
druid.lua:
- `factory` replaced with `self`
- set new name for metatable
- replaced `ipairs` with `for `i loop

data.lua:
- renamed custom messages
2019-08-04 22:15:22 +02:00
Insality
33c36f4967 fix: don't cancel gui.animate on touch pressed. It leads to some problems. Inert scroll still can be stopped by touch 2019-04-23 23:58:04 +03:00
Insality
80e2392d24 fix: Now you can scroll only one scroll by one (without input race). Removed local scroll param.
case: Double scroll at one place, start scrolling on one direction, you can scroll another scroll on top of first scroll
2019-04-23 23:40:06 +03:00
Insality
08eae3800c rename instance to self, update example 2019-04-07 15:19:39 +03:00
Insality
636df146c9 grid: add clear function, add grid anchoring and correct posing
update examples
2019-04-07 15:16:18 +03:00
Insality
263197eb8d disable scroll if scroll zone <= items zone 2019-04-07 15:14:06 +03:00
Insality
82b15243fc Can setup additional zone to check button click 2019-04-07 12:14:43 +03:00
Maxim Tuprikov
19a9d27635
Feature/scroll (#22)
* base scroll implementation

* add scroll collection example
mofidy scrolls, fix callback calls

* unhover button if start swipe
notify input components on swipe

* add node center offset, calc by pivots
modify with with node center scroll (to correct scroll to point)

* Refactor, add some docs

* fix: set_pos on end on scroll

* add gui.animate speed in settings
2019-04-07 12:10:16 +03:00
Maxim Tuprikov
bd2c06d81b
basic implementation of grid (#19)
* basic implementation of grid

* add dirty example of grid
2019-04-04 23:10:03 +03:00
Maxim Tuprikov
d49cd2777e
Feature/progress (#17)
* improve example gui. Add simple pages

* return old progress bar with example

* base progress with steps, there is bug with step? 1 ~= 1, small delta?

* polish progress, check float error case

* add callback on end of "to" function, value check

* start of green/red in progress

* add first version of rich progress bar

* make green bar darker

* rich bar fixes

* add delay, before filling in rich progress

* PR fixes

* remove dublicate of 'progress_rich'
2019-04-03 23:23:06 +03:00
Insality
c80ea35060 dont activate button, if disabled 2019-03-30 17:16:51 +03:00
Maxim Tuprikov
8be103111b
can setup text max width (#14) 2019-03-30 01:01:24 +03:00
Insality
e6ac9e5725 fix android back params 2019-03-29 09:51:11 +03:00
Maxim Tuprikov
7395f029e0
move settings node from factory to component (#8) 2019-03-29 00:51:37 +03:00
Maxim Tuprikov
12f5f22b69
check project code style. add .luacheckrc (#7) 2019-03-29 00:45:46 +03:00
Maxim Tuprikov
5e2dc34437
add android_back component (#5) 2019-03-27 22:23:22 +03:00
Maxim Tuprikov
5709975ed4
add text component (#4) 2019-03-27 22:20:50 +03:00
Maxim Tuprikov
3996ba4b04
Feature/timer (#3)
* add timer component

* remov old components folder
2019-03-27 22:19:47 +03:00
Insality
349f73c515 play sound example. Setup via settings 2019-03-27 09:41:13 +03:00
Insality
5f2541c757 refactor button, add factory settings 2019-03-27 09:09:49 +03:00
Insality
e4c8b65cc1 rename help_modules to helper 2019-03-27 09:09:05 +03:00
Insality
a0a171df55 dirty button changes. Hover animations. Call button, if only touch start and ended on this button 2019-03-27 01:11:33 +03:00
Insality
c894c16ed9 remove components from main factory 2019-03-27 00:45:56 +03:00