Commit graph

16 commits

Author SHA1 Message Date
Matthias Richter
66a089a07f Fix bug in input.lua, make 0.9-ready, add utf8 editing
1) [input.lua] Pressing backspace while the cursor was at the beggining
   of the text removed the first character. Fixed thanks to riidom.
2) [LÖVE 0.9] Use setLine(Width|Style) instead of setLine. Split
   keyboard.pressed() into keyboard.pressed() and keyboard.textinput().
   (see readme)
3) [utf8.lua] Add support for UTF-8 text editing. May still fail
   spectacurlarly with invalid UTF-8 strings.
2013-12-11 15:25:06 +01:00
Matthias Richter
935c91f042 Fix #9: Default input style and the scissor state.
Better late than never - thanks Boolsheet!
2013-11-04 21:51:23 +01:00
hryx
54f9222990 Default Input style handles long text better
Changes to default-style.lua:
Prevent text from being drawn past bounding box via love.graphics.setScissor().
The cursor and surrounding text are kept in visible range by calculating a draw offset.
2013-03-29 19:01:59 -07:00
hryx
5827cd2527 Only show Input cursor when selected
Previously all Inputs would show the text cursor, which looks odd and makes
it harder for the user to see which one is selected.
2013-03-25 23:49:17 -07:00
hryx
c911165c41 Tweak Slider style
Made a marginally simpler & more readable Slider draw routine using rectangles instead of lines.
Also the ends of the slider "track" are capped now. I split this commit in case a rollback is desired.
2013-03-25 23:37:09 -07:00
hryx
ddd4791e8c Fix vertical Slider
Slider, when vertical, was drawing the grab box with inverted position. Center "track" had incorrect orientation.

Also, slider.lua was passing a bunk table to group.getRect().
2013-03-25 23:15:50 -07:00
Matthias Richter
84ac3c2782 Cleanup default style 2013-01-23 12:39:39 +01:00
Matthias Richter
fed243a8af Slick default style 2012-05-09 21:29:02 +02:00
Matthias Richter
44005d0f2c remove unused parameter 2012-04-12 00:53:52 +02:00
Matthias Richter
dff80a6942 Add license header. 2012-03-29 13:55:56 +02:00
Matthias Richter
6de65888dc Externalize widget hit test to style definition. 2012-03-14 16:19:46 +01:00
Matthias Richter
154c93e0f2 Fix file permissions 2012-02-22 22:56:10 +01:00
mkosler
d51babb366 Merge branch 'master' of git://github.com/vrld/Quickie.git 2012-02-21 12:50:21 -06:00
mkosler
541145560a Added ability to change controls for tabbable with hacky LOVE quirks. 2012-02-21 12:30:42 -06:00
Matthias Richter
77674a4830 Remove widget shadow when hot/active. 2012-02-21 14:48:20 +01:00
Matthias Richter
40dbc7134b Initial commit 2012-02-07 23:10:29 +01:00