Skip to content
Snippets Groups Projects
Commit 3ea24530 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

fixed hud

parent 0dffd717
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -18,6 +18,7 @@
<script src="js/uiHandler.js" type="text/javascript"></script>
<script type="text/javascript">
var aWindowsHasBeenOpened = false;
function showGameTextInfo(game){
if(game == "skateboard"){
gameName = "Sakteboard";
......@@ -32,6 +33,7 @@
}
function showGameWindow(game){
if(!aWindowsHasBeenOpened){
if(game == "skateboard"){
// On créé la fenêtre pour la liste des parties
var uiWindowGameList = new UIWindow();
......@@ -41,7 +43,7 @@
//uiWindowGameList.hideAnimation = "animate__zoomOut";
uiWindowGameList.debug = false;
uiWindowGameList.preferHide = true; // Pemet de ne pas supprimer le code html au moment de la fermeture de la fenêtre
uiWindowGameList.closeAction = "reEnableHubInput();"; // Fonction créée au runtime par UI.cs
uiWindowGameList.closeAction = "reEnableHubInput();aWindowsHasBeenOpened = false;"; // Fonction créée au runtime par UI.cs
// Puis on l'initialise (pour la créer et prendre en compte les paramètres)
uiWindowGameList.init();
......@@ -58,7 +60,12 @@
document.getElementById(textBox).style.marginLeft = "1%";
uiWindowGameList.show();
aWindowsHasBeenOpened = true;
}else{
console.log("Une uiWindow a déjà été ouverte!");
}
}
}
</script>
</body>
......
......@@ -42,6 +42,16 @@
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"key": "ShapeComponent.ResetSettings",
"value": "{\"m_Value\":false}"
},
{
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"key": "editor.stripProBuilderScriptsOnBuild",
"value": "{\"m_Value\":true}"
},
{
"type": "System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"key": "editor.autoRecalculateCollisions",
"value": "{\"m_Value\":false}"
}
]
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment