Esempio n. 1
0
        public CoordGetter(RappelzMapEditor res, string info, int id, int type, NFCCoords[] points, int x, int y)
        {
            InitializeComponent();
            this.main          = res;
            this.nfccoords     = points;
            this.lbl_info.Text = info;
            this.id            = id;
            this.type          = type;
            for (int i = 0; i < nfccoords.Length; i++)
            {
                this.cb_coordset.Items.Add("Coordset " + (i + 1));
            }


            this.count_coords = nfccoords[0].coords.Length - 1;
            this.cb_coordset.SelectedIndex = 0;
            this.cb_coordset.Enabled       = true;
            for (int i = 0; i < nfccoords[0].coords.Length - 1; i++)
            {
                this.coords.Add(nfccoords[0].coords[i]);
                this.coordlist.Items.Add((i + 1).ToString() + ". x:" + (Convert.ToInt32((nfccoords[0].coords[i].X) * 5.25) + (x * 16128)).ToString() + " y:" + (Convert.ToInt32((3072 - (nfccoords[0].coords[i].Y)) * 5.25) + (y * 16128)).ToString());
            }
            if (nfccoords.Length <= 1)
            {
                this.btn_delcoordset.Enabled = false;
                this.cb_coordset.Enabled     = false;
            }
            this.loading = false;
        }
Esempio n. 2
0
 public NFMPropSetter(RappelzMapEditor res, int mapx, int mapy)
 {
     this.res  = res;
     this.mapx = mapx;
     this.mapy = mapy;
     InitializeComponent();
 }
Esempio n. 3
0
 public CoordGetter(RappelzMapEditor res, string info, int id, int type, PointF[] points, int x, int y)
 {
     InitializeComponent();
     this.main          = res;
     this.lbl_info.Text = info;
     this.count_coords  = 0;
     this.id            = id;
     this.type          = type;
     this.x             = x;
     this.y             = y;
     this.count_coords  = points.Length - 1;
     this.cb_coordset.Items.Add("Coordset 1");
     this.cb_coordset.SelectedIndex = 0;
     this.actindex = 0;
     this.btn_delcoordset.Enabled = false;
     this.button1.Enabled         = false;
     this.brn_qpfsave.Enabled     = false;
     this.cb_coordset.Enabled     = false;
     this.btn_delcoordset.Enabled = false;
     this.cb_coordset.Enabled     = false;
     for (int i = 0; i < points.Length - 1; i++)
     {
         this.coords.Add(points[i]);
         this.coordlist.Items.Add((i + 1).ToString() + ". x:" + (Convert.ToInt32((points[i].X) * 5.25) + (x * 16128)).ToString() + " y:" + (Convert.ToInt32((3072 - (points[i].Y)) * 5.25) + (y * 16128)).ToString());
     }
 }
Esempio n. 4
0
 public NFMHelper(RappelzMapEditor res, PointF[] props)
 {
     InitializeComponent();
     this.grass = true;
     this.gdata = props;
     this.dg_nfaprops.DataSource = gdata;
     this.dg_nfaprops.Refresh();
     this.main = res;
 }
Esempio n. 5
0
 public NFMHelper(RappelzMapEditor res, VectorData[] props)
 {
     InitializeComponent();
     this.vecdata = props;
     this.dg_nfaprops.DataSource = vecdata;
     this.dg_nfaprops.Refresh();
     this.main   = res;
     this.vector = true;
 }
Esempio n. 6
0
 public NFMHelper(RappelzMapEditor res, NFM_VERTEXSTRUCT_V11[] props)
 {
     InitializeComponent();
     this.verdata = props;
     this.dg_nfaprops.DataSource = verdata;
     this.dg_nfaprops.Refresh();
     this.main   = res;
     this.vertex = true;
 }
Esempio n. 7
0
 public NFMHelper(RappelzMapEditor res, PROPS_TABLE_STRUCTURE[] props)
 {
     InitializeComponent();
     pdata = props;
     this.dg_nfaprops.DataSource = pdata;
     this.dg_nfaprops.Refresh();
     this.main  = res;
     this.props = true;
 }
Esempio n. 8
0
 public TerrainEditer(RappelzMapEditor res)
 {
     this.res = res;
     InitializeComponent();
     this.checkBox3.Checked  = true;
     this.checkBox4.Checked  = true;
     this.chk_Color.Checked  = true;
     this.chk_Height.Checked = true;
     this.checkValues();
 }
Esempio n. 9
0
 public QPFSetter(RappelzMapEditor res, int x, int y)
 {
     InitializeComponent();
     this.lbl_qpfhint.Text = @"If your Fieldprop won't show up, make sure that there are no identical ID2s in the whole qpf file! ID and ID2 can be different! Use the round button to setup the orientation of the Fieldprop. Directions on the button and on the map are the same.";
     this.main             = res;
     this.x             = x;
     this.y             = y;
     this.lbl_xval.Text = x.ToString();
     this.lbl_yval.Text = y.ToString();
 }
Esempio n. 10
0
 public NPCSetter(RappelzMapEditor res, int x, int y, int id)
 {
     InitializeComponent();
     this.main          = res;
     this.x             = x;
     this.y             = y;
     this.lbl_xval.Text = x.ToString();
     this.lbl_yval.Text = y.ToString();
     this.txt_id.Text   = id.ToString();
 }
Esempio n. 11
0
 public NFESetter(RappelzMapEditor res, string info, int mapx, int mapy)
 {
     InitializeComponent();
     this.main          = res;
     this.lbl_info.Text = info;
     this.count_coords  = 0;
     this.loading       = false;
     this.mapx          = mapx;
     this.mapy          = mapy;
 }
Esempio n. 12
0
        public TextureEditer(RappelzMapEditor res)
        {
            this.main = res;

            InitializeComponent();
            this.chkValues();
            this.chk_t1.Checked = true;
            this.chk_t2.Checked = true;
            this.chk_t3.Checked = true;
            this.chk_V.Checked  = true;
        }
Esempio n. 13
0
 public NFSSetter(RappelzMapEditor res, string info, int id)
 {
     InitializeComponent();
     this.main = res;
     this.updateinfo(info);
     this.brn_qpfsave.Enabled = false;
     this.id             = id;
     this.txt_id.Enabled = false;
     this.txt_id.Text    = id.ToString();
     lbl_info.Text       = "Click Top-Left Corner of area.";
 }
Esempio n. 14
0
 public NFCSetter(RappelzMapEditor res, string info, int id, int map_x, int map_y)
 {
     InitializeComponent();
     this.main          = res;
     this.lbl_info.Text = info;
     this.count_coords  = 0;
     this.txt_id.Text   = id.ToString();
     this.cb_coordset.Items.Add("Coordset 1");
     this.cb_coordset.SelectedIndex = 0;
     this.cb_coordset.Enabled       = false;
     this.coordsetcnt           = 1;
     this.coordsets             = new NFCCoords[this.coordsetcnt];
     this.loading               = false;
     this.actindex              = 0;
     this.mapx                  = map_x;
     this.mapy                  = map_y;
     this.btn_editcoord.Enabled = false;
     this.btn_delcoord.Enabled  = false;
 }