mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Make friends add/remove button open WebWindow dialog
This commit is contained in:
parent
4e6dcf0d8e
commit
418ff5929e
1 changed files with 15 additions and 0 deletions
|
@ -88,6 +88,12 @@ var usersWindow = (function () {
|
|||
scrollbarBarClickedAt, // 0.0 .. 1.0
|
||||
scrollbarValue = 0.0, // 0.0 .. 1.0
|
||||
|
||||
FRIENDS_DIALOG_TITLE = "Add/Remove Friends",
|
||||
FRIENDS_DIALOG_URL = "https://metaverse.highfidelity.com/user/friends",
|
||||
FRIENDS_DIALOG_WIDTH = 900,
|
||||
FRIENDS_DIALOG_HEIGHT = 700,
|
||||
friendsDialog,
|
||||
|
||||
RADIO_BUTTON_SVG = HIFI_PUBLIC_BUCKET + "images/radio-button.svg",
|
||||
RADIO_BUTTON_SVG_DIAMETER = 14,
|
||||
RADIO_BUTTON_DISPLAY_SCALE = 0.7, // 1.0 = windowTextHeight
|
||||
|
@ -418,6 +424,11 @@ var usersWindow = (function () {
|
|||
updateOverlayPositions();
|
||||
updateUsersDisplay();
|
||||
}
|
||||
|
||||
if (clickedOverlay === friendsButton2D) {
|
||||
friendsDialog.setVisible(true);
|
||||
friendsDialog.raise();
|
||||
}
|
||||
}
|
||||
|
||||
function onMouseMoveEvent(event) {
|
||||
|
@ -576,6 +587,10 @@ var usersWindow = (function () {
|
|||
myVisibility = "";
|
||||
}
|
||||
|
||||
friendsDialog = new WebWindow(FRIENDS_DIALOG_TITLE, FRIENDS_DIALOG_URL, FRIENDS_DIALOG_WIDTH, FRIENDS_DIALOG_HEIGHT,
|
||||
false);
|
||||
friendsDialog.setVisible(false);
|
||||
|
||||
optionText = "everyone";
|
||||
visibilityControls2D = [{
|
||||
radioOverlay: Overlays.addOverlay("image", { // Create first so that it is under textOverlay.
|
||||
|
|
Loading…
Reference in a new issue