Example #1
0
 void clicked(object sender, MouseEventArgs e)
 {
     if (e.X > 2 && e.X < 302 && e.Y > 125 && e.Y < 150)
     {
         SectionLinks.openLink("http://forums.rpgmakerweb.com/index.php?/topic/61546-undertale-battle-system-beta-120/");
     }
 }
Example #2
0
        public MainForm(RealWindow _rw)
        {
            rw = _rw;

            try {
                Holder.happyIcon = new Icon(Directory.GetCurrentDirectory() + "/Assets/icon.ico");
                this.Icon        = Holder.happyIcon;
            }
            catch (Exception ex) {
                MessageBox.Show("error loading icon file.\n" + ex.ToString());
                Application.Exit();
            }

            this.Text      = "UTB thing";
            this.Name      = "NoobThingForRob";
            sectionList[0] = (Section) new SectionRed();
            sectionList[1] = new SectionOrange(this);
            sectionList[2] = new SectionYellow();
            sectionList[3] = new SectionGreen();
            sectionList[4] = new SectionCyan();
            sectionList[5] = new SectionBlue(this);
            sectionList[6] = new SectionPurple();
            sectionList[7] = new SectionLinks();
            sectionList[8] = new SectionAbout();
            currentSection = sectionList[0];

            currentSection.initSection(this);

            this.FormBorderStyle = FormBorderStyle.None;

            this.MaximizeBox = false;

            this.Move += new EventHandler(moved);
            //this.Activated += new EventHandler(gotFocused);



            mf               = new MoveForm(this);
            mf.TopLevel      = false;
            mf.happyMainForm = this;
            //mf.Show();
        }