mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-30 01:02:59 +02:00
Sneak in a toggle for chat circling.
This commit is contained in:
parent
afc5e0795c
commit
359083ee9d
3 changed files with 7 additions and 0 deletions
interface/src
|
@ -326,6 +326,7 @@ Menu::Menu() :
|
|||
false,
|
||||
appInstance->getFaceshift(),
|
||||
SLOT(setTCPEnabled(bool)));
|
||||
addCheckableActionToQMenuAndActionHash(avatarOptionsMenu, MenuOption::ChatCircling, 0, true);
|
||||
|
||||
QMenu* webcamOptionsMenu = developerMenu->addMenu("Webcam Options");
|
||||
|
||||
|
|
|
@ -146,6 +146,7 @@ namespace MenuOption {
|
|||
const QString AutomaticallyAuditTree = "Automatically Audit Tree Stats";
|
||||
const QString Bandwidth = "Bandwidth Display";
|
||||
const QString BandwidthDetails = "Bandwidth Details";
|
||||
const QString ChatCircling = "Chat Circling";
|
||||
const QString Collisions = "Collisions";
|
||||
const QString CopyVoxels = "Copy";
|
||||
const QString CoverageMap = "Render Coverage Map";
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include "Application.h"
|
||||
#include "DataServerClient.h"
|
||||
#include "Menu.h"
|
||||
#include "MyAvatar.h"
|
||||
#include "Physics.h"
|
||||
#include "devices/OculusManager.h"
|
||||
|
@ -1110,6 +1111,10 @@ bool operator<(const SortedAvatar& s1, const SortedAvatar& s2) {
|
|||
}
|
||||
|
||||
void MyAvatar::updateChatCircle(float deltaTime) {
|
||||
if (!Menu::getInstance()->isOptionChecked(MenuOption::ChatCircling)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// find all members and sort by distance
|
||||
QVector<SortedAvatar> sortedAvatars;
|
||||
NodeList* nodeList = NodeList::getInstance();
|
||||
|
|
Loading…
Reference in a new issue