Time |
Nick |
Message |
00:00 |
kilbith_ |
nephele: formspec syntax like what? give me examples |
00:00 |
Wuzzy |
how would formspec_escape magiacally now that a "<" is not starting a tag? |
00:00 |
rubenwardy |
oh wait |
00:00 |
rubenwardy |
I misunderstood |
00:00 |
nephele |
kilbith_, of how formspecs look? |
00:00 |
Wuzzy |
maybe kilbith_ is right, but this answer is irrelevant |
00:00 |
Wuzzy |
escaping is not written down in lua_api.txt, therefore it does not exist. |
00:00 |
kilbith_ |
nephele: yes |
00:01 |
kilbith_ |
"\" is an universal way of escaping chars |
00:01 |
kilbith_ |
you don't need the lua_api to teach you |
00:01 |
Wuzzy |
... |
00:02 |
nephele |
\ is C's escape char :) |
00:02 |
Wuzzy |
well, you guessed. and were lucky. could have been a different char. |
00:02 |
nephele |
kilbith_, you mean like function[options]function[options]? |
00:02 |
Wuzzy |
and in HTML, escaping "<" is done with that silly < |
00:03 |
kilbith_ |
nephele: so you literally want to put formspec-like elements inside hypertext[]? |
00:03 |
nephele |
I see no need to have a different hypertext context at all |
00:04 |
nephele |
but if you want one, then yes, formspec like elements |
00:04 |
Wuzzy |
yes. in other words, nephele want's to open Pandora's cube, releasing our greatest formspec nightmares |
00:05 |
nephele |
I fail to see how you are trying to build a metaphore to pandoras box, if you don't like the syntax of formspecs maybe you should just change the syntax instead |
00:05 |
Wuzzy |
ugh. i find syntax discussions to be so boring. |
00:06 |
nephele |
okay..? |
00:06 |
Wuzzy |
anyway, hypertext[] seems to work almost perfectly, according to my tests |
00:06 |
Wuzzy |
I have found one bug |
00:06 |
Wuzzy |
#9557 |
00:06 |
ShadowBot |
https://github.com/minetest/minetest/issues/9557 -- Hypertext: <global> color/hovercolor does not affect <action> links |
00:07 |
Wuzzy |
what i dislike about hypertext[] is that images expect absolute pixel sizes, instead of relative sizes like literally all other formspec elements |
00:07 |
kilbith_ |
no it's not possible |
00:08 |
kilbith_ |
we have gave an example on the initial PR |
00:09 |
Wuzzy |
hypertext even supports rotating item images. this is really interesting! |
00:09 |
Wuzzy |
but they only rotate if enabled by client setting |
00:09 |
kilbith_ |
Wuzzy: https://paste.ubuntu.com/p/Nf6XfXnSZX/ |
00:10 |
kilbith_ |
that should give you that: https://user-images.githubusercontent.com/7883281/61224239-842e6000-a71e-11e9-90d6-bef58e92bae2.png |
00:10 |
Wuzzy |
What is strange is that rotating images made it into hypertext, but item_image[] oddly does not support rotating images. |
00:11 |
|
el joined #minetest-dev |
00:13 |
kilbith_ |
Wuzzy: actioncolor, not hovercolor |
00:14 |
Wuzzy |
ugh |
00:14 |
Wuzzy |
another documentation fail then |
00:14 |
kilbith_ |
seems so |
00:15 |
Wuzzy |
but weird. why call it actioncolor for <global> when hovercolor works for <style>? |
00:15 |
Wuzzy |
this looks like an oversight |
00:16 |
kilbith_ |
did you check that actioncolor works? |
00:17 |
Wuzzy |
wait, did you tell a falsehood? |
00:18 |
kilbith_ |
well checked myself, it doesn't |
00:36 |
|
Ruslan1 joined #minetest-dev |
00:47 |
|
turok joined #minetest-dev |
00:50 |
|
Calinou joined #minetest-dev |
00:54 |
|
mmuller joined #minetest-dev |
02:22 |
|
kilbith joined #minetest-dev |
02:34 |
|
nephele_ joined #minetest-dev |
03:36 |
|
Ruslan1 joined #minetest-dev |
04:09 |
|
YuGiOhJCJ joined #minetest-dev |
05:09 |
|
Kimapr joined #minetest-dev |
08:11 |
|
Icedream joined #minetest-dev |
08:33 |
|
mizux joined #minetest-dev |
08:40 |
|
ShadowNinja joined #minetest-dev |
09:15 |
|
Beton joined #minetest-dev |
10:08 |
|
calcul0n joined #minetest-dev |
10:47 |
|
YuGiOhJCJ joined #minetest-dev |
11:09 |
|
mizux joined #minetest-dev |
12:42 |
|
Fixer joined #minetest-dev |
13:03 |
|
calcul0n joined #minetest-dev |
13:18 |
|
karamel joined #minetest-dev |
14:02 |
|
erlehmann joined #minetest-dev |
14:34 |
|
kilbith joined #minetest-dev |
14:40 |
|
kilbith_ joined #minetest-dev |
14:50 |
|
kilbith__ joined #minetest-dev |
15:35 |
|
Jdog joined #minetest-dev |
15:38 |
|
kilbith joined #minetest-dev |
16:08 |
|
ANAND joined #minetest-dev |
16:31 |
|
ANAND joined #minetest-dev |
16:36 |
|
JDCodeIt joined #minetest-dev |
17:06 |
|
kilbith joined #minetest-dev |
17:43 |
|
DS-minetest joined #minetest-dev |
17:52 |
|
Taoki joined #minetest-dev |
17:52 |
|
kilbith joined #minetest-dev |
18:32 |
|
DS-minetest_ joined #minetest-dev |
18:34 |
|
DS-minetest joined #minetest-dev |
19:06 |
|
Fixer_ joined #minetest-dev |
19:43 |
|
Kimapr_ joined #minetest-dev |
20:22 |
|
if_gaga0 joined #minetest-dev |
21:27 |
|
absurb joined #minetest-dev |
21:28 |
|
Taoki joined #minetest-dev |
21:32 |
|
Taoki joined #minetest-dev |
21:36 |
|
turok joined #minetest-dev |
23:58 |
|
Taoki joined #minetest-dev |