private void TransitionIntoControlsInner() { controlsPos = 1; ChangeCursor2Details(cursor3.getPos(cursor3.getX(), 0).x); cursor2.setY(11); cursor2Display.UpdatePosition(11, true); SignalSuccess(); }
private void LobbyUpdate() { MoveTextUp(); if (lobbyCursor.launchOrPause()) { int idx = offsetY + (8 - lobbyCursor.getY()); if (idx >= lobbyDisplay.Count) { idx = lobbyDisplay.Count - 1; } if (idx == 1) { FindFriendLobbies(); } else if (idx == 0) { initializedStatus = -3; } else { CSteamID lobby = lobbyDisplay[idx].Value; SetText("joining"); SteamAPICall_t try_joinLobby = SteamMatchmaking.JoinLobby(lobby); } return; } else if (lobbyCursor.back()) { initializedStatus = -3; return; } string res = ""; int actOffset = offsetY; if (offsetY > 0) { res = "...\r\n"; actOffset++; } int max = lobbyDisplay.Count; bool addEnd = false; if ((actOffset + 8) < max) { max = actOffset + 7; addEnd = true; } for (int i = actOffset; i < max; i++) { res += lobbyDisplay[i].Key + "\r\n"; } if (addEnd) { res += "..."; } ForceText(res); lobbyCursor.SetVisibility(true); lobbyCursor.DoUpdate(); int maxY = Mathf.Max(9 - lobbyDisplay.Count, 0); int curY = lobbyCursor.getY(); if (curY < maxY) { lobbyCursor.setY(maxY); } else if (curY == 0 && addEnd) { offsetY++; lobbyCursor.setY(1); } else if (curY == 8 && offsetY > 0) { offsetY--; lobbyCursor.setY(7); } }