I just need the map from the game, I marked it green, could someone help me with the code?
I would need the card in the middle at the top and that you cannot move it, so that it is fixed and cannot be moved
import android.webkit.WebViewClient;
import android.view.ViewGroup.LayoutParams;
import android.webkit.WebView;
import android.view.ViewGroup;
import android.app.Activity;
import android.widget.RelativeLayout;
import android.widget.FrameLayout;
import processing.android.CompatUtils;
import android.view.View;
FrameLayout fl;
Activity act;
WebView web;
WebViewClient wbc;
int webId, start_time, tnt, count;
boolean just_run_once;
String list = "https://www.championsofregnum.com/?l=5&sec=3";
void setup() {
orientation(PORTRAIT);
background(0, 0, 80);
start_time = millis();
just_run_once = true;
tnt = 255;
textSize(40);
textAlign(CENTER);
}
void settings() {
fullScreen();
}
void draw() {
if (just_run_once) {
background(0, 0, 80);
//mage(startlogo, 0, 0);
//tint(255, tnt);
//tnt -= 5;
if (millis()-start_time > 3000) {
act.runOnUiThread(
new Runnable() {
public void run() {
WebView wv = (WebView)act.findViewById(webId);
wv.setVisibility(View.VISIBLE);
}
}
);
just_run_once = false;
background(0, 0, 80);
text("Click to load other video", width/2, 2*height/2.5);
}
}
}
void mousePressed() {
act.runOnUiThread(
new Runnable() {
public void run() {
web.loadUrl(list);
}
}
);
}
void onStop() {
super.onStop();
act.finish();
System.exit(0);
}
void onPause() {
super.onPause();
act.finish ();
System.exit(0);
}
void onResume() {
super.onResume();
}
void onStart() {
super.onStart();
act = this.getActivity();
wbc = new WebViewClient();
web = new WebView(act);
web.setLayoutParams(new RelativeLayout.LayoutParams( RelativeLayout.LayoutParams.WRAP_CONTENT, 2*height/3));
web.setWebViewClient(wbc);
web.getSettings().setJavaScriptEnabled(true);
web.loadUrl(list);
webId = CompatUtils.getUniqueViewId();
web.setId(webId);
web.setVisibility(View.GONE);
fl = (FrameLayout)act.getWindow().getDecorView().getRootView();
fl.addView(web);
}