Exemple #1
0
 public void cancel_stats_gain()
 {
     Timer = 0;
     Arrows.Clear();
     Stat_Gains.Clear();
     Swirls.Clear();
 }
Exemple #2
0
        public void gain_stats(Dictionary <TactileLibrary.Boosts, int> boosts)
        {
            Glow_Timer = 0;
            Timer      = STAT_GAIN_TIME;
            Arrows.Clear();
            Stat_Gains.Clear();
            Swirls.Clear();

            foreach (KeyValuePair <TactileLibrary.Boosts, int> pair in boosts)
            {
                Vector2 loc;
                if (pair.Key == TactileLibrary.Boosts.Con)
                {
                    loc = new Vector2(16 + ((((int)Stat_Labels.Con) / 4) * SPACING()), (((int)Stat_Labels.Con) % 4) * 16);
                }
                else
                {
                    loc = new Vector2(16 + ((((int)pair.Key) / 4) * SPACING()), ((((int)pair.Key) % 4) * 16));
                }

                Stat_Gains.Add(new Quick_Stat_Up_Num(new List <Texture2D> {
                    Global.Content.Load <Texture2D>(@"Graphics/Fonts/" + Config.PROMOTION_STAT_FONT),
                    Global.Content.Load <Texture2D>(@"Graphics/Fonts/" + Config.LEVEL_STAT_FONT)
                }));
                Stat_Gains[Stat_Gains.Count - 1].value = pair.Value;
                Stat_Gains[Stat_Gains.Count - 1].loc   = loc + new Vector2(40, 23);
                Arrows.Add(new Stat_Change_Arrow());
                Arrows[Arrows.Count - 1].texture = Global.Content.Load <Texture2D>(@"Graphics/Pictures/" + Stat_Change_Arrow.FILENAME);
                Arrows[Arrows.Count - 1].loc     = loc + new Vector2(32, 1);
                ((Stat_Change_Arrow)Arrows[Arrows.Count - 1]).update(0);
                Swirls.Add(new Stat_Up_Spark());
                Swirls[Swirls.Count - 1].loc = loc + new Vector2(-5, -7);
                Swirls[Swirls.Count - 1].update();
            }
        }
        public IEnumerable <ArrowControlFactorySet> Clear()
        {
            foreach (ArrowControlFactorySet set in Arrows.Values)
            {
                yield return(set);
            }

            Arrows.Clear();
        }
Exemple #4
0
 /// <inheritdoc />
 protected override void UnloadContent()
 {
     Primitive.Dispose();
     Arrows.ForEach(arrow => arrow.Dispose());
     Arrows.Clear();
     Primitive.Dispose();
     FullScreenQuad.Dispose();
     Effect.Dispose();
     DebugTextureEffect.Dispose();
     base.UnloadContent();
 }
 public void move_off()
 {
     Window_Move_Array = new List <int> {
         0, 0, 0, -18, -18, -18, -18, -18, -18, -18, -18
     };
     Header_Move_Array = new List <int> {
         0, 0, 0, -18, -18, -18, -18, -18, -18, -18, -18
     };
     Face_Move_Array = new List <int> {
         0, 0, 0, 12, 12, 12, 12, 12, 12, 12, 12
     };
     Arrows.Clear();
     Bars.Clear();
     Stat_Gains.Clear();
 }
Exemple #6
0
 public void NewMap(string name)
 {
     map = new Map("./data/Maps/" + name + ".txt");
     foreach (var i in players)
     {
         map.AddPlayer(i.Key);
         players[i.Key].respawn();
     }
     Arrows.Clear();
     Drops.Clear();
     DropForRespawn.Clear();
     for (int i = 0; i < map.dropSpawners.Count; ++i)
     {
         int tag = Utily.GetTag();
         map.SpawnDrops(i, tag);
         Drops.Add(tag, new ADrop(map.dropSpawners[i].count, map.dropSpawners[i].id));
     }
     timer.Restart();
 }
 public override void Remove()
 {
     GCanvas.Canvas.Children.Remove(HeaderLine.Line);
     Arrows.ForEach(e => e.Remove());
     Arrows.Clear();
 }