Search found 52 matches

by HDPLocust
Thu Jul 04, 2019 8:17 am
Forum: Support and Development
Topic: rectangles in line mode
Replies: 3
Views: 2089

Re: rectangles in line mode

Also you can love.graphics.translate(.5, .5) before rendering stuff (except text, it nicely renders with round coords)
by HDPLocust
Mon May 27, 2019 9:34 am
Forum: Support and Development
Topic: Polygon render errors [v11.2] [SOLVED]
Replies: 4
Views: 2529

Re: Polygon render errors [v11.2]

TheHUG wrote:
Sun May 26, 2019 7:08 pm
Why do you want to avoid triangulation?
Yea, it sometimes can't triangulate, so I use meshes now.
by HDPLocust
Sun May 26, 2019 4:39 pm
Forum: Support and Development
Topic: Polygon render errors [v11.2] [SOLVED]
Replies: 4
Views: 2529

Re: Polygon render errors [v11.2]

zorg wrote:
Sun May 26, 2019 4:33 pm
So unless you make it so it's convex and simple from the get-go, you will always need to triangulate it.
Ah, my bad. But this is bad too, hmm.
by HDPLocust
Sun May 26, 2019 2:59 pm
Forum: Support and Development
Topic: Polygon render errors [v11.2] [SOLVED]
Replies: 4
Views: 2529

Polygon render errors [v11.2] [SOLVED]

Hmm, it like render error (with non-convex polygons), how it can be solved without triangulation? It's just this love.graphics.polygon('fill', polygon_table) -- every point tries to make triangle with first point in list -- and love.graphics.polygon('line', polygon_table) -- drawed correctly nothing...
by HDPLocust
Fri May 17, 2019 12:10 am
Forum: Support and Development
Topic: Android language
Replies: 6
Views: 2044

Re: Android language

You can use locale shell command, but no guarantees. It's ok, don't use it, just ask user about preferred language at first launch. It's better way, srsly.
by HDPLocust
Fri May 10, 2019 10:17 pm
Forum: Support and Development
Topic: How to send email via smtp?
Replies: 2
Views: 797

Re: How to send email via smtp?

Write ssl-wrapper around socket.smtp with luasec. Or use http-backend that sends mail and http requests.
Php example for backend

Code: Select all

<?php
	$message = file_get_contents('php://input');
	$message = wordwrap($message, 70, "\r\n");
	mail('[user]@[domain].com', 'message topic', $message);
	echo 'OK';
?>
by HDPLocust
Thu May 09, 2019 11:37 am
Forum: Libraries and Tools
Topic: Yet another state system
Replies: 9
Views: 4327

Re: Yet another state system

So. Now it have state-stack with overriding. I need to make the doc.
by HDPLocust
Thu May 09, 2019 6:57 am
Forum: Support and Development
Topic: implementing 9 slice in love2dcs?
Replies: 5
Views: 1169

Re: implementing 9 slice in love2dcs?

You need the nine-slice image and set of quads (for every slice), just scale quadded image to fit or quad:setViewPort (texture repeat mode) to repeat image patterns (it needs several slice-images for repeating).
by HDPLocust
Thu May 09, 2019 6:24 am
Forum: Support and Development
Topic: Looping through table inception
Replies: 2
Views: 1009

Re: Looping through table inception

Every ui element can contain list of child elements: function widget:update(dt) for i, v in ipairs(self.items) do if v.update then v:update(dt) end end end So if "v"-elements of items-list has look-like update function, it will "recursivelly" iterate all tree. Also if you add parent link to every ch...