-
Notifications
You must be signed in to change notification settings - Fork 1
Debug
GhostglowDev edited this page Mar 21, 2024
·
3 revisions
local dbg = require "ghostutil.debug"
-
logs
:Array<String> - Stores all the messages from debug.log -
ver
:Array<String> - Stores both version and stage of GhostUtil in a table -
version
:String - Current GhostUtil version -
stage
:String - Current GhostUtil stage -
checkForUpdates
:Bool - Show warnings when the current version of GhostUtil is outdated.
-
key
: 1 for version and 2 for stage
-
message
: The error message -
ifDebug
: Only prints the error ifluaDebugMode
is true (Default:true
)
function noteMiss()
dbg.error("You suck!", false)
end
-
message
: The warning message -
ifDebug
: Only prints the warning message ifluaDebugMode
is true (Default:true
)
function onGhostTap()
dbg.warning("Stop *Ghost* Tapping", false)
end
-- Ahah, get the joke? ok ill stop.
-
message
: Message to log -
ifDebug
: Only prints the log message ifluaDebugMode
is true (Default:true
)
function goodNoteHit()
dbg.log("You gud", false)
end
function opponentNoteHit()
debugPrint(dbg.logs())
end
Reading this wiki is recommended before using GhostUtil