Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TournamentScene_DeckPicker #3

Open
chucklu opened this issue Sep 16, 2019 · 1 comment
Open

TournamentScene_DeckPicker #3

chucklu opened this issue Sep 16, 2019 · 1 comment

Comments

@chucklu
Copy link
Collaborator

chucklu commented Sep 16, 2019

ChuckLu 2019-09-17 00:03:03.219+08:00 - [TournamentScene_DeckPicker] Now attempting to select the desired custom deck.

ChuckLu 2019-09-17 00:03:07.918+08:00 - [TournamentScene_DeckPicker] Now changing to "Ranked" constructed.

ChuckLu 2019-09-17 00:03:10.276+08:00 - [TournamentScene]

ChuckLu 2019-09-17 00:03:10.606+08:00 - [TournamentScene_DeckPicker] Now attempting to select the desired custom deck.

ChuckLu 2019-09-17 00:03:15.331+08:00 - [TournamentScene_DeckPicker] Now clicking the "开始" button.

@chucklu
Copy link
Collaborator Author

chucklu commented Oct 18, 2019

// Triton.Bot.Logic.Bots.DefaultBot.DefaultBot
// Token: 0x060013B1 RID: 5041 RVA: 0x000BE9C0 File Offset: 0x000BCBC0
private async Task method_49(TournamentScene tournamentScene_0)

PlayButton playButton = deckPickerTrayDisplay.m_playButton;
							UberText newPlayButtonText = playButton.m_newPlayButtonText;
							if (!playButton.IsEnabled())
							{
								DefaultBot.ilog_0.InfoFormat("[TournamentScene_DeckPicker] The \"{0}\" is not enabled.", newPlayButtonText.Text);
							}
							else
							{
								UberText newPlayButtonText2 = playButton.m_newPlayButtonText;
								Vector3 center = newPlayButtonText2.m_TextMeshGameObject.Renderer.Bounds.m_Center;
								DefaultBot.ilog_0.InfoFormat("[TournamentScene_DeckPicker] Now clicking the \"{0}\" button.", newPlayButtonText2.Text);
								Client.LeftClickAt(center);
								taskAwaiter = Coroutine.Sleep(3000).GetAwaiter();
								if (!taskAwaiter.IsCompleted)
								{
									await taskAwaiter;
									taskAwaiter = taskAwaiter2;
									taskAwaiter2 = default(TaskAwaiter);
								}
								taskAwaiter.GetResult();
								taskAwaiter = default(TaskAwaiter);
							}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant