mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 08:47:16 +02:00
Removed Selection related logic
This commit is contained in:
parent
112e13383b
commit
51cbadcad1
1 changed files with 0 additions and 18 deletions
|
@ -430,22 +430,6 @@ function redraw(uuid) {
|
||||||
// Add a user to the list.
|
// Add a user to the list.
|
||||||
var DEFAULT_LIFETIME = entityProps.lifetime;
|
var DEFAULT_LIFETIME = entityProps.lifetime;
|
||||||
|
|
||||||
// setup to get the outline in on mode
|
|
||||||
var NAMETAG_SELECTION_LIST = "NAMETAG_SELECTION_LIST";
|
|
||||||
var nametagSelectionProps = {
|
|
||||||
outlineUnoccludedColor: { red: 255, green: 255, blue: 255 },
|
|
||||||
outlineOccludedColor: { red: 235, green: 87, blue: 87 },
|
|
||||||
fillUnoccludedColor: { red: 235, green: 87, blue: 87 },
|
|
||||||
fillOccludedColor: { red: 235, green: 87, blue: 87 },
|
|
||||||
outlineUnoccludedAlpha: 1,
|
|
||||||
outlineOccludedAlpha: 0,
|
|
||||||
fillUnoccludedAlpha: 0,
|
|
||||||
fillOccludedAlpha: 0,
|
|
||||||
outlineWidth: 3,
|
|
||||||
isOutlineSmooth: true
|
|
||||||
};
|
|
||||||
Selection.enableListHighlight(NAMETAG_SELECTION_LIST, nametagSelectionProps);
|
|
||||||
|
|
||||||
|
|
||||||
// add a user to our current selections
|
// add a user to our current selections
|
||||||
function add(uuid) {
|
function add(uuid) {
|
||||||
|
@ -472,7 +456,6 @@ function add(uuid) {
|
||||||
|
|
||||||
// Remove from list after lifetime is over
|
// Remove from list after lifetime is over
|
||||||
if (avatarNametagMode === "on") {
|
if (avatarNametagMode === "on") {
|
||||||
Selection.addToSelectedItemsList(NAMETAG_SELECTION_LIST, "avatar", uuid);
|
|
||||||
avatar.timeoutStarted = Script.setTimeout(function () {
|
avatar.timeoutStarted = Script.setTimeout(function () {
|
||||||
removeNametag(uuid);
|
removeNametag(uuid);
|
||||||
}, deleteEnttyInMiliseconds);
|
}, deleteEnttyInMiliseconds);
|
||||||
|
@ -517,7 +500,6 @@ function removeNametag(uuid) {
|
||||||
if (avatar) {
|
if (avatar) {
|
||||||
avatar.nametag.destroy();
|
avatar.nametag.destroy();
|
||||||
delete _this.selectedAvatars[uuid];
|
delete _this.selectedAvatars[uuid];
|
||||||
Selection.removeFromSelectedItemsList(NAMETAG_SELECTION_LIST, "avatar", uuid);
|
|
||||||
return _this;
|
return _this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue