mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-04-22 16:06:44 +00:00
now with a proper UI reset after closing a stream. this closes #19
This commit is contained in:
@@ -147,10 +147,10 @@ function showAppsPushed() {
|
||||
|
||||
function showAppsMode() {
|
||||
console.log("entering show apps mode.");
|
||||
$('#streamSettings').css('display', 'none');
|
||||
$('#hostSettings').css('display', 'none');
|
||||
$('#gameSelection').css('display', 'inline-block');
|
||||
$("#main-content").children().not("#listener").css('display', 'inline-block');
|
||||
$(".mdl-layout__header").show();
|
||||
$("#main-content").children().not("#listener").show();
|
||||
$("#main-content").removeClass("fullscreen");
|
||||
$("#listener").removeClass("fullscreen");
|
||||
$("body").css('backgroundColor', 'white');
|
||||
}
|
||||
|
||||
@@ -202,12 +202,13 @@ function startSelectedGame() {
|
||||
}
|
||||
|
||||
function playGameMode() {
|
||||
console.log("entering play game mode");
|
||||
$(".mdl-layout__header").hide();
|
||||
$("#main-content").children().not("#listener").hide();
|
||||
$("#main-content").addClass("fullscreen");
|
||||
$("#listener").addClass("fullscreen");
|
||||
fullscreenNaclModule();
|
||||
document.body.style.backgroundColor = "black";
|
||||
$("body").css('backgroundColor', 'black');
|
||||
}
|
||||
|
||||
// Maximize the size of the nacl module by scaling and resizing appropriately
|
||||
|
||||
Reference in New Issue
Block a user