コード例 #1
0
        public TouchingByThingComp(Thing parent, Type RequiredType, string label, Action_OnThings LeftClick = null, Action_OnThings RightClick = null)
        {
            parentThing = parent;
            icon        = Icon.NextButton;

            parentType = RequiredType;

            ClickLeft  = LeftClick;
            ClickRight = RightClick;

            defaultDesc  = Desc;
            defaultLabel = label;
        }
        public CommandGroupOfTouchingThingsByThingComp( Thing parent, Type RequiredType, string label, Action_OnThings lAction = null, Action_OnThings rAction = null )
        {
            parentThing = parent;
            icon = Icon.NextButton;

            parentType = RequiredType;

            _laction = lAction;
            _raction = rAction;

            defaultDesc = Desc;
            defaultLabel = label;
        }
コード例 #3
0
        public CommandGroupOfTouchingThingsByThingComp(Thing parent, Type RequiredType, string label, Action_OnThings lAction = null, Action_OnThings rAction = null)
        {
            parentThing = parent;
            icon        = Icon.NextButton;

            parentType = RequiredType;

            _laction = lAction;
            _raction = rAction;

            defaultDesc  = Desc;
            defaultLabel = label;
        }
コード例 #4
0
        public TouchingByThingComp( Thing parent, Type RequiredType, string label, Action_OnThings LeftClick = null, Action_OnThings RightClick = null )
        {
            parentThing = parent;
            icon = Icon.NextButton;

            parentType = RequiredType;

            ClickLeft = LeftClick;
            ClickRight = RightClick;

            defaultDesc = Desc;
            defaultLabel = label;
        }
コード例 #5
0
        public TouchingByDef( Thing parent, Action_OnThings LeftClick = null, Action_OnThings RightClick = null )
        {
            parentThing = parent;
            icon = Icon.NextButton;

            ClickLeft = LeftClick;
            ClickRight = RightClick;

            defaultDesc = Desc;

            var stringBuilder = new StringBuilder();
            stringBuilder.AppendFormat( "CommandGroupOfThingsByDefLabel".Translate(), parent.def.label );
            defaultLabel = stringBuilder.ToString();
        }
        public CommandGroupOfTouchingThingsByDef( Thing parent, Action_OnThings lAction = null, Action_OnThings rAction = null )
        {
            parentThing = parent;
            icon = Icon.NextButton;

            _laction = lAction;
            _raction = rAction;

            defaultDesc = Desc;

            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.AppendFormat( "CommandGroupOfThingsByDefLabel".Translate(), parent.def.label );
            defaultLabel = stringBuilder.ToString();
        }
コード例 #7
0
        public TouchingByDef(Thing parent, Action_OnThings LeftClick = null, Action_OnThings RightClick = null)
        {
            parentThing = parent;
            icon        = Icon.NextButton;

            ClickLeft  = LeftClick;
            ClickRight = RightClick;

            defaultDesc = Desc;

            var stringBuilder = new StringBuilder();

            stringBuilder.AppendFormat("CommandGroupOfThingsByDefLabel".Translate(), parent.def.label);
            defaultLabel = stringBuilder.ToString();
        }
        public CommandGroupOfTouchingThingsByLinker(Thing parent, Action_OnThings lAction = null, Action_OnThings rAction = null)
        {
            parentThing = parent;
            icon        = Icon.NextButton;

            _laction = lAction;
            _raction = rAction;

            defaultDesc = Desc;

            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.AppendFormat("CommandGroupOfThingsByLinkerLabel".Translate(), parent.def.label);
            defaultLabel = stringBuilder.ToString();
        }
コード例 #9
0
        public TouchingByLinker(
            Thing parent,
            Texture2D designatorIcon,
            Action_OnThings LeftClick = null,
            Action_OnThings RightClick = null
            )
        {
            parentThing = parent;
            icon = designatorIcon;

            ClickLeft = LeftClick;
            ClickRight = RightClick;

            defaultDesc = Desc;

            var stringBuilder = new StringBuilder();
            stringBuilder.AppendFormat( "CommandGroupOfThingsByLinkerLabel".Translate(), parent.def.label );
            defaultLabel = stringBuilder.ToString();
        }
コード例 #10
0
        public TouchingByLinker(
            Thing parent,
            Texture2D designatorIcon,
            Action_OnThings LeftClick  = null,
            Action_OnThings RightClick = null
            )
        {
            parentThing = parent;
            icon        = designatorIcon;

            ClickLeft  = LeftClick;
            ClickRight = RightClick;

            defaultDesc = Desc;

            var stringBuilder = new StringBuilder();

            stringBuilder.AppendFormat("CommandGroupOfThingsByLinkerLabel".Translate(), parent.def.label);
            defaultLabel = stringBuilder.ToString();
        }