コード例 #1
0
ファイル: GumpItem.cs プロジェクト: simarsenault/ScriptSDK
 internal GumpItem(TilePicture tp)
 {
     Location  = new Point2D(tp.X, tp.Y);
     GraphicID = tp.Id;
     Color     = tp.Color;
     Page      = tp.Page;
     ElementID = tp.ElemNum;
 }
コード例 #2
0
 private void DrawTileDialog_Shown(object sender, EventArgs e)
 {
     tileGfx = TilePicture.CreateGraphics();
     tileGfx.SetOptions();
     using (System.IO.MemoryStream ms = new System.IO.MemoryStream(Properties.Resources.pencilcur))
         pencilcur = new Cursor(ms);
     using (System.IO.MemoryStream ms = new System.IO.MemoryStream(Properties.Resources.fillcur))
         fillcur = new Cursor(ms);
     TilePicture.Cursor = pencilcur;
     TilePicture.Size   = new Size(tile.Width * (int)numericUpDown1.Value, tile.Height * (int)numericUpDown1.Value);
 }
コード例 #3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     string[] args = Environment.GetCommandLineArgs();
     if (args.Length == 1)
     {
         files    = new List <FontItem>();
         filename = null;
     }
     else
     {
         LoadFile(args[1]);
     }
     tileGfx = TilePicture.CreateGraphics();
     tileGfx.SetOptions();
     TilePicture.Cursor = new Cursor(new System.IO.MemoryStream(Properties.Resources.pencilcur));
     TilePicture.Size   = new Size(24 * (int)trackBar1.Value, 24 * (int)trackBar1.Value);
 }
コード例 #4
0
 private void TilePicture_Resize(object sender, EventArgs e)
 {
     tileGfx = TilePicture.CreateGraphics();
     tileGfx.SetOptions();
 }