player panel initial location

This commit is contained in:
StageGuard
2021-07-13 12:02:34 +08:00
parent 18d1c8e670
commit af9de48b53

View File

@@ -2157,7 +2157,7 @@ gui = {
s.lp = gui.player_panel._global_base.getLayoutParams(); s.lp = gui.player_panel._global_base.getLayoutParams();
if(gui.player_panel.cx == null) { if(gui.player_panel.cx == null) {
gui.player_panel.cx = 0; gui.player_panel.cx = 0;
gui.player_panel.cy = context.getResources().getDisplayMetrics().heightPixels / 2 - gui.player_panel._global_base.getMeasuredHeight(); gui.player_panel.cy = context.getResources().getDisplayMetrics().heightPixels / 2;
} }
s.lp.x = s.x = gui.player_panel.cx; s.lp.x = s.x = gui.player_panel.cx;
s.lp.y = s.y = gui.player_panel.cy; s.lp.y = s.y = gui.player_panel.cy;