public ListViewItemElement(Act2DMapLayoutObject.Element element, ActObject file) { this.element = element; this.Text = file.GetNameForResourceID(element.resourceID); this.ImageIndex = 0; }
public FormPreview(Act2DMapLayoutObject layout, ActObject file) { InitializeComponent(); this.layout = layout; this.file = file; }
public MapLayoutNode(Act2DMapLayoutObject layout, FormActFile form) { this.layout = layout; this.form = form; this.Text = "Layout"; this.ImageIndex = 4; this.SelectedImageIndex = 4; }
private void DrawElement(Graphics g, Act2DMapLayoutObject.Element e) { var bitmap = file.CreateBitmapForResource(e.resourceID); if (bitmap == null) return; g.TranslateTransform(e.x, e.y); g.TranslateTransform(bitmap.Width * 0.5f, bitmap.Height * 0.5f); g.RotateTransform(e.rotate); g.ScaleTransform(e.scale_x, e.scale_y); g.TranslateTransform(-bitmap.Width * 0.5f, -bitmap.Height * 0.5f); g.DrawImage(bitmap, new PointF(0.0f, 0.0f)); }
public static Act2DMapLayoutObject CreateDefault() { Act2DMapLayoutObject ret = new Act2DMapLayoutObject(); ret.elements = new List<Element>(); return ret; }