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; }
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; } }