From 987cc5a6a425b1f9bcd9000608dc389a45c675a1 Mon Sep 17 00:00:00 2001
From: you <ovvv@web.de>
Date: Mon, 05 Jun 2017 16:51:59 +0200
Subject: [PATCH] Add api documentation (#361)

---
 technic/machines/register/machine_base.lua |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/technic/machines/register/machine_base.lua b/technic/machines/register/machine_base.lua
index 571622d..0c6a6b3 100644
--- a/technic/machines/register/machine_base.lua
+++ b/technic/machines/register/machine_base.lua
@@ -168,13 +168,13 @@
 			if not string.find(node.name, ":lv_") then
 				form_buttons = fs_helpers.cycling_button(
 					meta,
-					"image_button[0,4.3;1,0.6",
+					pipeworks.button_base,
 					"splitstacks",
 					{
-						{text="", texture="pipeworks_button_off.png", addopts="false;false;pipeworks_button_interm.png"},
-						{text="", texture="pipeworks_button_on.png",  addopts="false;false;pipeworks_button_interm.png"}
+						pipeworks.button_off,
+						pipeworks.button_on
 					}
-				).."label[0.9,4.31;Allow splitting incoming stacks from tubes]"
+				)..pipeworks.button_label
 			end
 
 			meta:set_string("infotext", machine_desc:format(tier))
@@ -202,13 +202,13 @@
 			if not string.find(node.name, ":lv_") then
 				form_buttons = fs_helpers.cycling_button(
 					meta,
-					"image_button[0,4.3;1,0.6",
+					pipeworks.button_base,
 					"splitstacks",
 					{
-						{text="", texture="pipeworks_button_off.png", addopts="false;false;pipeworks_button_interm.png"},
-						{text="", texture="pipeworks_button_on.png",  addopts="false;false;pipeworks_button_interm.png"}
+						pipeworks.button_off,
+						pipeworks.button_on
 					}
-				).."label[0.9,4.31;Allow splitting incoming stacks from tubes]"
+				)..pipeworks.button_label
 			end
 			meta:set_string("formspec", formspec..form_buttons)
 		end,
@@ -246,13 +246,13 @@
 			if not string.find(node.name, ":lv_") then
 				form_buttons = fs_helpers.cycling_button(
 					meta,
-					"image_button[0,4.3;1,0.6",
+					pipeworks.button_base,
 					"splitstacks",
 					{
-						{text="", texture="pipeworks_button_off.png", addopts="false;false;pipeworks_button_interm.png"},
-						{text="", texture="pipeworks_button_on.png",  addopts="false;false;pipeworks_button_interm.png"}
+						pipeworks.button_off,
+						pipeworks.button_on
 					}
-				).."label[0.9,4.31;Allow splitting incoming stacks from tubes]"
+				)..pipeworks.button_label
 			end
 			meta:set_string("formspec", formspec..form_buttons)
 		end,

--
Gitblit v1.8.0