enabled OK button on GuiCombat screen when choosing defenders/attackers. iOS solution only currently. To implement in Android, we need to create a mask/invisible button above the OK button coordinates and add a listener to activate when a user touches the appropriate area. Not ideal, but it works for now.
TODO: translate functionality into core of engine.
This commit is contained in:
+2
-1
@@ -371,7 +371,8 @@ class JGE
|
||||
/// and in IOS to communicate with the EAGL layer
|
||||
void SendCommand(std::string command);
|
||||
void SendCommand(std::string command, std::string parameter);
|
||||
|
||||
void SendCommand(std::string command, float& x, float& y, float& width, float& height);
|
||||
|
||||
#if defined (ANDROID)
|
||||
/// Access to JNI Environment
|
||||
void SetJNIEnv(JNIEnv * env, jclass cls);
|
||||
|
||||
Reference in New Issue
Block a user