Exemplo n.º 1
0
 public ShopEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     mod = m;
     //game = g;
     prntForm = p;
 }
Exemplo n.º 2
0
 public ConvoEditor(Module mod, ParentForm p)
 {
     InitializeComponent();
     f_convo = new Convo();
     ce_mod = mod;
     prntForm = p;
 }
Exemplo n.º 3
0
 public LogicTreeEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     lt = new LogicTree();
     mod = m;
     prntForm = p;
 }
Exemplo n.º 4
0
 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();
 }
Exemplo n.º 5
0
 public EffectEditor(Module m, ParentForm pf)
 {
     InitializeComponent();
     mod = m;
     //game = g;
     prntForm = pf;
     refreshListBox();
 }
Exemplo n.º 6
0
 public VariablesEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     mod = m;
     prntForm = p;
     refreshGlobalListBox();
     refreshLocalListBox();
 }
Exemplo n.º 7
0
 public RacesEditor(Module m, ParentForm pf)
 {
     InitializeComponent();
     mod = m;
     //game = g;
     prntForm = pf;
     refreshListBox();
     refreshClassesAllowed();
     checkForNewTraits();
     checkForDeletedTraits();
     setupTraitsDataGridView();
 }
Exemplo n.º 8
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();
 }
Exemplo 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());
     }
 }
Exemplo n.º 10
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();
 }
Exemplo n.º 11
0
 public DataCheck(Module m, ParentForm p)
 {
     mod = m;
     frm = p;
 }
Exemplo n.º 12
0
 public JournalEditor(Module m, ParentForm p)
 {
     InitializeComponent();
     mod = m;
     prntForm = p;
 }
Exemplo n.º 13
0
 //private Props propListImport = new Props();
 public MergerEditor(Module m, ParentForm pf)
 {
     InitializeComponent();
     mod = m;
     prntForm = pf;
 }
Exemplo n.º 14
0
 private void openModule(string filename)
 {
     mod = mod.loadModuleFile(filename);
     if (mod == null)
     {
         MessageBox.Show("returned a null module");
     }
     frmAreas.lbxAreas.DataSource = null;
     frmAreas.lbxAreas.DataSource = mod.moduleAreasList;
     frmAreas.refreshListBoxAreas();
     frmConversations.refreshListBoxConvos();
     frmLogicTree.refreshListBoxLogicTrees();
     frmIBScript.refreshListBoxIBScripts();
 }