aboutsummaryrefslogtreecommitdiff
path: root/signs
diff options
context:
space:
mode:
Diffstat (limited to 'signs')
-rw-r--r--signs/common.lua34
-rw-r--r--signs/compatibility.lua29
-rw-r--r--signs/depends.txt3
-rw-r--r--signs/svg/poster.svg17
4 files changed, 40 insertions, 43 deletions
diff --git a/signs/common.lua b/signs/common.lua
index 2b40db2..733a44c 100644
--- a/signs/common.lua
+++ b/signs/common.lua
@@ -21,40 +21,6 @@
local S = signs.intllib
local F = function(...) return minetest.formspec_escape(S(...)) end
-
---Backwards compatibility functions
-
-signs.set_display_text = function(...)
- minetest.log("warning", "signs.set_display_text() is deprecated, please use signs_api.set_display_text() instead.")
- return signs_api.set_display_text(...)
-end
-
-signs.set_formspec = function(...)
- minetest.log("warning", "signs.set_formspec() is deprecated, please use signs_api.set_formspec() instead.")
- return signs_api.set_formspec(...)
-end
-
-signs.on_receive_fields = function(...)
- minetest.log("warning", "signs.on_receive_fields() is deprecated, please use signs_api.on_receive_fields() instead.")
- return signs_api.on_receive_fields(...)
-end
-
-signs.on_place_direction = function(...)
- minetest.log("warning", "signs.on_place_direction() is deprecated, please use signs_api.on_place_direction() instead.")
- return signs_api.on_place_direction(...)
-end
-
-signs.on_rotate = function(...)
- minetest.log("warning", "signs.on_rotate() is deprecated, please use signs_api.on_rotate() instead.")
- return signs_api.on_rotate(...)
-end
-
-signs.register_sign = function(...)
- minetest.log("warning", "signs.register_sign() is deprecated, please use signs_api.register_sign() instead.")
- return signs_api.register_sign(...)
-end
-
-
-- Generic callback for show_formspec displayed formspecs of "sign" mod
minetest.register_on_player_receive_fields(function(player, formname, fields)
diff --git a/signs/compatibility.lua b/signs/compatibility.lua
index e798a67..dea8750 100644
--- a/signs/compatibility.lua
+++ b/signs/compatibility.lua
@@ -23,7 +23,7 @@
------------------------------------
local wallmounted_to_facedir = {
- [0]=1, -- Should not happend with signs
+ [0]=1, -- Should not happend with signs
[1]=1, -- Should not happend with signs
[2]=1,
[3]=3,
@@ -84,7 +84,34 @@ minetest.register_lbm({ name = "signs:conpatibility_2",
action = compatibility_check_2,
})
+--Backwards compatibility API functions
+signs.set_display_text = function(...)
+ minetest.log("warning", "signs.set_display_text() is deprecated, please use signs_api.set_display_text() instead.")
+ return signs_api.set_display_text(...)
+end
+
+signs.set_formspec = function(...)
+ minetest.log("warning", "signs.set_formspec() is deprecated, please use signs_api.set_formspec() instead.")
+ return signs_api.set_formspec(...)
+end
+
+signs.on_receive_fields = function(...)
+ minetest.log("warning", "signs.on_receive_fields() is deprecated, please use signs_api.on_receive_fields() instead.")
+ return signs_api.on_receive_fields(...)
+end
+signs.on_place_direction = function(...)
+ minetest.log("warning", "signs.on_place_direction() is deprecated, please use signs_api.on_place_direction() instead.")
+ return signs_api.on_place_direction(...)
+end
+signs.on_rotate = function(...)
+ minetest.log("warning", "signs.on_rotate() is deprecated, please use signs_api.on_rotate() instead.")
+ return signs_api.on_rotate(...)
+end
+signs.register_sign = function(...)
+ minetest.log("warning", "signs.register_sign() is deprecated, please use signs_api.register_sign() instead.")
+ return signs_api.register_sign(...)
+end
diff --git a/signs/depends.txt b/signs/depends.txt
index ad3bb8f..aaf5bff 100644
--- a/signs/depends.txt
+++ b/signs/depends.txt
@@ -1,5 +1,6 @@
default
-intllib?
+dye
display_api
font_api
signs_api
+intllib?
diff --git a/signs/svg/poster.svg b/signs/svg/poster.svg
index f2388a8..cc9e8fd 100644
--- a/signs/svg/poster.svg
+++ b/signs/svg/poster.svg
@@ -75,15 +75,15 @@
inkscape:pageshadow="2"
inkscape:zoom="22.395604"
inkscape:cx="15.573035"
- inkscape:cy="16.977299"
+ inkscape:cy="16.910322"
inkscape:current-layer="layer2"
showgrid="true"
inkscape:grid-bbox="true"
inkscape:document-units="px"
- inkscape:window-width="785"
- inkscape:window-height="447"
- inkscape:window-x="2459"
- inkscape:window-y="340"
+ inkscape:window-width="1441"
+ inkscape:window-height="1038"
+ inkscape:window-x="2012"
+ inkscape:window-y="467"
inkscape:window-maximized="0"
showguides="true"
inkscape:guide-bbox="true"
@@ -197,7 +197,7 @@
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Label frame"
- style="display:inline">
+ style="display:none">
<rect
style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ff41c1;fill-opacity:0.41711228;fill-rule:nonzero;stroke:none;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
id="rect4585"
@@ -205,7 +205,10 @@
height="16"
x="8"
y="8"
- ry="0" />
+ ry="0"
+ inkscape:export-filename="/home/pyrollo/dev/minetest-mods/display_modpack/signs/textures/signs_label.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90" />
<rect
style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ff41c1;fill-opacity:0.41711228;fill-rule:nonzero;stroke:none;stroke-width:0.1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
id="rect4585-3"