Exemple #1
0
        private void RunSpecificScriptOnPacket(object sender, RoutedEventArgs e)
        {
            var scriptView = new ScriptSelectView("Scripts");

            scriptView.ShowDialog();
            var toLoad = scriptView.GetSelectedScripts();

            var provider = new ScriptingProvider();

            provider.LoadScripts(toLoad);

            var items = PacketListView.SelectedItems;

            foreach (var item in items)
            {
                var packet = item as PacketEntry;

                try
                {
                    Scripting_RunOnPacket(packet, provider);
                }
                catch (Exception exc)
                {
                    new ExtendedErrorView(
                        $"Scripting exception thrown for {packet.Message} - {packet.Name}.", exc.ToString(), "Error").ShowDialog();
                    return;
                }
            }
        }
Exemple #2
0
        private void Scripting_SelectScripts(object sender, RoutedEventArgs e)
        {
            var scriptView = new ScriptSelectView("Scripts");

            scriptView.ShowDialog();
            var toLoad = scriptView.GetSelectedScripts();

            ScriptProvider = new ScriptingProvider();
            ScriptProvider.LoadScripts(toLoad);

            _selectedScripts = toLoad;
        }
Exemple #3
0
    public string myRegDate;                    // scriptSelectViewからprefab作成にセット


    void OnValueChanged(bool value)
    {
        if (GameManager.chkLock(myRegDate) == GameManager.LOCK)                         // Lockされた選手が選択から外されてはいけない
        {
            if (value)
            {
                return;
            }
            string title   = "試合ロック中の制限";
            string message = "試合ロック中のメンバーは選択から外せません。";
            DialogViewController.Show(title, message, null);
            tToggle.isOn = true;
            return;
        }

        if (offGraphic != null)
        {
            offGraphic.enabled = !value;
        }

        ScriptSelectView sc = GameObject.Find("SelectView").GetComponent <ScriptSelectView>();

        sc._changeMemberStat(this.transform.parent.parent, this.transform.parent.parent.GetSiblingIndex());
    }