Added phantom on/off message. Fixes FIRE-1318

meow-7.2.2
ziree 2011-06-25 01:43:45 +02:00
parent 808f402437
commit 79787d1646
3 changed files with 37 additions and 3 deletions

View File

@ -4123,6 +4123,22 @@ void LLAgent::renderAutoPilotTarget()
}
}
// Firestorm Phantom
void LLAgent::togglePhantom()
{
mPhantom = !mPhantom;
if(mPhantom)
LLNotificationsUtil::add("PhantomOn", LLSD());
else
LLNotificationsUtil::add("PhantomOff", LLSD());
}
bool LLAgent::getPhantom() const
{
return mPhantom;
}
// Firestorm Phantom
/********************************************************************************/
LLAgentQueryManager gAgentQueryManager;

View File

@ -813,8 +813,8 @@ public:
**/
public:
void togglePhantom() { mPhantom = !mPhantom; }
bool getPhantom() const { return mPhantom; }
void togglePhantom();
bool getPhantom() const;
private:
BOOL mPhantom;

View File

@ -7355,4 +7355,22 @@ This will send the following information to the current IM session:
</form>
</notification>
</notifications>
<!-- Firestorm Phantom -->
<notification
icon="notifytip.tga"
name="PhantomOn"
type="notifytip">
Phantom mode on.
</notification>
<notification
icon="notifytip.tga"
name="PhantomOff"
type="notifytip">
Phantom mode off.
</notification>
<!-- Firestorm Phantom -->
</notifications>