private void Form1_Load(object sender, EventArgs e) { state = new LiveSplitState(); aslComponent = new ASLComponent(state); //this.Controls.Add(aslComponent.GetSettingsControl(new LayoutMode())); CardStatus.LoadImages(); CardSelector.LoadImages(); LevelStatus.LoadImages(); AchievementStatus.LoadImages(); AchievementSelector.LoadImages(); CardStatus.Cards = CardStatus.GenerateCards(); AchievementStatus.Achievements = AchievementStatus.GenerateAchievements(); RoomStatus.InitializeRoomToCardMap(); RoomStatus.InitializeRoomToAchievementMap(); }
private void pbCardStatus_Paint(object sender, PaintEventArgs e) { //e.Graphics.FillRectangle(blackBrush, 0, 0, 320, 320); for (int i = 0; i < CardStatus.Cards.Count; i++) { CardStatus.DrawCard(e, CardStatus.Cards[i]); } foreach (int cardID in cardsInRoom) { CardSelector.DrawSelector(e, CardStatus.Cards[cardID - 1]); } for (int i = 0; i < AchievementStatus.Achievements.Count; i++) { AchievementStatus.DrawAchievement(e, AchievementStatus.Achievements[i]); } foreach (int achievementID in cardsInRoom) { AchievementSelector.DrawSelector(e, AchievementStatus.Achievements[achievementID - 1]); } }