public AnimationTestForm(FileManager fileManager) { InitializeComponent(); animations = new List<string>(); animations.Add("health anim "); animations.Add("power anim "); loader = new AtlasImageLoader(); loader.LoadAtlas(@"data\uix\xml\main_new_atlas.xml", fileManager); handler = new AnimationHandler(); handler.Speed = (int)numericUpDown1.Value; handler.NewFrameEvent += new NewFrame(handler_NewFrameEvent); handler.AddOverlay(loader.GetImage("meter mask")); handler.AddOverlay(loader.GetImage("health meter")); comboBox1.DataSource = animations; }
public AnimationTestForm(FileManager fileManager) { InitializeComponent(); animations = new List <string>(); animations.Add("health anim "); animations.Add("power anim "); loader = new AtlasImageLoader(); loader.LoadAtlas(@"data\uix\xml\main_new_atlas.xml", fileManager); handler = new AnimationHandler(); handler.Speed = (int)numericUpDown1.Value; handler.NewFrameEvent += new NewFrame(handler_NewFrameEvent); handler.AddOverlay(loader.GetImage("meter mask")); handler.AddOverlay(loader.GetImage("health meter")); comboBox1.DataSource = animations; }