Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next unit button tappability status sometimes deferred until tapping anywhere. #4

Open
ghost opened this issue Aug 20, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 20, 2018

Abstract:

There are flows that auto update the tappability status of the Next unit button in a desired way. There are flows that do not.

How to reproduce:

  • Start a new game. Without any shroud or fog of war. Next. Next. Next. Next. The game started. You have only one unit.

  • The Next unit button is tappable. That's because there is a unit with remaining movement points.

  • End its unit turn. The Next unit button ceases to be tappable.

  • Move the unit one hex. The Next unit button stays untappable.

  • Tap anywhere. The Next unit button at last turned to tappable.

  • Move the unit so it ends its remaining movement points. The Next unit button stays tappable.

  • Tap anywhere. The Next unit button at last turned to untappable.

Information on the wesnoth_ios local clone:

TinyGUI_1.14.4 fff304dde559+dirty

$ git log --pretty=%H | head -1
b68de6a2b384514bcb24d2b2583521f716afd1ca
$ git log --pretty=%B | head -1
Add my own namespace.
$ git status
On branch TinyGUI_1.14.4
Your branch is ahead of 'hrubymar10/TinyGUI_1.14.4' by 1 commit.
  (use "git push" to publish your local commits)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
  (commit or discard the untracked or modified content in submodules)

	modified:   battleforwesnoth/battleforwesnoth.xcodeproj/project.pbxproj
	modified:   lib/iOS_boost_1_60 (untracked content)

no changes added to commit (use "git add" and/or "git commit -a")
$ pushd lib/iOS_boost_1_60/
$ git status
HEAD detached at 48903ec0
Untracked files:
  (use "git add <file>..." to include in what will be committed)

	libs/boost/ios/libboost.a

nothing added to commit but untracked files present (use "git add" to track)
$ _

Information on the wesnoth local clone:

TinyGUI_1.14.4 68d52b5027ea+dirty

$ git status
On branch TinyGUI_1.14.4
Your branch is up-to-date with 'hrubymar10/TinyGUI_1.14.4'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   src/game_config.cpp

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	projectfiles/wesnoth_ios/

no changes added to commit (use "git add" and/or "git commit -a")
$ git diff
diff --git a/src/game_config.cpp b/src/game_config.cpp
index 9058b794cc..4f8a592fb8 100644
--- a/src/game_config.cpp
+++ b/src/game_config.cpp
@@ -24,7 +24,7 @@
 #include "wesconfig.h"
 #include "serialization/string_utils.hpp"
 #ifdef LOAD_REVISION
-#include "revision.h"
+//#include "revision.h"
 #endif
 
 static lg::log_domain log_engine("engine");
@@ -50,6 +50,8 @@ const version_info test_version("test");
 #define VERSION WESNOTH_XSTR(RC_VERSION_MAJOR) "." WESNOTH_XSTR(RC_VERSION_MINOR) "." WESNOTH_XSTR(RC_VERSION_REVISION)
 const std::string revision = std::string(VERSION);// + " (" + VCS_SHORT_HASH ")";
 #elif defined(__IPHONEOS__) && DEBUG
+#define VCS_FULL_HASH "00000000"
+#define VCS_WC_MODIFIED true
     const std::string revision = std::string(VERSION) + " (" + std::string(VCS_FULL_HASH).substr(0,7) + (VCS_WC_MODIFIED ? "-Modified" : "-Clean") + ")";
 #elif defined(REVISION)
 const std::string revision = VERSION " (" REVISION ")";
$ _

Supervisor version:

10.3.3 (14G60).

Device model:

iPad (4th gen.) MD523TY/A.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants