public static void DrawShowDownGUI(int potSize, string winnerName, string loserName, EvaluatedHand winningHand, EvaluatedHand losingHand, bool isDraw, bool mustQuit, ShowDownStage stage) { instance.InstanceDrawShowDownGUI(potSize, winnerName, loserName, winningHand, losingHand, isDraw, mustQuit, stage); }
private void InstanceDrawShowDownGUI(int potSize, string winnerName, string loserName, EvaluatedHand winningHand, EvaluatedHand losingHand, bool isDraw, bool mustQuit, ShowDownStage stage) { GUILayout.BeginArea(new Rect(showDownTopLeftCorner.x, showDownTopLeftCorner.y, 1000, 1000)); GUILayout.BeginHorizontal(); GUILayout.BeginVertical(); GUILayout.BeginVertical(backgroundStyle); if (!isDraw){ GUILayout.Label(winnerName + " wins $" + potSize); } else { GUILayout.Label("It's a draw!"); } DrawShowDownHand(winnerName, winningHand); DrawShowDownHand(loserName, losingHand); GUILayout.BeginHorizontal(); if (!mustQuit){ if (GUILayout.Button("Continue")){ FModManager.StartEvent(FModLies.EVENTID_LIES_STARTMENU_MOUSECLICKED); stage.ContinuePressed(); } } if (GUILayout.Button("Quit")){ FModManager.StartEvent(FModLies.EVENTID_LIES_STARTMENU_MOUSECLICKED); stage.QuitPressed(); } GUILayout.EndHorizontal(); GUILayout.EndVertical(); GUILayout.FlexibleSpace(); GUILayout.EndVertical(); GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); GUILayout.EndArea(); }