Pedro Gimeno
|
239d116d50
Remove redundant line (empty string is always true)
|
8 年之前 |
Pedro Gimeno
|
a2d3cfea25
Moved scroll bar handle size from the scroll values to the style.
|
8 年之前 |
Pedro Gimeno
|
95ef12c1e2
Fix mousein in update events
|
8 年之前 |
Pedro Gimeno
|
3500686e0b
Add "auto" as a possible handle size value.
|
8 年之前 |
Pedro Gimeno
|
e7655d5290
Add 'hs' (short for handle size) to scroll controls.
|
8 年之前 |
Pedro Gimeno
|
4b2b6ef3f2
Cosmetic whitespace changes
|
8 年之前 |
Pedro Gimeno
|
ad21b4ac56
Make scroll position better correlate to handle position.
|
8 年之前 |
Pedro Gimeno
|
b921329fa4
To ease maintainability, remove rdrag copy and point it to drag instead.
|
8 年之前 |
Pedro Gimeno
|
c7bbf8c020
Don't create unnecessary table
|
8 年之前 |
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.
|
8 年之前 |
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.
|
8 年之前 |
Pedro Gimeno
|
70aa96fe83
Simplify withinrect's returning method
|
8 年之前 |
Pedro Gimeno
|
cf083391c3
Fix off-by-one in rectangle detection
|
8 年之前 |
Pedro Gimeno
|
57d076a8c5
Font:getHeight() doesn't take an argument.
|
8 年之前 |
Pedro Gimeno
|
d4dd5ec548
Fix repeat/delay code, trying to keep compatibility.
|
8 年之前 |
Pedro Gimeno
|
80085091f9
Clip the scissor for controls rather than applying the scissor property directly. Should make it work with user-defined scissors.
|
8 年之前 |
Pedro Gimeno
|
b588edc196
Change drawing strategy of text input box, to keep the cursor always visible. Fixes issue #2.
|
8 年之前 |
Pedro Gimeno
|
a696045380
Minor style adjustment (else if -> elseif, and reformat that block)
|
8 年之前 |
Pedro Gimeno
|
bc35be7a71
Fix problem where invoking setshape on a shape obtained with element.shape could fail.
|
8 年之前 |
Pedro Gimeno
|
a45c8f425b
Avoid per-frame creation of two tables.
|
8 年之前 |
Pedro Gimeno
|
b63a61c40e
Avoid a square root
|
8 年之前 |
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.
|
8 年之前 |
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).
|
8 年之前 |
Pedro Gimeno
|
9fe9e31179
Take the setColor call out of the if's again, now that we've fixed drawimg().
|
8 年之前 |
Pedro Gimeno
|
f70810e598
Preserve current colour when calling drawimg.
|
8 年之前 |
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.
|
8 年之前 |
Pedro Gimeno
|
bc6a3d382d
Remove unnecessary shader, as the code was already setting the colour to 255,255,255,255 which is what 'replace' did.
|
8 年之前 |
Pedro Gimeno
|
bdc4a78a18
Round the coordinates rather than just flooring them, for better compatibility with 0.9.
|
8 年之前 |
Pedro Gimeno
|
610ee27773
Simplify version checking by putting all version bits into a single numeric variable.
|
8 年之前 |
Pedro Gimeno
|
5c6b4aa6b4
Fix problem in input, where changing the edited value externally made the cursor position unreliable (e.g. pressing left didn't react).
|
8 年之前 |