Fix the grab leash button not showing for others
This commit is contained in:
parent
8b325653ca
commit
d9ba708f86
2 changed files with 15 additions and 14 deletions
|
@ -69,16 +69,25 @@ call_menu(integer id, key kAv)
|
|||
|
||||
Main(key kID, integer iAuth)
|
||||
{
|
||||
list lMenu = ["main..", "Length", Checkbox(g_iTurn, "Turn2Leasher"), "Post", "Tools..", "Color"];
|
||||
if(kID != llGetOwner())
|
||||
{
|
||||
list lMenu = ["main..", "Length", Checkbox(g_iTurn, "Turn2Leasher"), "Tools..", "Color"];
|
||||
if(g_kLeashedTo)
|
||||
lMenu += ["Grab Leash"];
|
||||
else lMenu += ["Unleash"];
|
||||
{
|
||||
// Unleash button
|
||||
// Post button
|
||||
|
||||
}else {
|
||||
if(g_kLeashedTo) lMenu += ["Unleash"];
|
||||
// Check Authority Level
|
||||
if(iAuth <= g_iLeashedToAuth)
|
||||
{
|
||||
lMenu += ["Unleash", "Post"];
|
||||
}
|
||||
}else {
|
||||
// Grab Leash
|
||||
// Post
|
||||
|
||||
if(kID != llGetOwner()) lMenu += ["Grab Leash"];
|
||||
lMenu += ["Post"];
|
||||
}
|
||||
|
||||
list lHelper = [];
|
||||
string sText = "Leash Menu";
|
||||
|
||||
|
|
|
@ -1,14 +1,6 @@
|
|||
#include "src/includes/common.lsl"
|
||||
|
||||
|
||||
|
||||
|
||||
string sSetor(integer test, string a, string b)
|
||||
{
|
||||
if(test)return a;
|
||||
return b;
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue