mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-27 14:52:29 +08:00
A few small tweaks, and added link to the iOS app.
This commit is contained in:
+7
-15
@@ -48,29 +48,21 @@ div#header {
|
|||||||
height: 20px;
|
height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.deleteSave {
|
.menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
cursor: pointer;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.manualSave {
|
.menu span {
|
||||||
position: absolute;
|
|
||||||
right: 125px;
|
|
||||||
bottom: 10px;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
float: right;
|
||||||
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.deleteSave:hover, .share:hover, .manualSave:hover {
|
.menu span:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
|
||||||
|
|
||||||
.share {
|
|
||||||
position: absolute;
|
|
||||||
right: 70px;
|
|
||||||
bottom: 10px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.headerButton {
|
div.headerButton {
|
||||||
|
|||||||
+6
-1
@@ -146,4 +146,9 @@
|
|||||||
|
|
||||||
.endGameRestart {
|
.endGameRestart {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
}
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.endGameRestart:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|||||||
+20
-10
@@ -94,23 +94,33 @@ var Engine = {
|
|||||||
|
|
||||||
$('<div>').attr('id', 'locationSlider').appendTo('#main');
|
$('<div>').attr('id', 'locationSlider').appendTo('#main');
|
||||||
|
|
||||||
$('<span>')
|
var menu = $('<div>')
|
||||||
.addClass('deleteSave')
|
.addClass('menu')
|
||||||
.text('restart.')
|
|
||||||
.click(Engine.confirmDelete)
|
|
||||||
.appendTo('body');
|
.appendTo('body');
|
||||||
|
|
||||||
$('<div>')
|
$('<span>')
|
||||||
.addClass('share')
|
.addClass('menuBtn')
|
||||||
|
.text('restart.')
|
||||||
|
.click(Engine.confirmDelete)
|
||||||
|
.appendTo(menu);
|
||||||
|
|
||||||
|
$('<span>')
|
||||||
|
.addClass('menuBtn')
|
||||||
.text('share.')
|
.text('share.')
|
||||||
.click(Engine.share)
|
.click(Engine.share)
|
||||||
.appendTo('body');
|
.appendTo(menu);
|
||||||
|
|
||||||
$('<span>')
|
$('<span>')
|
||||||
.addClass('manualSave')
|
.addClass('menuBtn')
|
||||||
.text('save.')
|
.text('save.')
|
||||||
.click(Engine.exportImport)
|
.click(Engine.exportImport)
|
||||||
.appendTo('body');
|
.appendTo(menu);
|
||||||
|
|
||||||
|
$('<span>')
|
||||||
|
.addClass('menuBtn')
|
||||||
|
.text('app store.')
|
||||||
|
.click(function() { window.open('https://itunes.apple.com/us/app/a-dark-room/id736683061'); })
|
||||||
|
.appendTo(menu);
|
||||||
|
|
||||||
// Register keypress handlers
|
// Register keypress handlers
|
||||||
$('body').off('keydown').keydown(Engine.keyDown);
|
$('body').off('keydown').keydown(Engine.keyDown);
|
||||||
|
|||||||
+3
-6
@@ -251,7 +251,7 @@ var Space = {
|
|||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
Space._panelTimeout = setTimeout(function() {
|
Space._panelTimeout = setTimeout(function() {
|
||||||
$('#spacePanel, .deleteSave, .share, .manualSave').animate({color: 'white'}, 500, 'linear');
|
$('#spacePanel, .menu').animate({color: 'white'}, 500, 'linear');
|
||||||
}, Space.FTB_SPEED / 2);
|
}, Space.FTB_SPEED / 2);
|
||||||
|
|
||||||
Space.createAsteroid();
|
Space.createAsteroid();
|
||||||
@@ -331,7 +331,7 @@ var Space = {
|
|||||||
$('#starsContainer').remove();
|
$('#starsContainer').remove();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$('#spacePanel, .deleteSave, .share, .manualSave').animate({color: 'black'}, 300, 'linear');
|
$('#spacePanel, .menu').animate({color: 'black'}, 300, 'linear');
|
||||||
$('#outerSlider').animate({top: '0px'}, 300, 'linear');
|
$('#outerSlider').animate({top: '0px'}, 300, 'linear');
|
||||||
Engine.activeModule = Ship;
|
Engine.activeModule = Ship;
|
||||||
Ship.onArrival();
|
Ship.onArrival();
|
||||||
@@ -410,13 +410,10 @@ var Space = {
|
|||||||
.appendTo('.centerCont');
|
.appendTo('.centerCont');
|
||||||
$('<br />')
|
$('<br />')
|
||||||
.appendTo('.centerCont');
|
.appendTo('.centerCont');
|
||||||
|
|
||||||
$('#starsContainer').remove();
|
$('#starsContainer').remove();
|
||||||
$('.deleteSave, .share, .manualSave').remove();
|
|
||||||
$('#content, #notifications').remove();
|
$('#content, #notifications').remove();
|
||||||
$('.deleteSave, .share, .manualSave').attr('style', 'color: white;').animate({opacity:0},1500);
|
|
||||||
$('<span>')
|
$('<span>')
|
||||||
.addClass('deleteSave endGame endGameRestart')
|
.addClass('endGame endGameRestart')
|
||||||
.text('restart.')
|
.text('restart.')
|
||||||
.click(Engine.confirmDelete)
|
.click(Engine.confirmDelete)
|
||||||
.appendTo('.centerCont')
|
.appendTo('.centerCont')
|
||||||
|
|||||||
Reference in New Issue
Block a user