private void layer_ValueChanged(object sender, EventArgs e) { if (!canDetect) { return; } Tilemapper.AdjustLayer(tm.id, (int)layer.Value); Tilemapper.ConvertAndSetMap(tm); }
private void y_ValueChanged(object sender, EventArgs e) { if (!canDetect) { return; } tm.y = (int)y.Value; Tilemapper.ConvertAndSetMap(tm); Tilemapper.SetCurrentTile(); }
private void collides_CheckedChanged(object sender, EventArgs e) { tm.collides = collides.Checked; if (tm.collides) { Tilemapper.ConvertAndSetMap(tm); } else { Engine.form.RefreshBrowser(); } }
private void scale_ValueChanged(object sender, EventArgs e) { if (!canDetect) { return; } tm.scale = (int)scale.Value; if (Tilemapper.editing != -1) { Tilemapper.StopEditing(); Tilemapper.BeginEditing(tm.id); } selected = default(Point); Tilemapper.ConvertAndSetMap(tm); }