Ejemplo n.º 1
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement(TagName);

            node.SetAttribute("joystick", JoystickAxis);
            node.SetAttribute("inverted", Inverted.ToXml());
            node.SetAttribute("vjoy", VJoyAxis);
        }
Ejemplo n.º 2
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement(TagName);

            node.SetAttribute("joystick", dropDownJoystick.SelectedKey);
            node.SetAttribute("inverted", Inverted.ToXml());
            node.SetAttribute("direction", IsXDirection ? "x" : "y");
            node.SetAttribute("vjoy", dropDownVJoy.SelectedKey);
        }
Ejemplo n.º 3
0
 public bool Equals(Inverted other)
 {
     return(!ReferenceEquals(null, other) &&
            Core.Delta.Equals(other.Core.Delta) &&
            Core.RotationRadians.Equals(other.Core.RotationRadians)
            // ReSharper disable CompareOfFloatsByEqualityOperator
            && Core.ScaleFactor == other.Core.ScaleFactor
            // ReSharper restore CompareOfFloatsByEqualityOperator
            );
 }
Ejemplo n.º 4
0
        internal virtual string GetValue(string name)
        {
            switch (name)
            {
            case "Inverted":
                return(Inverted.ToString());

            case "Stacked":
                return(Stacked.ToString());
            }
            return("");
        }
Ejemplo n.º 5
0
    // Use this for initialization
    override protected void Start()
    {
        base.Start();
        Game_Script = GameObj.GetComponent <Inverted>();
        // 指定したタグで設定されたオブジェクトを探す
        objs = GameObject.FindGameObjectsWithTag("Notes");
        // 探したオブジェクト分foreach構文を回す
        foreach (GameObject obj in objs)
        {
            // Notesのコンポーネントを取得
            Notes n = obj.GetComponent <Notes>();
            notes.Add(n);
        }

        noteFripFlag = false;
    }
Ejemplo n.º 6
0
        protected override void ProcessRecord()
        {
            var ctl = new Toolbar();

            SetControlProps(ctl);

            if (Inverted.IsPresent)
            {
                ctl.Inverted = Inverted.ToBool();
            }

            if (Items != null)
            {
                foreach (var item in Items)
                {
                    ctl.Items.Add(item);
                }
            }

            if (OverflowItems != null)
            {
                foreach (var item in OverflowItems)
                {
                    ctl.OverflowItems.Add(item);
                }
            }

            if (FarItems != null)
            {
                foreach (var item in FarItems)
                {
                    ctl.FarItems.Add(item);
                }
            }

            WriteObject(ctl);
        }