summaryrefslogtreecommitdiff
path: root/firealarm_annunciator
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-09-14 17:42:44 -0500
committercheapie <no-email-for-you@example.com>2024-09-14 17:42:44 -0500
commit70ab3cd06da8e8211536963e08680b664965335a (patch)
treeb0ccaee94b9397a2e3dd9baebc1972fbf8c66350 /firealarm_annunciator
parent4d417ddcb2be62e568ae3f11c58bcb156d5d6a35 (diff)
downloadfirealarm-70ab3cd06da8e8211536963e08680b664965335a.tar
firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar.gz
firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar.bz2
firealarm-70ab3cd06da8e8211536963e08680b664965335a.tar.xz
firealarm-70ab3cd06da8e8211536963e08680b664965335a.zip
Add luacheck configuration, migrate depends.txt to mod.conf, and some assorted cleanup
Diffstat (limited to 'firealarm_annunciator')
-rw-r--r--firealarm_annunciator/depends.txt2
-rw-r--r--firealarm_annunciator/init.lua61
-rw-r--r--firealarm_annunciator/mod.conf3
3 files changed, 43 insertions, 23 deletions
diff --git a/firealarm_annunciator/depends.txt b/firealarm_annunciator/depends.txt
deleted file mode 100644
index e8acc00..0000000
--- a/firealarm_annunciator/depends.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-firealarm_common
-firealarm_panel
diff --git a/firealarm_annunciator/init.lua b/firealarm_annunciator/init.lua
index 190b8d2..de43500 100644
--- a/firealarm_annunciator/init.lua
+++ b/firealarm_annunciator/init.lua
@@ -121,9 +121,11 @@ minetest.register_node(":firealarm:annunciator_alarm",{
"firealarm_panel_sides.png",
"firealarm_panel_sides.png",
{
- name = "[combine:64x128:0,0=firealarm_annunciator_front_normal.png:0,64=firealarm_annunciator_front_normal.png:0,64=firealarm_panel_led_alarm.png",
- animation =
- {
+ name = "[combine:64x128"..
+ ":0,0=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_panel_led_alarm.png",
+ animation = {
type = "vertical_frames",
aspect_w = 64,
aspect_h = 64,
@@ -161,9 +163,11 @@ minetest.register_node(":firealarm:annunciator_supervisory",{
"firealarm_panel_sides.png",
"firealarm_panel_sides.png",
{
- name = "[combine:64x128:0,0=firealarm_annunciator_front_normal.png:0,64=firealarm_annunciator_front_normal.png:0,64=firealarm_panel_led_supervisory.png",
- animation =
- {
+ name = "[combine:64x128"..
+ ":0,0=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_panel_led_supervisory.png",
+ animation = {
type = "vertical_frames",
aspect_w = 64,
aspect_h = 64,
@@ -201,9 +205,11 @@ minetest.register_node(":firealarm:annunciator_trouble",{
"firealarm_panel_sides.png",
"firealarm_panel_sides.png",
{
- name = "[combine:64x128:0,0=firealarm_annunciator_front_normal.png:0,64=firealarm_annunciator_front_normal.png:0,64=firealarm_panel_led_trouble.png",
- animation =
- {
+ name = "[combine:64x128"..
+ ":0,0=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_panel_led_trouble.png",
+ animation = {
type = "vertical_frames",
aspect_w = 64,
aspect_h = 64,
@@ -241,9 +247,12 @@ minetest.register_node(":firealarm:annunciator_alarm_trouble",{
"firealarm_panel_sides.png",
"firealarm_panel_sides.png",
{
- name = "[combine:64x128:0,0=firealarm_annunciator_front_normal.png:0,64=firealarm_annunciator_front_normal.png:0,64=firealarm_panel_led_alarm.png:0,64=firealarm_panel_led_trouble.png",
- animation =
- {
+ name = "[combine:64x128"..
+ ":0,0=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_panel_led_alarm.png"..
+ ":0,64=firealarm_panel_led_trouble.png",
+ animation = {
type = "vertical_frames",
aspect_w = 64,
aspect_h = 64,
@@ -281,9 +290,12 @@ minetest.register_node(":firealarm:annunciator_alarm_supervisory",{
"firealarm_panel_sides.png",
"firealarm_panel_sides.png",
{
- name = "[combine:64x128:0,0=firealarm_annunciator_front_normal.png:0,64=firealarm_annunciator_front_normal.png:0,64=firealarm_panel_led_alarm.png:0,64=firealarm_panel_led_supervisory.png",
- animation =
- {
+ name = "[combine:64x128"..
+ ":0,0=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_panel_led_alarm.png"..
+ ":0,64=firealarm_panel_led_supervisory.png",
+ animation = {
type = "vertical_frames",
aspect_w = 64,
aspect_h = 64,
@@ -321,9 +333,12 @@ minetest.register_node(":firealarm:annunciator_supervisory_trouble",{
"firealarm_panel_sides.png",
"firealarm_panel_sides.png",
{
- name = "[combine:64x128:0,0=firealarm_annunciator_front_normal.png:0,64=firealarm_annunciator_front_normal.png:0,64=firealarm_panel_led_supervisory.png:0,64=firealarm_panel_led_trouble.png",
- animation =
- {
+ name = "[combine:64x128"..
+ ":0,0=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_panel_led_supervisory.png"..
+ ":0,64=firealarm_panel_led_trouble.png",
+ animation = {
type = "vertical_frames",
aspect_w = 64,
aspect_h = 64,
@@ -361,9 +376,13 @@ minetest.register_node(":firealarm:annunciator_alarm_supervisory_trouble",{
"firealarm_panel_sides.png",
"firealarm_panel_sides.png",
{
- name = "[combine:64x128:0,0=firealarm_annunciator_front_normal.png:0,64=firealarm_annunciator_front_normal.png:0,64=firealarm_panel_led_alarm.png:0,64=firealarm_panel_led_supervisory.png:0,64=firealarm_panel_led_trouble.png",
- animation =
- {
+ name = "[combine:64x128"..
+ ":0,0=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_annunciator_front_normal.png"..
+ ":0,64=firealarm_panel_led_alarm.png"..
+ ":0,64=firealarm_panel_led_supervisory.png"..
+ ":0,64=firealarm_panel_led_trouble.png",
+ animation = {
type = "vertical_frames",
aspect_w = 64,
aspect_h = 64,
diff --git a/firealarm_annunciator/mod.conf b/firealarm_annunciator/mod.conf
new file mode 100644
index 0000000..9c9eb89
--- /dev/null
+++ b/firealarm_annunciator/mod.conf
@@ -0,0 +1,3 @@
+name = firealarm_annunciator
+depends = firealarm_common,firealarm_panel
+description = Annunciator