コード例 #1
0
	void showContextMenu(S32 x,S32 y)
	{
		if(mSourceType == CHAT_SOURCE_SYSTEM)
			showSystemContextMenu(x,y);
		if(mAvatarID.notNull() && mSourceType == CHAT_SOURCE_AGENT)
			showAvatarContextMenu(x,y);
		if(mAvatarID.notNull() && mSourceType == CHAT_SOURCE_OBJECT && SYSTEM_FROM != mFrom)
			showObjectContextMenu(x,y);
	}
コード例 #2
0
    void showContextMenu(S32 x,S32 y)
    {
// [RLVa:KB] - Checked: 2010-04-22 (RLVa-1.2.2a) | Added: RLVa-1.2.0f
        if (!mShowContextMenu)
            return;
// [/RLVa:KB]
        if(mSourceType == CHAT_SOURCE_SYSTEM)
            showSystemContextMenu(x,y);
        if(mAvatarID.notNull() && mSourceType == CHAT_SOURCE_AGENT)
            showAvatarContextMenu(x,y);
        if(mAvatarID.notNull() && mSourceType == CHAT_SOURCE_OBJECT && SYSTEM_FROM != mFrom)
            showObjectContextMenu(x,y);
    }