Ejemplo n.º 1
0
 public override IEnumerable<Command> CompGetGizmosExtra()
 {
     GizmoAmmoStatus gizmoAmmoStatus = new GizmoAmmoStatus
     {
         compAmmo = this
     };
     yield return gizmoAmmoStatus;
     if (this.Wielder != null)
     {
         Command_Action command_Action = new Command_Action
         {
             action = new Action(this.StartReload),
             defaultLabel = Translator.Translate("Plasma_ReloadLabel"),
             defaultDesc = Translator.Translate("Plasma_ReloadDesc"),
             icon = ContentFinder<Texture2D>.Get("UI/Buttons/Reload", true)
         };
         yield return command_Action;
     }
     yield break;
 }
        public override IEnumerable <Command> CompGetGizmosExtra()
        {
            GizmoAmmoStatus gizmoAmmoStatus = new GizmoAmmoStatus
            {
                compAmmo = this
            };

            yield return(gizmoAmmoStatus);

            if (this.Wielder != null)
            {
                Command_Action command_Action = new Command_Action
                {
                    action       = new Action(this.StartReload),
                    defaultLabel = Translator.Translate("CR_ReloadLabel"),
                    defaultDesc  = Translator.Translate("CR_ReloadDesc"),
                    icon         = ContentFinder <Texture2D> .Get("UI/Buttons/Reload", true)
                };
                yield return(command_Action);
            }
            yield break;
        }
Ejemplo n.º 3
0
        public override IEnumerable<Command> CompGetGizmosExtra()
        {
            var ammoStat = new GizmoAmmoStatus
            {
                compAmmo = this
            };

            yield return ammoStat;

            if (this.Wielder != null)
            {
                var com = new Command_Action
                {
                    action = StartReload,
                    defaultLabel = "CR_ReloadLabel".Translate(),
                    defaultDesc = "CR_ReloadDesc".Translate(),
                    icon = ContentFinder<Texture2D>.Get("UI/Buttons/Reload", true)
                };

                yield return com;
            }
        }