Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
55122dd4
Commit
55122dd4
authored
2 years ago
by
¡Cinder! ㊝
Browse files
Options
Downloads
Patches
Plain Diff
Add /sendmenu to chat commands phor phun
parent
9d333718
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/alchatcommand.cpp
+21
-0
21 additions, 0 deletions
indra/newview/alchatcommand.cpp
with
21 additions
and
0 deletions
indra/newview/alchatcommand.cpp
+
21
−
0
View file @
55122dd4
...
@@ -325,6 +325,27 @@ bool ALChatCommand::parseCommand(std::string data)
...
@@ -325,6 +325,27 @@ bool ALChatCommand::parseCommand(std::string data)
}
}
}
}
}
}
else
if
(
cmd
==
"/sendmenu"
)
{
S32
channel
;
if
(
!
(
input
>>
channel
))
return
false
;
std
::
string
button
;
if
(
!
(
input
>>
button
))
return
false
;
LLMessageSystem
*
msg
=
gMessageSystem
;
msg
->
newMessageFast
(
_PREHASH_ScriptDialogReply
);
msg
->
nextBlockFast
(
_PREHASH_AgentData
);
msg
->
addUUIDFast
(
_PREHASH_AgentID
,
gAgent
.
getID
());
msg
->
addUUIDFast
(
_PREHASH_SessionID
,
gAgent
.
getSessionID
());
msg
->
nextBlockFast
(
_PREHASH_Data
);
msg
->
addUUIDFast
(
_PREHASH_ObjectID
,
gAgent
.
getID
());
msg
->
addS32
(
_PREHASH_ChatChannel
,
channel
);
msg
->
addS32Fast
(
_PREHASH_ButtonIndex
,
0
);
msg
->
addStringFast
(
_PREHASH_ButtonLabel
,
button
);
gAgent
.
sendReliableMessage
();
return
true
;
}
}
}
return
false
;
return
false
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment