private void Event_PlayerJoin(IClientPlayer byPlayer) { if (!didSelect && byPlayer.PlayerUID == capi.World.Player.PlayerUID) { dlg = new GuiDialogCreateCharacter(capi, this); dlg.PrepAndOpen(); } }
private void onCharSelCmd(int groupId, CmdArgs args) { if (dlg == null) { dlg = new GuiDialogCreateCharacter(capi, this); dlg.PrepAndOpen(); } if (!dlg.IsOpened()) { dlg.TryOpen(); } }