MCPcopy Create free account
hub / github.com/Var3D/var3dframe / getTouchpad

Method getTouchpad

core/src/core/java/var3d/net/center/VGame.java:2308–2312  ·  view source on GitHub ↗

创建TouchPad

(float deadzoneRadius, String bg, String kn)

Source from the content-addressed store, hash-verified

2306 * 创建TouchPad
2307 */
2308 public UI<Touchpad> getTouchpad(float deadzoneRadius, String bg, String kn) {
2309 TextureRegionDrawable d1 = getDrawable(bg);
2310 TextureRegionDrawable d2 = getDrawable(kn);
2311 return getUI(new Touchpad(deadzoneRadius, new TouchpadStyle(d1, d2)));
2312 }
2313
2314 /**
2315 * 创建TouchPad

Callers 1

initMethod · 0.80

Calls 2

getDrawableMethod · 0.95
getUIMethod · 0.95

Tested by

no test coverage detected