From 48f142accc1ad233ebeee7152889ad772dd82285 Mon Sep 17 00:00:00 2001 From: Anavrins Date: Wed, 29 Jan 2020 23:14:38 -0500 Subject: [PATCH] swshop helpfile and updates --- swshop/.package | 3 +++ swshop/Shoplogs.lua | 2 +- swshop/help/swshop | 25 +++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 swshop/help/swshop diff --git a/swshop/.package b/swshop/.package index efb46ed..afeb083 100644 --- a/swshop/.package +++ b/swshop/.package @@ -1,4 +1,7 @@ { + required = { + 'milo', + }, title = 'Switchcraft basic shop', repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/swshop', description = 'Modification of the k store by Lemmmy\nRun installPlugin.lua after install', diff --git a/swshop/Shoplogs.lua b/swshop/Shoplogs.lua index 2eb605e..5766b08 100644 --- a/swshop/Shoplogs.lua +++ b/swshop/Shoplogs.lua @@ -141,7 +141,7 @@ end function page.grid:getDisplayValues(row) row = Util.shallowCopy(row) local x = row.recipient - row.from = x and x:match('(%w+)@') or row.from + row.from = x and x:match('(.+)@') or row.from return row end diff --git a/swshop/help/swshop b/swshop/help/swshop new file mode 100644 index 0000000..5fc1804 --- /dev/null +++ b/swshop/help/swshop @@ -0,0 +1,25 @@ +An item shop software using Krist as its currency. + +Requirements +============ + * Advanced Turtle + * Chests (any type) + * Milo system + +Installation +============ +> pastebin run uzghlbnc +> package install swshop +> reboot + +Setup +===== +From the shell, run the 'installPlugin.lua' once to install the shop component into your Milo installation. + +From Milo, open the setup page and find the monitor you wish to use in the list. + +Choose the monitor's type to be 'Store Front', and configure your domain and your wallet's key. + +Usage +===== +Setup prices by right-clicking on the desired item and going on the 'Shops' tab.