void classe_thumb_MouseClic(Bmp bmp, MouseEventArgs e) { Enums.ActorClass.ClassName className = (Enums.ActorClass.ClassName)Enum.Parse(typeof(Enums.ActorClass.ClassName), bmp.name); ibPlayers.ChangeBmp(@"gfx\general\classes\" + bmp.name + ".dat", SpriteSheet.GetSpriteSheet(bmp.name, 0)); ibPlayers.point = new Point(ScreenManager.WindowWidth / 2 - (ibPlayers.rectangle.Width / 2), terrain.point.Y - ibPlayers.rectangle.Height + 10); ibPlayers.visible = true; illustration.ChangeBmp(@"gfx\general\classes\illustrations\" + bmp.name + ".dat", 0.5F); illustration.point = new Point(ScreenManager.WindowWidth - 50 - illustration.rectangle.Width, 20); illustration.visible = true; playerName.Text = CommonCode.TranslateText(40) + " : " + bmp.name; playerName.point.X = (infosPlayer.size.Width / 2) - (TextRenderer.MeasureText(playerName.Text, playerName.font).Width / 2); cadre_Select_Player.point = classes_thumbs_points[CommonCode.ClassNameToId(className)]; selected_Class = (Enums.ActorClass.ClassName)Enum.Parse(typeof(Enums.ActorClass.ClassName), bmp.name); no_color_1.visible = true; no_color_2.visible = true; no_color_3.visible = true; //if (allowFirstLaunch) //MainForm.ForeSound.URL = @"sfx\drum1.mp3"; //else //allowFirstLaunch = true; CommonCode.foresound.SoundLocation = @"sfx\drum1.wav"; CommonCode.foresound.LoadAsync(); CommonCode.foresound.Play(); }