Beispiel #1
0
        public frmMapScript(GBHL.GBFile g, int map, int group)
        {
            gb  = g;
            grp = group;
            bm  = (byte)map;
            m   = new MapScripts(gb);
            InitializeComponent();
            int b = m.loadScript(map, group);

            if (b == -1)
            {
                panel2.Visible = true;
                return;
            }
            panel1.Visible = true;
            nScript.Value  = (byte)b;
        }
Beispiel #2
0
        public frmSecondaryScript(GBHL.GBFile g, MapScripts ms, int grp, int mp)
        {
            gb    = g;
            m     = ms;
            group = grp;
            map   = mp;
            InitializeComponent();
            int i = m.loadSecondaryScriptRef(group, map);

            sl = i;
            if (i == -1)
            {
                panel2.Visible = true;
            }
            else
            {
                panel1.Visible = true;
                nScript.Value  = gb.ReadByte(i + 1);
            }
        }