Esempio n. 1
0
 public ShopEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     mod = m;
     //game = g;
     prntForm = p;
 }
Esempio n. 2
0
 public ConvoEditor(Module mod, ParentForm p)
 {
     InitializeComponent();
     f_convo = new Convo();
     ce_mod = mod;
     prntForm = p;
 }
Esempio n. 3
0
 public LogicTreeEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     lt = new LogicTree();
     mod = m;
     prntForm = p;
 }
Esempio n. 4
0
 public ContainerEditor(List<Item> items, IB2Toolset.Container container, ParentForm p)
 {
     InitializeComponent();
     cte_itemsList = items;
     cte_container = container;
     prntForm = p;
 }
 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. 6
0
 public EffectEditor(Module m, ParentForm pf)
 {
     InitializeComponent();
     mod = m;
     //game = g;
     prntForm = pf;
     refreshListBox();
 }
Esempio n. 7
0
 public VariablesEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     mod = m;
     prntForm = p;
     refreshGlobalListBox();
     refreshLocalListBox();
 }
Esempio n. 8
0
 public RacesEditor(Module m, ParentForm pf)
 {
     InitializeComponent();
     mod = m;
     //game = g;
     prntForm = pf;
     refreshListBox();
     refreshClassesAllowed();
     checkForNewTraits();
     checkForDeletedTraits();
     setupTraitsDataGridView();
 }
Esempio n. 9
0
 public WorldMapEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     mod = m;
     prntForm = p;
     createTileImageButtons();
     //prntForm._mainDirectory = Directory.GetCurrentDirectory();
     surface = new Bitmap(mSizeW, mSizeH);
     panelView.BackgroundImage = surface;
     device = Graphics.FromImage(surface);
     try
     {
         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");
     }
     catch (Exception ex)
     {
         MessageBox.Show("failed to load walkPass and walkBlock bitmaps: " + ex.ToString());
     }
 }
Esempio n. 10
0
 public PlayerClassEditor(Module m, ParentForm pf)
 {
     InitializeComponent();
     mod = m;
     //game = g;
     prntForm = pf;
     refreshListBox();
     fillSavesIfEmpty();
     fillOtherTablesIfEmpty();
     checkForNewTraits();
     checkForNewSpells();
     checkForNewSkills();
     checkForDeletedSkills();
     checkForDeletedSpells();
     checkForDeletedTraits();
     refreshItemsAllowed();
     refreshSkillsAllowed();
     setupSkillsDataGridView();
     setupSpellsDataGridView();
     setupTraitsDataGridView();
 }
Esempio n. 11
0
 public EncounterEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     mod = m;
     prntForm = p;
     thisEnc = prntForm.encountersList[prntForm._selectedLbxEncounterIndex];
     createTileImageButtons();
     surface = new Bitmap(mSizeW, mSizeH);
     panelView.BackgroundImage = surface;
     device = Graphics.FromImage(surface);
     try
     {
         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");
     }
     catch (Exception ex)
     {
         MessageBox.Show("failed to load walkPass and walkBlock bitmaps: " + ex.ToString());
     }
     refreshCmbItems();
     refreshLbxItems();
     refreshGoldDrop();
 }
Esempio n. 12
0
 public DataCheck(Module m, ParentForm p)
 {
     mod = m;
     frm = p;
 }
Esempio n. 13
0
 public LogForm(ParentForm pf)
 {
     InitializeComponent();
     prntForm = pf;
 }
Esempio n. 14
0
 public IBScriptForm(ParentForm pf)
 {
     InitializeComponent();
     prntForm = pf;
 }
Esempio n. 15
0
 //private Props propListImport = new Props();
 public MergerEditor(Module m, ParentForm pf)
 {
     InitializeComponent();
     mod = m;
     prntForm = pf;
 }
Esempio n. 16
0
 public ContainersForm(ParentForm pf)
 {
     InitializeComponent();
     prntForm = pf;
 }
Esempio n. 17
0
 public IconSprite(ParentForm pf)
 {
     InitializeComponent();
     prntForm = pf;
 }
Esempio n. 18
0
 public JournalEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     mod = m;
     prntForm = p;
 }
Esempio n. 19
0
 public Blueprints(ParentForm pf)
 {
     InitializeComponent();
     prntForm = pf;
 }
Esempio n. 20
0
 public PlayerEditor(ParentForm pf)
 {
     InitializeComponent();
     prntForm = pf;
 }
Esempio n. 21
0
 public void LoadCreatureBitmap(ParentForm prntForm)
 {
     if (File.Exists(prntForm._mainDirectory + "\\modules\\" + prntForm.mod.moduleName + "\\graphics\\" + this.cr_tokenFilename + ".png"))
     {
         this.creatureIconBitmap = new Bitmap(prntForm._mainDirectory + "\\modules\\" + prntForm.mod.moduleName + "\\graphics\\" + this.cr_tokenFilename + ".png");
     }
     else if (File.Exists(prntForm._mainDirectory + "\\default\\NewModule\\graphics\\" + this.cr_tokenFilename + ".png"))
     {
         this.creatureIconBitmap = new Bitmap(prntForm._mainDirectory + "\\default\\NewModule\\graphics\\" + this.cr_tokenFilename + ".png");
     }
     else
     {
         this.creatureIconBitmap = new Bitmap(prntForm._mainDirectory + "\\default\\NewModule\\graphics\\" + "missingtexture.png");
     }
 }
Esempio n. 22
0
 public IceBlinkProperties(ParentForm pf)
 {
     InitializeComponent();
     prntForm = pf;
 }
Esempio n. 23
0
 public EncountersForm(ParentForm pf)
 {
     InitializeComponent();
     prntForm = pf;
 }
Esempio n. 24
0
 public void LoadPropBitmap(ParentForm prntForm)
 {
     if (File.Exists(prntForm._mainDirectory + "\\modules\\" + prntForm.mod.moduleName + "\\graphics\\" + this.ImageFileName + ".png"))
     {
         this.propBitmap = new Bitmap(prntForm._mainDirectory + "\\modules\\" + prntForm.mod.moduleName + "\\graphics\\" + this.ImageFileName + ".png");
     }
     else if (File.Exists(prntForm._mainDirectory + "\\default\\NewModule\\graphics\\" + this.ImageFileName + ".png"))
     {
         this.propBitmap = new Bitmap(prntForm._mainDirectory + "\\default\\NewModule\\graphics\\" + this.ImageFileName + ".png");
     }
     else
     {
         this.propBitmap = new Bitmap(prntForm._mainDirectory + "\\default\\NewModule\\graphics\\" + "missingtexture.png");
     }
 }
Esempio n. 25
0
 public ConversationsForm(ParentForm pf)
 {
     InitializeComponent();
     prntForm = pf;
 }