Time |
Nick |
Message |
04:27 |
|
marktraceur joined #minetest-mods |
04:27 |
|
nyuszika7h joined #minetest-mods |
04:27 |
|
thexyz joined #minetest-mods |
04:27 |
|
ecube joined #minetest-mods |
04:27 |
|
triplei joined #minetest-mods |
04:27 |
|
Exio joined #minetest-mods |
04:31 |
|
xy joined #minetest-mods |
12:50 |
|
xy joined #minetest-mods |
13:55 |
|
berome joined #minetest-mods |
15:53 |
|
Jordach joined #minetest-mods |
15:53 |
|
Jordach joined #minetest-mods |
15:59 |
|
PilzAdam joined #minetest-mods |
16:31 |
|
rubenwardy joined #minetest-mods |
17:19 |
|
rubenwardy joined #minetest-mods |
17:46 |
|
Jordach joined #minetest-mods |
17:46 |
|
Jordach joined #minetest-mods |
17:52 |
|
triplei joined #minetest-mods |
18:15 |
|
Jordach joined #minetest-mods |
18:15 |
|
Jordach joined #minetest-mods |
18:21 |
|
berome joined #minetest-mods |
19:07 |
|
Jordach joined #minetest-mods |
19:07 |
|
Jordach joined #minetest-mods |
19:25 |
|
rubenwardy joined #minetest-mods |
19:57 |
|
jin_xi joined #minetest-mods |
19:58 |
jin_xi |
hey all, can i make a tool that opens a formspec when used with right click? |
19:58 |
PilzAdam |
yep |
19:59 |
jin_xi |
cool. is that a detached formspec then? |
19:59 |
PilzAdam |
but currently only when pointing at a node/object |
19:59 |
PilzAdam |
formspecs are not called "detached"; only inventories can be detached |
19:59 |
PilzAdam |
https://github.com/celeron55/minetest/blob/master/doc/lua_api.txt#L895 |
19:59 |
jin_xi |
so is it the tools or the node/object's formspec? |
20:00 |
PilzAdam |
whatever formspec you want |
20:00 |
jin_xi |
ok thanks |
20:01 |
berome |
_0/ |
20:02 |
jin_xi |
so i'd use minetest.show_formspec in on_use in the tools item definition? |
20:03 |
PilzAdam |
on_use() = leftclick; on_place() = rightclick |
20:03 |
PilzAdam |
(but on_place() currently only when pointing at something) |
20:03 |
jin_xi |
oh, i see thanks a lot again |
21:11 |
|
NakedFury joined #minetest-mods |
21:27 |
jin_xi |
ok, but how do i redisplay this formspec? |