Beispiel #1
0
        public Descriptions(Datapull Data)
        {
            AllDesc = new Dictionary <string, List <string> >();
            int count = 0;
            List <List <string> > TempData  = Data.GetDescriptions();
            List <string>         BodyParts = TempData.Last();

            TempData.RemoveAt(TempData.IndexOf(TempData.Last()));
            foreach (List <string> TempList in TempData)
            {
                AllDesc.Add(BodyParts[count], TempList);
                count++;
            }
        }
Beispiel #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Data = new Datapull();
     //loads the main menu and the button images used throughout the software into the memory. Those images are not applied in the form editor to allow for them to be changed.
     //Ideally there would be the ability to create buttons, and while an implementation would be possible, it's not a priority.
     Button4x1                            = new Bitmap(@"Images\UI\elements\button 4x1.png");
     Button4x1Hover                       = new Bitmap(@"Images\UI\elements\button 4x1_ho.png");
     Button2x3                            = new Bitmap(@"Images\UI\elements\button 2x3.png");
     Button2x3Hover                       = new Bitmap(@"Images\UI\elements\button 2x3_ho.png");
     ButtonGeneral                        = new Bitmap(@"Images\UI\elements\button 3x3.png");
     ButtonGeneralHover                   = new Bitmap(@"Images\UI\elements\button 3x3_ho.png");
     BackgroundGeneral                    = new Bitmap(@"Images\UI\elements\background patternResize.png");
     pnlMainMenu.BackgroundImage          = new Bitmap(@"Images\UI\main menu bg.png");
     ButtonWide                           = new Bitmap(@"Images\UI\elements\button wide.png");
     ButtonWideHover                      = new Bitmap(@"Images\UI\elements\button wide_ho.png");
     btnMainMenuOptions.BackgroundImage   = Button4x1;
     btnMainMenuStartGame.BackgroundImage = Button4x1;
     btnMainMenuLoadGame.BackgroundImage  = Button4x1;
     EventConvo                           = new Dictionary <string, EventConvoHandler>();
 }