Commit 243b8d25 authored by 赤子奈落's avatar 赤子奈落

fix duel start button size bug

parent 684288c1
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -293,20 +293,20 @@ public class Room : WindowServantSP ...@@ -293,20 +293,20 @@ public class Room : WindowServantSP
{ {
if (selftype < 4 && roomPlayers[selftype] != null) roomPlayers[selftype].prep = false; if (selftype < 4 && roomPlayers[selftype] != null) roomPlayers[selftype].prep = false;
UIHelper.shiftButton(startButton(), true); UIHelper.shiftButton(startButton(), true);
lazyRoom.start.localScale = Vector3.one; //lazyRoom.start.localScale = Vector3.one;
lazyRoom.ready.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f + 30f, 0); //lazyRoom.ready.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f + 30f, 0);
lazyRoom.duelist.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f, 0); //lazyRoom.duelist.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f, 0);
lazyRoom.observer.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f, 0); //lazyRoom.observer.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f, 0);
lazyRoom.start.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f - 30f, 0); //lazyRoom.start.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f - 30f, 0);
} }
else else
{ {
UIHelper.shiftButton(startButton(), false); UIHelper.shiftButton(startButton(), false);
lazyRoom.start.localScale = Vector3.zero; //lazyRoom.start.localScale = Vector3.zero;
lazyRoom.ready.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f, 0); //lazyRoom.ready.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f, 0);
lazyRoom.duelist.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f, 0); //lazyRoom.duelist.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f, 0);
lazyRoom.observer.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f - 30f, 0); //lazyRoom.observer.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f - 30f, 0);
lazyRoom.start.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f - 30f - 30f, 0); //lazyRoom.start.localPosition = new Vector3(lazyRoom.duelist.localPosition.x, -94.2f - 30f - 30f - 30f, 0);
} }
realize(); realize();
...@@ -689,7 +689,7 @@ public class Room : WindowServantSP ...@@ -689,7 +689,7 @@ public class Room : WindowServantSP
} }
} }
private lazyRoom lazyRoom; //private lazyRoom lazyRoom;
private void ini() private void ini()
{ {
...@@ -698,7 +698,7 @@ public class Room : WindowServantSP ...@@ -698,7 +698,7 @@ public class Room : WindowServantSP
Object.DestroyImmediate(gameObject); Object.DestroyImmediate(gameObject);
CreateWindow(mode == 2 ? Program.I().remaster_tagRoom : Program.I().remaster_room); CreateWindow(mode == 2 ? Program.I().remaster_tagRoom : Program.I().remaster_room);
lazyRoom = gameObject.GetComponent<lazyRoom>(); //lazyRoom = gameObject.GetComponent<lazyRoom>();
fixScreenProblem(); fixScreenProblem();
superScrollView = gameObject.GetComponentInChildren<UIselectableList>(); superScrollView = gameObject.GetComponentInChildren<UIselectableList>();
superScrollView.selectedAction = onSelected; superScrollView.selectedAction = onSelected;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment