public SelectDestination(string order, SupportPowerManager manager, ChronoshiftPower power, int2 sourceLocation) { this.manager = manager; this.order = order; this.power = power; this.sourceLocation = sourceLocation; this.range = (power.Info as ChronoshiftPowerInfo).Range; // todo: this burns up more texture space every time someone uses chronoshift. validTile = UiOverlay.SynthesizeTile(0x0f); invalidTile = UiOverlay.SynthesizeTile(0x08); sourceTile = UiOverlay.SynthesizeTile(0x04); }
public SelectTarget(string order, SupportPowerManager manager, ChronoshiftPower power) { this.manager = manager; this.order = order; this.power = power; this.range = (power.Info as ChronoshiftPowerInfo).Range; tile = UiOverlay.SynthesizeTile(0x04); }
public SelectTarget(string order, SupportPowerManager manager, ChronoshiftPower power) { this.manager = manager; this.order = order; this.power = power; this.range = (power.Info as ChronoshiftPowerInfo).Range; tile = SequenceProvider.GetSequence("overlay", "target-select").GetSprite(0); }
public SelectDestination(string order, SupportPowerManager manager, ChronoshiftPower power, CPos sourceLocation) { this.manager = manager; this.order = order; this.power = power; this.sourceLocation = sourceLocation; this.range = (power.Info as ChronoshiftPowerInfo).Range; validTile = SequenceProvider.GetSequence("overlay", "target-valid").GetSprite(0); invalidTile = SequenceProvider.GetSequence("overlay", "target-invalid").GetSprite(0); sourceTile = SequenceProvider.GetSequence("overlay", "target-select").GetSprite(0); }
public SelectDestination(World world, string order, SupportPowerManager manager, ChronoshiftPower power, CPos sourceLocation) { this.manager = manager; this.order = order; this.power = power; this.sourceLocation = sourceLocation; this.range = ((ChronoshiftPowerInfo)power.Info).Range; var tileset = manager.self.World.TileSet.Id.ToLowerInvariant(); validTile = world.Map.SequenceProvider.GetSequence("overlay", "target-valid-{0}".F(tileset)).GetSprite(0); invalidTile = world.Map.SequenceProvider.GetSequence("overlay", "target-invalid").GetSprite(0); sourceTile = world.Map.SequenceProvider.GetSequence("overlay", "target-select").GetSprite(0); }