Heya
This is a version of the basegame lakitushop which fixes its errors, and also adds a way to define its items in the editor.
And here's some code to make a custom custom coin counter which overrides the default one.
(Put it in your luna.lua file)
Download:
https://drive.google.com/file/d/14j4kfv ... sp=sharing
Credit is not required.
This is a version of the basegame lakitushop which fixes its errors, and also adds a way to define its items in the editor.
Spoiler: show
And here's some code to make a custom custom coin counter which overrides the default one.
(Put it in your luna.lua file)
Code:
-- make the shop use currencieslocal lakitushop = require("custom_lakitushop")lakitushop.defaultConfig.useCurrencies = truelocal hudoverride = require("hudoverride")local currencies = require("currencies")-- hide the default coin counterhudoverride.offsets.coins.value.y = hudoverride.offsets.coins.value.y - 50-- register the custom coin counter with limit 99999local coinCounter = currencies.registerCurrency(currencies.CURRENCY_COINS)coinCounter:registerLimit(99999, function() end)-- draw the coin counterfunction onDraw() local offset = hudoverride.offsets.coins Text.printWP(string.format("%.5d", coinCounter:getMoney()), 1,400 + offset.x + offset.value.x - 34,50 + offset.y + offset.value.y,hudoverride.priority)end
https://drive.google.com/file/d/14j4kfv ... sp=sharing
Credit is not required.
Statistics: Posted by Marioman2007 — Sat Feb 15, 2025 3:11 am