Uluc Sengil
|
33124500d0
Added a input type to hide what is typed and a helper method to calculate number of utf8 characters in a string
|
8 years ago |
Pedro Gimeno
|
c82a6a6720
Change double quotes to single for consistency
|
8 years ago |
Pedro Gimeno
|
239d116d50
Remove redundant line (empty string is always true)
|
8 years ago |
Pedro Gimeno
|
a2d3cfea25
Moved scroll bar handle size from the scroll values to the style.
|
8 years ago |
Pedro Gimeno
|
95ef12c1e2
Fix mousein in update events
|
9 years ago |
Pedro Gimeno
|
3500686e0b
Add "auto" as a possible handle size value.
|
9 years ago |
Pedro Gimeno
|
e7655d5290
Add 'hs' (short for handle size) to scroll controls.
|
9 years ago |
Pedro Gimeno
|
4b2b6ef3f2
Cosmetic whitespace changes
|
9 years ago |
Pedro Gimeno
|
ad21b4ac56
Make scroll position better correlate to handle position.
|
9 years ago |
Pedro Gimeno
|
b921329fa4
To ease maintainability, remove rdrag copy and point it to drag instead.
|
9 years ago |
Pedro Gimeno
|
c7bbf8c020
Don't create unnecessary table
|
9 years ago |
Pedro Gimeno
|
1d67d38b9d
Calculate the new scrollgroup's dimensions *after* adding the child. Otherwise the last child added is not taken into account for the calculations.
|
9 years ago |
Pedro Gimeno
|
1ebb18cf6d
element:update() can remove an element (notably the feedback element removes itself on update()). This causes spurious mouse in/out events because of looping in the wrong direction. Fix by looping backwards in the update loop, also separating the mouse in/out loop to ensure the removed elements aren't considered.
|
9 years ago |
Pedro Gimeno
|
70aa96fe83
Simplify withinrect's returning method
|
9 years ago |
Pedro Gimeno
|
cf083391c3
Fix off-by-one in rectangle detection
|
9 years ago |
Pedro Gimeno
|
80aebc6086
Lock the label colour in the demo's checkbox, to demonstrate labelfg usage
|
9 years ago |
Pedro Gimeno
|
57d076a8c5
Font:getHeight() doesn't take an argument.
|
9 years ago |
Pedro Gimeno
|
d4dd5ec548
Fix repeat/delay code, trying to keep compatibility.
|
9 years ago |
Pedro Gimeno
|
80085091f9
Clip the scissor for controls rather than applying the scissor property directly. Should make it work with user-defined scissors.
|
9 years ago |
Pedro Gimeno
|
b588edc196
Change drawing strategy of text input box, to keep the cursor always visible. Fixes issue #2.
|
9 years ago |
Pedro Gimeno
|
a696045380
Minor style adjustment (else if -> elseif, and reformat that block)
|
9 years ago |
Pedro Gimeno
|
bc35be7a71
Fix problem where invoking setshape on a shape obtained with element.shape could fail.
|
9 years ago |
Pedro Gimeno
|
a45c8f425b
Avoid per-frame creation of two tables.
|
9 years ago |
Pedro Gimeno
|
b63a61c40e
Avoid a square root
|
9 years ago |
Pedro Gimeno
|
39f9da2b65
The first time love.graphics.print (and love.graphics.printf) is called, it changes its own value to point to a different function. To prevent caching the version that changes the value again and again, we call it with an empty string before caching it.
|
9 years ago |
Pedro Gimeno
|
f0029b3523
Fix MSAA for 0.10.0 in demo
|
9 years ago |
Pedro Gimeno
|
b0d1540c15
On second thought, remove support for imagemode. It was undocumented, and it's highly unlikely that anyone uses it to draw an image with combine mode (the only real use it has).
|
9 years ago |
Pedro Gimeno
|
9fe9e31179
Take the setColor call out of the if's again, now that we've fixed drawimg().
|
9 years ago |
Pedro Gimeno
|
f70810e598
Preserve current colour when calling drawimg.
|
9 years ago |
Pedro Gimeno
|
d08afe3182
Add new style property, labelfg, to render labels in a different colour to the rest of the text. For example, the label next to an input control may have a colour different to that inside the edit box.
|
9 years ago |