From dbdf64605951aeb282734af2b3b6f5d9d07f6b62 Mon Sep 17 00:00:00 2001 From: PeachyPeach <72323920+PeachyPeachSM64@users.noreply.github.com> Date: Sun, 30 Apr 2023 14:46:47 +0200 Subject: [PATCH] a few api functions for psc (#372) --- mods/personal-starcount-ex.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mods/personal-starcount-ex.lua b/mods/personal-starcount-ex.lua index 9482677a..055c1987 100644 --- a/mods/personal-starcount-ex.lua +++ b/mods/personal-starcount-ex.lua @@ -169,3 +169,17 @@ end hook_event(HOOK_ON_INTERACT, localStarCounter) hook_event(HOOK_ON_HUD_RENDER, displayStarCounter) hook_chat_command('pstarcount', 'On|Off - Displays stars you"ve collected. Default is On.', PSToggle) + +_G.PersonalStarCounter = { + get_star_counter = function () + return StarCounter + end, + + get_total_star_counter = function () + return TotalStarCounter + end, + + hide_star_counters = function (hide) + if hide then psToggle = 0 else psToggle = 1 end + end, +}