Commit graph

147 commits

Author SHA1 Message Date
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
Matthias Richter
18880de088 Actually revert changes in :push() (commit 09a4583) 2016-01-16 02:26:05 +01:00
Matthias Richter
62b31ac719 Move computation of text offset from theme to input widget 2016-01-16 02:16:52 +01:00
Matthias Richter
09a458386c Revert change in :push(), remove :pos()
Revert signature if layout:push(x,y, padx,pady) to layout:push(x,y)
Makes it possible to use the idiomatic layout:push(layout:row()) again.
(layout:row() returns x,y, w,h of last cell)

Remove layout:pos([x,y]) because it's not needed and potentially confusing.
2016-01-16 02:08:36 +01:00
Matthias Richter
86cae4c03b Document changes 2016-01-12 21:49:21 +01:00
Matthias Richter
36c446cdcc Code cleanup, fix edge cases 2016-01-12 21:49:12 +01:00
Matthias Richter
fb7bed76f6 Add helper for nested layouts 2016-01-12 21:12:40 +01:00
Matthias Richter
946099e93d Fix mouse in rectangle test 2016-01-03 19:15:57 +01:00
Matthias Richter
cd88aa2008 Update readme 2016-01-03 18:52:41 +01:00
Matthias Richter
b0b2e6561d Fix #25 - Throw error when trying to construct an empty cell. 2016-01-03 18:47:52 +01:00
Matthias Richter
aca8a297bb Fix #17: Support multiple instances 2016-01-03 18:33:39 +01:00
vrld
f77ab8e5e8 Merge pull request #24 from WetDesertRock/patch-1
Better mobile integration (allows text input)
2016-01-03 14:52:36 +01:00
vrld
0992d70b62 Merge pull request #23 from Yonaba/patch-1
Fixed typo
2016-01-03 14:23:48 +01:00
WetDesertRock
315c250ffb Better mobile integration (allows text input) 2016-01-02 22:41:04 -08:00
Roland
4f03acff2f Fixed typo 2016-01-02 19:10:05 +00:00
Matthias Richter
2b63a81c87 Add images to documentation 2016-01-02 15:37:04 +01:00
Matthias Richter
1f0c54afc7 Fix bug when trying to delete a char of an empty string 2016-01-02 15:35:31 +01:00
Matthias Richter
2ae96a5950 Fix line styles in input box 2016-01-02 14:45:16 +01:00
Matthias Richter
0fc2437a65 API consistency 2016-01-02 14:40:17 +01:00
Matthias Richter
c1f2d96c02 nicer demo app 2016-01-02 14:39:54 +01:00
Matthias Richter
5b3c05a415 Fix headings 2016-01-02 14:39:33 +01:00
Matthias Richter
036e2bfe0e code cleanup 2016-01-02 14:38:15 +01:00
Matthias Richter
dc967192b7 Nicer theme 2016-01-02 14:36:00 +01:00
Matthias Richter
59f3ca741f Rework intro and tutorial. 2016-01-02 02:55:17 +01:00
vrld
84eb1ef804 Comment hello world example 2016-01-02 01:13:28 +01:00
Matthias Richter
1b94aa8171 Fix utf-8 input 2016-01-01 22:05:11 +01:00
Matthias Richter
b37f1ebd0a Make readme point to the docs 2016-01-01 21:43:08 +01:00
Matthias Richter
1dc24f9108 Add documentation 2016-01-01 21:42:03 +01:00
Matthias Richter
652291c175 Correct license header 2016-01-01 21:38:20 +01:00
Matthias Richter
eb65a0541e Remove unused function 2016-01-01 21:37:10 +01:00
Matthias Richter
0dfc45d0f8 Remove unused parameters 2016-01-01 21:36:58 +01:00
Matthias Richter
0af9460410 Expose padding function 2016-01-01 21:36:43 +01:00
Matthias Richter
b5137a4477 LET THERE BE SUIT! 2015-12-31 18:23:52 +01:00
Stevie
44be6169e3 Fix missing 'and' in demo (per #19) 2015-10-03 11:59:09 -07:00
vrld
4eadfee6f4 Merge pull request #13 from ficoos/mouse_override
Allow overriding of the mouse position getter.
2014-06-03 14:12:12 +02:00
Saggi Mizrahi
944a250ec5 Allow overriding of the mouse position getter.
Useful if the ui is positioned behind the camera as opposed as in front
of it.

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>
2014-05-10 19:11:23 +03:00
hryx
52d06037d1 Added utf8.encode
Here's a function that takes a Unicode code point and returns the corresponding UTF-8 encoded character bytes. Example:

    utf8.encode(0x265c) -- returns '♜'

Please feel free to edit or revert if it's not your style. It might not be relevant to Quickie, though it's a handy UTF-8 utility.
2013-12-31 04:37:04 -08:00
Matthias Richter
b63895a2c7 [utf8.la] Add license, documentation. 2013-12-11 15:55:28 +01:00
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
ffd187dc17 Fix #11: Right click support.
When clicked, Button() and Input() return the respective mouse button
constant ('l', 'r', 'm') instead of just true.
When activated by keyboard, Button() and Input() return 'return'.
Otherwise Button() and Input() return false.
2013-11-04 21:52:36 +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
Matthias Richter
63124bd1fa Remove save_(un)pack 2013-04-08 15:52:20 +02: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