private void InitializeWidget(LayoutOrientation orientation)
        {
            PagePanel_1 = new PagePanel();
            PagePanel_1.Name = "PagePanel_1";
            Button_1 = new Button();
            Button_1.Name = "Button_1";

            // PagePanel_1
            PagePanel_1.AddPage(new PanelStage(Global.StageID.Stage1));
            PagePanel_1.AddPage(new PanelStage(Global.StageID.Stage2));
            PagePanel_1.AddPage(new PanelStage(Global.StageID.Stage3));

            // Button_1
            Button_1.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_1.TextFont = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            Button_1.BackgroundFilterColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);

            // PanelSelect
            this.BackgroundColor = new UIColor(153f / 255f, 153f / 255f, 153f / 255f, 255f / 255f);
            this.Clip = true;
            this.AddChildLast(PagePanel_1);
            this.AddChildLast(Button_1);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            sceneBackgroundPanel = new Panel();
            sceneBackgroundPanel.Name = "sceneBackgroundPanel";
            PagePanel_1 = new PagePanel();
            PagePanel_1.Name = "PagePanel_1";
            CreditsTitleText = new Label();
            CreditsTitleText.Name = "CreditsTitleText";
            BackButton = new Button();
            BackButton.Name = "BackButton";

            // sceneBackgroundPanel
            sceneBackgroundPanel.BackgroundColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);

            // PagePanel_1
            PagePanel_1.AddPage(new CreditsPanel());
            PagePanel_1.AddPage(new ThanksPanel());

            // CreditsTitleText
            CreditsTitleText.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            CreditsTitleText.Font = new UIFont(FontAlias.System, 72, FontStyle.Regular);
            CreditsTitleText.LineBreak = LineBreak.Character;

            // BackButton
            BackButton.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            BackButton.TextFont = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            BackButton.Style = ButtonStyle.Custom;
            BackButton.CustomImage = new CustomButtonImageSettings()
            {
                BackgroundNormalImage = new ImageAsset("/Application/assets/images/UI/blueBtn.png"),
                BackgroundPressedImage = new ImageAsset("/Application/assets/images/UI/blueBtnOver.png"),
                BackgroundDisabledImage = null,
                BackgroundNinePatchMargin = new NinePatchMargin(42, 27, 42, 27),
            };

            // CreditsScene
            this.RootWidget.AddChildLast(sceneBackgroundPanel);
            this.RootWidget.AddChildLast(PagePanel_1);
            this.RootWidget.AddChildLast(CreditsTitleText);
            this.RootWidget.AddChildLast(BackButton);
            this.Showing += new EventHandler(onShowing);
            this.Shown += new EventHandler(onShown);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Exemplo n.º 3
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            sceneBackgroundPanel      = new Panel();
            sceneBackgroundPanel.Name = "sceneBackgroundPanel";
            Button_1           = new Button();
            Button_1.Name      = "Button_1";
            Button_2           = new Button();
            Button_2.Name      = "Button_2";
            Button_3           = new Button();
            Button_3.Name      = "Button_3";
            Button_4           = new Button();
            Button_4.Name      = "Button_4";
            Button_5           = new Button();
            Button_5.Name      = "Button_5";
            Button_6           = new Button();
            Button_6.Name      = "Button_6";
            Button_7           = new Button();
            Button_7.Name      = "Button_7";
            Button_8           = new Button();
            Button_8.Name      = "Button_8";
            Button_9           = new Button();
            Button_9.Name      = "Button_9";
            Button_LD          = new Button();
            Button_LD.Name     = "Button_LD";
            Button_EMG         = new Button();
            Button_EMG.Name    = "Button_EMG";
            Button_RPV         = new Button();
            Button_RPV.Name    = "Button_RPV";
            Button_prefs       = new Button();
            Button_prefs.Name  = "Button_prefs";
            Slider_Thr         = new Slider();
            Slider_Thr.Name    = "Slider_Thr";
            Button_NXT         = new Button();
            Button_NXT.Name    = "Button_NXT";
            Button_STBY        = new Button();
            Button_STBY.Name   = "Button_STBY";
            Button_TO          = new Button();
            Button_TO.Name     = "Button_TO";
            Button_Cancel      = new Button();
            Button_Cancel.Name = "Button_Cancel";
            Button_Quit        = new Button();
            Button_Quit.Name   = "Button_Quit";
            Button_OVR         = new Button();
            Button_OVR.Name    = "Button_OVR";
            Button_CUT         = new Button();
            Button_CUT.Name    = "Button_CUT";
            Button_IGN         = new Button();
            Button_IGN.Name    = "Button_IGN";
            Button_UAV         = new Button();
            Button_UAV.Name    = "Button_UAV";
            Button_HOME        = new Button();
            Button_HOME.Name   = "Button_HOME";
            Label_Comm         = new Label();
            Label_Comm.Name    = "Label_Comm";
            Label_Info         = new Label();
            Label_Info.Name    = "Label_Info";
            PagePanel_1        = new PagePanel();
            PagePanel_1.Name   = "PagePanel_1";

            // sceneBackgroundPanel
            sceneBackgroundPanel.BackgroundColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);

            // UIJswScene
            this.RootWidget.AddChildLast(sceneBackgroundPanel);
            this.RootWidget.AddChildLast(Button_1);
            this.RootWidget.AddChildLast(Button_2);
            this.RootWidget.AddChildLast(Button_3);
            this.RootWidget.AddChildLast(Button_4);
            this.RootWidget.AddChildLast(Button_5);
            this.RootWidget.AddChildLast(Button_6);
            this.RootWidget.AddChildLast(Button_7);
            this.RootWidget.AddChildLast(Button_8);
            this.RootWidget.AddChildLast(Button_9);
            this.RootWidget.AddChildLast(Button_LD);
            this.RootWidget.AddChildLast(Button_EMG);
            this.RootWidget.AddChildLast(Button_RPV);
            this.RootWidget.AddChildLast(Button_prefs);
            this.RootWidget.AddChildLast(Slider_Thr);
            this.RootWidget.AddChildLast(Button_NXT);
            this.RootWidget.AddChildLast(Button_STBY);
            this.RootWidget.AddChildLast(Button_TO);
            this.RootWidget.AddChildLast(Button_Cancel);
            this.RootWidget.AddChildLast(Button_Quit);
            this.RootWidget.AddChildLast(Button_OVR);
            this.RootWidget.AddChildLast(Button_CUT);
            this.RootWidget.AddChildLast(Button_IGN);
            this.RootWidget.AddChildLast(Button_UAV);
            this.RootWidget.AddChildLast(Button_HOME);
            this.RootWidget.AddChildLast(Label_Comm);
            this.RootWidget.AddChildLast(Label_Info);
            this.RootWidget.AddChildLast(PagePanel_1);

            // Button_1
            Button_1.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_1.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_2
            Button_2.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_2.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_3
            Button_3.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_3.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_4
            Button_4.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_4.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_5
            Button_5.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_5.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_6
            Button_6.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_6.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_7
            Button_7.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_7.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_8
            Button_8.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_8.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_9
            Button_9.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_9.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_LD
            Button_LD.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_LD.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_EMG
            Button_EMG.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_EMG.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_RPV
            Button_RPV.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_RPV.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_prefs
            Button_prefs.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_prefs.TextFont  = new UIFont(FontAlias.System, 15, FontStyle.Regular);

            // Slider_Thr
            Slider_Thr.Orientation = SliderOrientation.Vertical;
            Slider_Thr.MinValue    = 0;
            Slider_Thr.MaxValue    = 100;
            Slider_Thr.Value       = 0;
            Slider_Thr.Step        = 1;

            // Button_NXT
            Button_NXT.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_NXT.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_STBY
            Button_STBY.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_STBY.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_TO
            Button_TO.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_TO.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_Cancel
            Button_Cancel.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_Cancel.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_Quit
            Button_Quit.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_Quit.TextFont  = new UIFont(FontAlias.System, 15, FontStyle.Regular);

            // Button_OVR
            Button_OVR.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_OVR.TextFont  = new UIFont(FontAlias.System, 20, FontStyle.Regular);

            // Button_CUT
            Button_CUT.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_CUT.TextFont  = new UIFont(FontAlias.System, 20, FontStyle.Regular);

            // Button_IGN
            Button_IGN.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_IGN.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_UAV
            Button_UAV.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_UAV.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Button_HOME
            Button_HOME.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Button_HOME.TextFont  = new UIFont(FontAlias.System, 25, FontStyle.Regular);

            // Label_Comm
            Label_Comm.TextColor           = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Label_Comm.Font                = new UIFont(FontAlias.System, 15, FontStyle.Regular);
            Label_Comm.LineBreak           = LineBreak.Character;
            Label_Comm.HorizontalAlignment = HorizontalAlignment.Right;

            // Label_Info
            Label_Info.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Label_Info.Font      = new UIFont(FontAlias.System, 10, FontStyle.Regular);
            Label_Info.LineBreak = LineBreak.Character;

            // PagePanel_1
            PagePanel_1.AddPage(new Panel_PFD());
            PagePanel_1.AddPage(new Panel_MNT());

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            sceneBackgroundPanel = new Panel();
            sceneBackgroundPanel.Name = "sceneBackgroundPanel";
            PagePanel_1 = new PagePanel();
            PagePanel_1.Name = "PagePanel_1";

            // sceneBackgroundPanel
            sceneBackgroundPanel.BackgroundColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);

            // PagePanel_1
            PagePanel_1.AddPage(new InstructionsPanel());
            PagePanel_1.AddPage(new Instructions2());
            PagePanel_1.AddPage(new Insructions3());
            PagePanel_1.AddPage(new Instructions4());
            PagePanel_1.AddPage(new instruction5Panel());
            PagePanel_1.AddPage(new Instructions6Panel());
            PagePanel_1.AddPage(new Instructions8Panel());
            PagePanel_1.AddPage(new Instructions7Panel());

            // InstructionsScene
            this.RootWidget.AddChildLast(sceneBackgroundPanel);
            this.RootWidget.AddChildLast(PagePanel_1);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }