mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:58:35 +02:00
Finish renaming functions
This commit is contained in:
parent
72978c5d96
commit
30c5f277a0
1 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,7 @@ var toolWidth = 50;
|
||||||
var TOOLBAR_MARGIN_Y = 0;
|
var TOOLBAR_MARGIN_Y = 0;
|
||||||
|
|
||||||
|
|
||||||
function showExamples(marketplaceID) {
|
function showMarketplace(marketplaceID) {
|
||||||
var url = MARKETPLACE_URL;
|
var url = MARKETPLACE_URL;
|
||||||
if (marketplaceID) {
|
if (marketplaceID) {
|
||||||
url = url + "/items/" + marketplaceID;
|
url = url + "/items/" + marketplaceID;
|
||||||
|
@ -36,16 +36,16 @@ function showExamples(marketplaceID) {
|
||||||
UserActivityLogger.openedMarketplace();
|
UserActivityLogger.openedMarketplace();
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideExamples() {
|
function hideMarketplace() {
|
||||||
marketplaceWindow.setVisible(false);
|
marketplaceWindow.setVisible(false);
|
||||||
marketplaceWindow.setURL("about:blank");
|
marketplaceWindow.setURL("about:blank");
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleExamples() {
|
function toggleMarketplace() {
|
||||||
if (marketplaceWindow.visible) {
|
if (marketplaceWindow.visible) {
|
||||||
hideExamples();
|
hideMarketplace();
|
||||||
} else {
|
} else {
|
||||||
showExamples();
|
showMarketplace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ function onExamplesWindowVisibilityChanged() {
|
||||||
browseExamplesButton.writeProperty('hoverState', marketplaceWindow.visible ? 2 : 3);
|
browseExamplesButton.writeProperty('hoverState', marketplaceWindow.visible ? 2 : 3);
|
||||||
}
|
}
|
||||||
function onClick() {
|
function onClick() {
|
||||||
toggleExamples();
|
toggleMarketplace();
|
||||||
}
|
}
|
||||||
browseExamplesButton.clicked.connect(onClick);
|
browseExamplesButton.clicked.connect(onClick);
|
||||||
marketplaceWindow.visibleChanged.connect(onExamplesWindowVisibilityChanged);
|
marketplaceWindow.visibleChanged.connect(onExamplesWindowVisibilityChanged);
|
||||||
|
|
Loading…
Reference in a new issue