diff --git a/config.lua b/config.lua index 6e13efb..7c40d62 100644 --- a/config.lua +++ b/config.lua @@ -124,17 +124,6 @@ -- NOTE: Chest dropping is NYI in plethora 1.19, so do not use unless -- the output chest can be accessed }, - shopSync = { - enabled = false, - name = "Radon Shop", - description = "Shop for selling valuable items", - owner = "Allymonies", - location = { - coordinates = { 227, 70, -175 }, - description = "East of spawn, just passed the ISA", - dimension = "overworld" - } - }, exchange = { -- Not yet implemented enabled = true, diff --git a/radon.lua b/radon.lua index e394d43..e306329 100644 --- a/radon.lua +++ b/radon.lua @@ -1,7 +1,7 @@ local oldPullEvent = os.pullEvent os.pullEvent = os.pullEventRaw -local version = "1.1.4" +local version = "1.1.5" --- Imports local _ = require("util.score") @@ -277,12 +277,12 @@ local productPrice = Pricing.getProductPrice(product, props.shopState.selectedCurrency) if productTextSize == "large" then maxAddrWidth = math.max(maxAddrWidth, getWidth(productAddr, productTextSize)+2) - maxQtyWidth = math.max(maxQtyWidth, getWidth(tostring(product.quantity), productTextSize)+4) + maxQtyWidth = math.max(maxQtyWidth, getWidth(tostring(product.quantity), productTextSize)+4+2) maxPriceWidth = math.max(maxPriceWidth, getWidth(tostring(productPrice) .. currencySymbol, productTextSize)+2) maxNameWidth = math.max(maxNameWidth, getWidth(product.name, productTextSize)+2) elseif productTextSize == "medium" then maxAddrWidth = math.max(maxAddrWidth, getWidth(productAddr, productTextSize)+2) - maxQtyWidth = math.max(maxQtyWidth, getWidth(tostring(product.quantity), productTextSize)+4) + maxQtyWidth = math.max(maxQtyWidth, getWidth(tostring(product.quantity), productTextSize)+4+2) maxPriceWidth = math.max(maxPriceWidth, getWidth(tostring(productPrice) .. currencySymbol, productTextSize)+2) maxNameWidth = math.max(maxNameWidth, getWidth(product.name, productTextSize)+2) else @@ -495,7 +495,7 @@ if #props.config.currencies > 1 then for i = 1, #props.config.currencies do local symbol = getCurrencySymbol(props.config.currencies[i], "large") - local symbolSize = bigFont:getWidth(symbol)+6 + local symbolSize = bigFont:getWidth(symbol)+6+1 local bgColor = theme.colors.currencyBgColors[((i-1) % #theme.colors.currencyBgColors) + 1] table.insert(flatCanvas, Button { display = display,