public EncounterBuilder(Module m, ParentForm p)
 {
     InitializeComponent();
     mod = m;
     prntForm = p;
     createTileImageButtons();
     surface = new Bitmap(mSizeW, mSizeH);
     panelView.BackgroundImage = surface;
     device = Graphics.FromImage(surface);
     g_walkPass = new Bitmap(prntForm._mainDirectory + "\\modules\\" + prntForm.mod.moduleName + "\\graphics\\walk_pass.png");
     g_walkBlock = new Bitmap(prntForm._mainDirectory + "\\modules\\" + prntForm.mod.moduleName + "\\graphics\\walk_block.png");
     g_LoSBlock = new Bitmap(prntForm._mainDirectory + "\\modules\\" + prntForm.mod.moduleName + "\\graphics\\los_block.png");
     if (prntForm.encountersList.Count < 1)
     {
         Encounter newEnc = new Encounter();
         newEnc.SetAllToGrass();
         prntForm.encountersList.Add(newEnc);
     }
     refreshMap();
     refreshListBoxEncounters();
     refreshListBoxCreatures();
     refreshCmbItems();
     refreshLbxItems();
     refreshGoldDrop();
 }
Esempio n. 2
0
 private void btnAddEncounter_Click_1(object sender, EventArgs e)
 {
     Encounter newEncounter = new Encounter();
     newEncounter.encounterName = "new encounter";
     newEncounter.SetAllToGrass();
     //newEncounter.passRefs(prntForm.game, prntForm);
     prntForm.encountersList.Add(newEncounter);
     refreshListBoxEncounters();
     // should I create a new file at this point?
 }
Esempio n. 3
0
        private void btnAddEncounter_Click_1(object sender, EventArgs e)
        {
            Encounter newEncounter = new Encounter();

            newEncounter.encounterName = "new encounter";
            newEncounter.SetAllToGrass();
            //newEncounter.passRefs(prntForm.game, prntForm);
            prntForm.encountersList.Add(newEncounter);
            refreshListBoxEncounters();
            // should I create a new file at this point?
        }