mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 23:13:02 +00:00
a few api functions for psc (#372)
This commit is contained in:
parent
b2a17a018d
commit
b88542f7d9
1 changed files with 14 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue