diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html b/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html index 574b5e3da..c44fa0640 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html @@ -1,4 +1,7 @@
+12 Jan. 2012
+- Players can now (using Settings tab) specify which form of answer selection to use - buttons or drop-down.
+
11 Jan. 2012
- "Isengard Sword" now correctly gives -2 Strength to character in skirmish against its bearer.
- Players now can setup auto-pass option per phase, by default game auto-passes on all phases except for Shadow
diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js
index 83503718a..4a7983c05 100644
--- a/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js
+++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/js/gameUi.js
@@ -55,6 +55,7 @@ var GempLotrGameUI = Class.extend({
settingsAutoPass: false,
settingsAutoAccept: false,
+ settingsAlwaysDropDown: false,
windowWidth: null,
windowHeight: null,
@@ -387,6 +388,20 @@ var GempLotrGameUI = Class.extend({
$.cookie("autoAccept", "" + selected, { expires: 365 });
});
+ $("#settingsBox").append("
");
+
+ var alwaysDropDown = $.cookie("alwaysDropDown");
+ if (alwaysDropDown == "true") {
+ $("#alwaysDropDown").prop("checked", true);
+ this.settingsAlwaysDropDown = true;
+ }
+
+ $("#alwaysDropDown").bind("change", function() {
+ var selected = $("#alwaysDropDown").prop("checked");
+ that.settingsAlwaysDropDown = selected;
+ $.cookie("alwaysDropDown", "" + selected, { expires: 365 });
+ });
+
$("#settingsBox").append("Phases when game auto-passes for you, if you have no phase actions to play
");
$("#settingsBox").append(" ");
$("#settingsBox").append(" ");
@@ -636,21 +651,21 @@ var GempLotrGameUI = Class.extend({
initializeDialogs: function() {
this.smallDialog = $("")
.dialog({
- autoOpen: false,
- closeOnEscape: false,
- resizable: false,
- width: 400,
- height: 200
- });
+ autoOpen: false,
+ closeOnEscape: false,
+ resizable: false,
+ width: 400,
+ height: 200
+ });
this.cardActionDialog = $("")
.dialog({
- autoOpen: false,
- closeOnEscape: false,
- resizable: true,
- width: 600,
- height: 300
- });
+ autoOpen: false,
+ closeOnEscape: false,
+ resizable: true,
+ width: 600,
+ height: 300
+ });
var that = this;
@@ -665,11 +680,11 @@ var GempLotrGameUI = Class.extend({
this.infoDialog = $("")
.dialog({
- autoOpen: false,
- closeOnEscape: true,
- resizable: false,
- title: "Card information"
- });
+ autoOpen: false,
+ closeOnEscape: true,
+ resizable: false,
+ title: "Card information"
+ });
var swipeOptions = {
threshold: 20,
@@ -1140,12 +1155,12 @@ var GempLotrGameUI = Class.extend({
if (!this.replayMode) {
this.smallDialog.dialog("option", "buttons",
- {
- "OK": function() {
- $(this).dialog("close");
- that.decisionFunction(id, $("#integerDecision").val());
- }
- });
+ {
+ "OK": function() {
+ $(this).dialog("close");
+ that.decisionFunction(id, $("#integerDecision").val());
+ }
+ });
}
$("#integerDecision").SpinnerControl({ type: 'range',
@@ -1174,7 +1189,7 @@ var GempLotrGameUI = Class.extend({
this.smallDialog
.html(text);
- if (results.length > 2) {
+ if (results.length > 2 || this.settingsAlwaysDropDown) {
var html = "