コード例 #1
0
        private async void PlayModButton_Click(object sender, RoutedEventArgs e)
        {
            RNG.SeedMe((int)GameSeed);
            bool arg = (sender as Button).Name.ToString() == "RandomizeModButton";

            await PlayMod(arg);
        }
コード例 #2
0
 private void SeedButton_Click(object sender, RoutedEventArgs e)
 {
     GameSeed = RNG.GetUInt32();
     RNG.SeedMe((int)GameSeed);
     SeedTextBox.GetBindingExpression(TextBox.TextProperty).UpdateTarget();
     ModSeedTextBox.GetBindingExpression(TextBox.TextProperty).UpdateTarget();
 }
コード例 #3
0
 private void RefreshButton_Click(object sender, RoutedEventArgs e)
 {
     //GameSeed = RNG.GetUInt32();
     GameSeed += 500;
     RNG.SeedMe((int)GameSeed);
     SeedTextBox.GetBindingExpression(TextBox.TextProperty).UpdateTarget();
     Randomizer.Randomize();
 }   // Refresh button is no longer in use.
コード例 #4
0
 private async void RandomizeButton_Click(object sender, RoutedEventArgs e)
 {
     RNG.SeedMe((int)GameSeed);
     await PlayRandomizer();
 }