Exemplo n.º 1
0
        //vanilla
        public uiToolBox(uiMapEditer StartEditer)
        {
            this.Editer = StartEditer;
            this.voidnew();

            this.CreateVanillaControls();
            this.RefreshSize();
        }
Exemplo n.º 2
0
        //mods
        public uiToolBox(uiMapEditer StartEditer, string sModName)
        {
            this.Editer = StartEditer;
            this.voidnew();

            this.CreateModControls(sModName);
            this.RefreshSize();
        }
Exemplo n.º 3
0
        public Form1()
        {
            InitializeComponent();
            this.KeyDown += new KeyEventHandler(this.Form1_KeyDown);
            this.KeyUp   += new KeyEventHandler(this.Form1_KeyUp);

            this.Map = new oMap();

            this.Editer              = new uiMapEditer(this.Map);
            this.Editer.Parent       = this;
            this.Editer.VirtualWidth = 20f;             // 10f

            this.TB        = new uiToolBox(this.Editer);
            this.TB.Parent = this;
        }
Exemplo n.º 4
0
        public uiToolBox(uiMapEditer StartEditer)
        {
            this.Editer = StartEditer;

            this.panele             = new Panel();
            this.panele.BorderStyle = BorderStyle.FixedSingle;
            this.panele.AutoScroll  = true;
            this.panele.BackColor   = Color.FromArgb(32, 32, 32);

            this.TextBelt           = new Label();
            this.TextBelt.Parent    = this.panele;
            this.TextBelt.Text      = "Belt :";
            this.TextBelt.ForeColor = Color.White;

            this.TextAssembler           = new Label();
            this.TextAssembler.Parent    = this.panele;
            this.TextAssembler.Text      = "Assembler :";
            this.TextAssembler.ForeColor = Color.White;



            this.CreateControls();
            this.RefreshSize();
        }
Exemplo n.º 5
0
        public Form1()
        {
            InitializeComponent();
            this.KeyDown += new KeyEventHandler(this.Form1_KeyDown);
            this.KeyUp   += new KeyEventHandler(this.Form1_KeyUp);
            this.TabContainer.DrawItem += new DrawItemEventHandler(this.TabContainer_DrawItem);
            this.FormClosing           += new FormClosingEventHandler(this.Form1_FormClosing);


            this.Map = new oMap();

            this.Editer                    = new uiMapEditer(this.Map);
            this.Editer.Parent             = this;
            this.Editer.VirtualWidth       = 20f;       // 20f
            this.Editer.UserDidSomeChange += new EventHandler(this.Editer_UserDidSomeChange);


            //load every currently loaded mod
            this.LoadEveryMod();



            this.CreateCraftsEvents();
        }