diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 18:52:39 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 18:52:39 -0400 |
commit | 5e26aa5f91dafb16f62a43daa688a33b6216e0b6 (patch) | |
tree | 8d7b53dc3ca0f08494b81e68475de376b3573dd9 /compat-chests.lua | |
parent | a7c3908b6134b01e1447568d20e6801a373f1af8 (diff) |
cache on/off button image refs and commonly-used label for same
Diffstat (limited to 'compat-chests.lua')
-rw-r--r-- | compat-chests.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compat-chests.lua b/compat-chests.lua index c018f75..65fb407 100644 --- a/compat-chests.lua +++ b/compat-chests.lua @@ -27,10 +27,10 @@ local function update_chest_formspec(pos) "image_button[0,4.3;1,0.6", "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 meta:set_string("formspec", formspec) end @@ -94,10 +94,10 @@ local function setup_locked_formspec(pos, meta) "image_button[0,4.3;1,0.6", "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 |