|
@@ -130,6 +130,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
|
|
private boolean use_32_bits = false;
|
|
|
private boolean use_immersive = false;
|
|
|
private boolean use_debug_opengl = false;
|
|
|
+ private boolean translucent = false;
|
|
|
private boolean mStatePaused;
|
|
|
private boolean activityResumed;
|
|
|
private int mState;
|
|
@@ -357,7 +358,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
|
|
// ...add to FrameLayout
|
|
|
containerLayout.addView(edittext);
|
|
|
|
|
|
- mView = new GodotView(activity, this, xrMode, use_gl3, use_32_bits, use_debug_opengl);
|
|
|
+ mView = new GodotView(activity, this, xrMode, use_gl3, use_32_bits, use_debug_opengl, translucent);
|
|
|
containerLayout.addView(mView, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
|
|
|
edittext.setView(mView);
|
|
|
io.setEdit(edittext);
|
|
@@ -608,6 +609,8 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
|
|
|
use_32_bits = true;
|
|
|
} else if (command_line[i].equals("--debug_opengl")) {
|
|
|
use_debug_opengl = true;
|
|
|
+ } else if (command_line[i].equals("--translucent")) {
|
|
|
+ translucent = true;
|
|
|
} else if (command_line[i].equals("--use_immersive")) {
|
|
|
use_immersive = true;
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { // check if the application runs on an android 4.4+
|