public void TappedJoinFromList(Tournament t) { TacoManager.SetTarget(t); double entryFee = t.entryFee; int typeCurrency = t.typeCurrency; string replacedString = string.Empty; if (t.IsWarningTime()) { TacoManager.OpenModalWarningTimePanel(t); } else { string formatFee = string.Empty; replacedString = "To enter this <b>'" + TacoSetup.Instance.gameName + " &tournamentType'</b> the &tournamentFee will be debited from your account."; if (typeCurrency == 0) { replacedString = replacedString.Replace("&tournamentFee", "Cash Entry Fee"); formatFee = TacoManager.FormatCash(entryFee); } else { replacedString = replacedString.Replace("&tournamentFee", "Taco Token Entry Fee"); formatFee = TacoManager.FormatGTokens(entryFee); } if (CurrentSubPanel == PanelNames.MyPublicPanel) { replacedString = replacedString.Replace("&tournamentType", "Public Tournament"); } else { replacedString = replacedString.Replace("&tournamentType", "Private Tournament"); } TacoManager.OpenModalEnterTournamentPanel(replacedString, formatFee, typeCurrency); } }