mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 11:04:02 +02:00
FB17023 - Make visible avatar url in the avatar app
This commit is contained in:
parent
b7d12c6b1c
commit
c13f27e2eb
2 changed files with 4 additions and 2 deletions
|
@ -480,7 +480,7 @@ Rectangle {
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
popup.showSpecifyAvatarUrl(function() {
|
popup.showSpecifyAvatarUrl(currentAvatar.avatarUrl, function() {
|
||||||
var url = popup.inputText.text;
|
var url = popup.inputText.text;
|
||||||
emitSendToScript({'method' : 'applyExternalAvatar', 'avatarURL' : url})
|
emitSendToScript({'method' : 'applyExternalAvatar', 'avatarURL' : url})
|
||||||
}, function(link) {
|
}, function(link) {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import QtQuick 2.5
|
||||||
MessageBox {
|
MessageBox {
|
||||||
id: popup
|
id: popup
|
||||||
|
|
||||||
function showSpecifyAvatarUrl(callback, linkCallback) {
|
function showSpecifyAvatarUrl(url, callback, linkCallback) {
|
||||||
popup.onButton2Clicked = callback;
|
popup.onButton2Clicked = callback;
|
||||||
popup.titleText = 'Specify Avatar URL'
|
popup.titleText = 'Specify Avatar URL'
|
||||||
popup.bodyText = 'This will not overwrite your existing favorite if you are wearing one.<br>' +
|
popup.bodyText = 'This will not overwrite your existing favorite if you are wearing one.<br>' +
|
||||||
|
@ -12,6 +12,8 @@ MessageBox {
|
||||||
'</a>'
|
'</a>'
|
||||||
popup.inputText.visible = true;
|
popup.inputText.visible = true;
|
||||||
popup.inputText.placeholderText = 'Enter Avatar Url';
|
popup.inputText.placeholderText = 'Enter Avatar Url';
|
||||||
|
popup.inputText.text = url;
|
||||||
|
popup.inputText.selectAll();
|
||||||
popup.button1text = 'CANCEL';
|
popup.button1text = 'CANCEL';
|
||||||
popup.button2text = 'CONFIRM';
|
popup.button2text = 'CONFIRM';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue