Push latest changes
This commit is contained in:
parent
aa26ff7406
commit
17262bdaf0
2 changed files with 154 additions and 16 deletions
|
@ -59,4 +59,44 @@ SetMenuPrompt(string sMenu, string sPromptText) {
|
|||
|
||||
showMenu(key kID, string sMenu, integer iPage) {
|
||||
llMessageLinked(LINK_SET, LINK_SIGNAL_SHOW_MENU, llList2Json(JSON_OBJECT, ["menu", sMenu, "page", iPage]), kID);
|
||||
}
|
||||
|
||||
integer g_iDebugIndent=0;
|
||||
DEBUG_FUNC(integer iEnter, string sLabel, list lParams) {
|
||||
if(iEnter){
|
||||
llOwnerSay(MakeIndent() + "ENTER " + sLabel + " [" + llList2CSV(lParams) + "]");
|
||||
g_iDebugIndent++;
|
||||
} else {
|
||||
g_iDebugIndent --;
|
||||
if(g_iDebugIndent<0)g_iDebugIndent=0;
|
||||
|
||||
llOwnerSay(MakeIndent() + "LEAVE " + sLabel + " [" + llList2CSV(lParams) + "]");
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG_STMT(integer iEnter, string sLabel) {
|
||||
if(iEnter) {
|
||||
llOwnerSay(MakeIndent() + "STMT " + sLabel);
|
||||
g_iDebugIndent ++;
|
||||
}else {
|
||||
g_iDebugIndent--;
|
||||
if(g_iDebugIndent<0)g_iDebugIndent=0;
|
||||
|
||||
llOwnerSay(MakeIndent() + "RET " + sLabel);
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(string sMsg) {
|
||||
llOwnerSay(MakeIndent() + " > " + sMsg);
|
||||
}
|
||||
|
||||
string MakeIndent()
|
||||
{
|
||||
integer i = 0;
|
||||
string sIndent = "";
|
||||
for(i = 0;i<g_iDebugIndent;i++){
|
||||
sIndent += " ";
|
||||
}
|
||||
|
||||
return "[" + llGetScriptName() + "] " + sIndent;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue