Commit graph

139 commits

Author SHA1 Message Date
Matthias Richter
5d48cf97b8
Merge pull request #61 from endlesstravel/master
try fix 'Input widget will raise error when candidate_text field is not defined. ' bug
2017-10-31 12:55:11 +01:00
endlesstravel
12610bfe8f fix 'Input widget will raise error when candidate_text field is not defined' 2017-10-31 19:38:14 +08:00
Matthias Richter
6b302f777c
Merge pull request #49 from endlesstravel/master
add little IME support
2017-10-28 11:58:08 +02:00
Yx
02c4c05a0d Merge branch 'master' into master 2017-09-23 09:46:18 +08:00
Matthias Richter
ecce6820d7 Add missing images to documentation 2017-04-13 21:39:22 +02:00
Matthias Richter
c0943eae16 Add widget state setter, fi-lo drawing order. 2017-04-13 21:30:45 +02:00
Matthias Richter
6cb5596437 Add section about widget ids in getting started guide 2017-04-13 21:23:52 +02:00
Matthias Richter
61a4172edd Merge pull request #50 from Fuzzlix/patch-1
fixed typo in widgets.rst
2017-03-16 20:29:56 +01:00
Matthias Richter
d12ffe9295 Remove unneeded local 2017-03-16 20:29:04 +01:00
Matthias Richter
727c925f1b Merge pull request #47 from codecat/force-focus-input
Add a force focus input option to text inputs
2017-03-16 20:22:35 +01:00
Matthias Richter
3899e6435f Merge pull request #46 from Alloyed/fix-up-left-cells
Fix up/left() cells
2017-03-16 20:21:53 +01:00
Ulrich Schmidt
372d704184 Update widgets.rst 2016-11-07 07:59:30 +01:00
endlesstravel
6960a80eaa Revert "update to master"
This reverts commit 10e79ca5c8.
2016-11-06 15:26:19 +08:00
endlesstravel
10e79ca5c8 update to master 2016-11-06 15:18:02 +08:00
endlesstravel
4638fb1ea5 add ime support 2016-11-06 15:06:58 +08:00
Angelo Geels
2830edc52e Rename to forcefocus 2016-10-23 13:36:50 +02:00
Angelo Geels
1b67db0487 Add force bool to input to force focus on first draw 2016-10-23 13:34:31 +02:00
Kyle McLamb
ef317657ca Document layout:up/down/left/right()
Consolation prize.
2016-10-04 17:41:35 -07:00
Kyle McLamb
0084ccba2e Remove nextUp() and nextLeft()
We need the expected size of the new cell to do it correctly, and that
would introduce an inconsistency between up/left and the existing row/col
functions.
2016-10-04 17:41:35 -07:00
Kyle McLamb
a4ebbc2679 Fix bug with layout left()/up()
When moving down/right, we use the old cell size because we are moving
the start point outside of the existing cell. When we go up/right, we
are doing actually doing the inverse operation, moving backwards using
the new cell size. We still check to see if there's an old cell because
up()/down()/left()/right() should behave the same for the first cell.
2016-10-04 17:41:35 -07:00
Matthias Richter
549693dd38 Document new GUI state getters 2016-08-28 19:20:49 +02:00
Matthias Richter
c66bbe9065 Fix #34: Add [is,any][Hit,Active,Hovered]() 2016-08-28 19:16:29 +02:00
Matthias Richter
1d6626e6f4 Fix #43 by enforcing minimum size on box drawing 2016-08-28 18:33:40 +02:00
vrld
046233fc5f Merge pull request #45 from Alloyed/fix-layout-pop
Fix layout:pop() to actually pop off of the stack
2016-08-28 18:13:52 +02:00
vrld
fe09c10d16 Merge pull request #42 from Alloyed/add-up-left-cells
Add Layout:up/down/left/right()
2016-08-28 18:12:24 +02:00
Kyle McLamb
ec361de482 Fix layout:pop() to actually pop off of the stack 2016-08-27 10:19:07 -04:00
Kyle McLamb
b19f0a3bff Add Layout:up/down/left/right()
up() places the next cell above the previous one, and left() places the
next cell to the left of the previous one. down() and right() are
aliases to row()/col(), for symmetry.

Also added are nextX() variants for function.
2016-08-08 13:22:07 -04:00
vrld
e64a822de8 Merge pull request #39 from texm/master
Ensure char is valid
2016-07-06 14:56:11 +02:00
vrld
9d184831e2 Merge pull request #38 from endlesstravel/master
fix bug when input more than one character.
2016-07-06 14:55:43 +02:00
tex
1b374b41cf Ensure char is valid
Fixes an error which could occur if an input's state was set to active without user interaction
2016-07-03 20:29:09 +08:00
endlesstravel
3171286c1f fix bug when input more than one character. 2016-06-01 19:06:45 +08:00
Matthias Richter
3fd6a6aecd Fix #33: tinted image buttons
Not a bug, but a feature---now documented!
2016-04-17 21:09:24 +02:00
Matthias Richter
10767cca33 Fix wrong padding in nested layouts
Previoysly, padding was added before adding a cell, which lead to
incorrect and unaligned cell placement in nested layouts.
Now padding is only added when at least one cell has been placed before.
2016-04-17 21:00:45 +02:00
vrld
5bba68071d Fix #35: Error in layout documentation example, cont.
Gotta catch them all
2016-04-12 10:52:46 +02:00
vrld
83e9131e25 Fix #35: Error in layout documentation example 2016-04-12 10:51:40 +02:00
Matthias Richter
cb93f4e48e Do not leak graphics state from .draw() 2016-03-13 13:30:27 +01:00
Matthias Richter
d0a1addc0b Move full state reset to enterFrame 2016-03-13 13:26:07 +01:00
Matthias Richter
c65c67cc63 Coding style changes 2016-03-13 13:24:39 +01:00
Matthias Richter
f9ee40d53d Patch #27: Cursor disappears when filling the input box 2016-03-13 13:22:51 +01:00
vrld
633c2a58cc Merge pull request #31 from rm-code/patch-1
Remove unused variable
2016-03-13 13:14:28 +01:00
vrld
0947b08ff7 Merge pull request #30 from tesselode/override-radius
Add more options to override theme properties
2016-03-13 13:13:57 +01:00
vrld
5a6da54467 Merge pull request #29 from tesselode/input-colors-fix
Fix an error when overriding the colors of an input widget
2016-03-13 13:12:46 +01:00
Robert Machmer
f4c8e9b393 Remove unused variable 2016-03-13 10:22:12 +01:00
Andrew Minnich
a4779092c1 Fix an error when overriding the colors of an input widget 2016-03-05 16:44:16 -05:00
Andrew Minnich
01f7cd88fb Add cornerRadius option to override theme corner radius 2016-03-05 16:20:43 -05:00
Andrew Minnich
5298f31d06 Have theme.drawBox take options argument
It can optionally still take a colors argument.
2016-03-05 16:13:04 -05:00
Matthias Richter
f02976d969 Remove debug printout in layout.lua 2016-01-16 03:09:36 +01:00
Matthias Richter
b37c35dc0a Add (not perfect) mouse interaction to input widget 2016-01-16 02:53:11 +01:00
Matthias Richter
4ac0f37097 Tweak theme: Larger space between checkbox and label 2016-01-16 02:35:12 +01:00
Matthias Richter
4f3d285218 Allow to overwrite draw function per widget 2016-01-16 02:33:41 +01:00