tweaks to how game save refreshes add more css for rtl
tweaks to how game save refreshes add more css for rtl
diff --git a/css/game.css b/css/game.css
index 9e760f5..669b9c7 100644
--- a/css/game.css
+++ b/css/game.css
@@ -32,6 +32,14 @@ x-action
{
float: left;
}
+.float-opposite
+{
+ float: right;
+}
+.rtl .float-opposite
+{
+ float: left;
+}
.left
{
text-align: left;
@@ -40,6 +48,14 @@ x-action
{
text-align: right;
}
+.opposite
+{
+ text-align: left;
+}
+.rtl .opposite
+{
+ text-align: right;
+}
.center
{
text-align: center;
diff --git a/js/game.js b/js/game.js
index 96fb70c..2be96a6 100644
--- a/js/game.js
+++ b/js/game.js
@@ -1192,8 +1192,10 @@ class Game
sessionStorage.removeItem("slot" + game.id + slot_number);
saves_location['filled' + slot_number] = "not-filled";
saves_location['delete' + slot_number] = "disabled";
- saves_location['slot' + slot_number] = "Save";
+ saves_location['slot' + slot_number] =
+ tl[locale]['init_slot_states_save'];
saves_location['filename' + slot_number] = "...";
+ this.evaluateAction(saves_location['default-action']);
}
/**
* Deletes all game saves from sessionStorage
@@ -1206,6 +1208,7 @@ class Game
this.deleteSlot(i);
i++;
}
+ this.evaluateAction(saves_location['default-action']);
}
/**
* Launches a file picker to allowthe user to select a file
@@ -1393,7 +1396,7 @@ class Game
return false;
}
let mc = obj('main-character');
- if (mc.position != mc.destination) {
+ if (mc.position != mc.destination && mc.position != 'saves') {
mc.old_position = mc.position;
}
this.moveObject('main-character', destination);