Inheritance: MonoBehaviour
Esempio n. 1
0
        private static void MainMenu_ctor(On.Menu.MainMenu.orig_ctor orig, Menu.MainMenu self, ProcessManager manager, bool showRegionSpecificBkg)
        {
            orig(self, manager, showRegionSpecificBkg);

            startServer = new SimpleButton(self, self.pages[0], "START SERVER", "START_SERVER", new Vector2(200f, 400f), new Vector2(110f, 30f));
            //startClient = new SimpleButton(self, self.pages[0], "START CLIENT", "START_CLIENT", new Vector2(startServer.pos.x + 120, startServer.pos.y), new Vector2(110f, 30f));

            self.pages[0].subObjects.Add(startServer);
            //self.pages[0].subObjects.Add(startClient);
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MMEal = ((Menu.MainMeal)(target));
                return;

            case 2:
                this.MMenu = ((Menu.MainMenu)(target));
                return;

            case 3:
                this.butt_1 = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\..\MainWindow.xaml"
                this.butt_1.Click += new System.Windows.RoutedEventHandler(this.butt_1_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.butt_2 = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\..\MainWindow.xaml"
                this.butt_2.Click += new System.Windows.RoutedEventHandler(this.butt_2_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.butt_3 = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.butt_4 = ((System.Windows.Controls.Button)(target));
                return;

            case 7:
                this.butt_5 = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }