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();
        }
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            Window.Current.SetTitleBar(TitleContainer);
            if (e.NavigationMode == NavigationMode.Back || _isInit)
            {
                return;
            }
            bool isSideOpen = AppTool.GetBoolSetting(BiliBili_Lib.Enums.Settings.IsLastSidePanelOpen);

            AppSplitView.IsPaneOpen = isSideOpen;
            App.AppViewModel.CheckAppUpdate();
            var popup = new WaitingPopup("正在初始化");

            popup.ShowPopup();
            bool isCanRequest = await App.BiliViewModel._client.ValidateRequestAsync();

            if (isCanRequest)
            {
                try
                {
                    await App.BiliViewModel.GetRegionsAsync();

                    App.AppViewModel.FontInit();
                    Window.Current.Dispatcher.AcceleratorKeyActivated += App.AppViewModel.AccelertorKeyActivedHandle;
                    if (e.Parameter != null && e.Parameter is string argument && !string.IsNullOrEmpty(argument) && argument.Contains("action"))
                    {
                        App.AppViewModel.AppInitByActivated(argument);
                    }
                    else
                    {
                        PagePanel.NavigateToPage(Models.Enums.AppMenuItemType.Home);
                    }
                }
Ejemplo n.º 3
0
 public PageCollection()
 {
     CurrentPageChanged += new CurrentPageChangedEventHandler(TabPages_CurrentPageChanged);
     FontChanged        += new EventHandler(PageCollection_FontChanged);
     PageAdded          += new PageAddedEventHandler(TabPages_PageAdded);
     PageRemoved        += new PageRemovedEventHandler(TabPages_PageRemoved);
     PageContainer       = new PagePanel(this);
     myTabView           = new TabView(this);
 }
Ejemplo n.º 4
0
        private void PageBack()
        {
            if (pageNumber == 0)
            {
                return;
            }
            currentPage.MoveTo(right);
            previousPage.MoveTo(center);
            nextPage.MainRect.anchoredPosition3D = left;
            nextPage.UpdatePage(pageContent, (pageNumber - 2) * itemCountPerPage);
            pageNumber--;
            txtResultCount.text = string.Format("{0}/{1} {2}", pageNumber + 1, pageCount, pageContent.Count);
            var temp = currentPage;

            currentPage  = previousPage;
            previousPage = nextPage;
            nextPage     = temp;
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            sceneBackgroundPanel = new Panel();
            sceneBackgroundPanel.Name = "sceneBackgroundPanel";
            LevelSelectTitleText = new Label();
            LevelSelectTitleText.Name = "LevelSelectTitleText";
            ImageBox_1 = new ImageBox();
            ImageBox_1.Name = "ImageBox_1";
            PagePanel_1 = new PagePanel();
            PagePanel_1.Name = "PagePanel_1";
            StartButton = new Button();
            StartButton.Name = "StartButton";
            LevelNumberText = new Label();
            LevelNumberText.Name = "LevelNumberText";
            LevelTimeText = new Label();
            LevelTimeText.Name = "LevelTimeText";
            GradeText = new Label();
            GradeText.Name = "GradeText";
            ScoreText = new Label();
            ScoreText.Name = "ScoreText";
            BackButton = new Button();
            BackButton.Name = "BackButton";
            stats = new Label();
            stats.Name = "stats";
            howToSelect = new Label();
            howToSelect.Name = "howToSelect";
            cubeNumber = new Label();
            cubeNumber.Name = "cubeNumber";

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

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

            // ImageBox_1
            ImageBox_1.Image = new ImageAsset("/Application/assets/images/UI/statsBox.png");
            ImageBox_1.ImageScaleType = ImageScaleType.Center;

            // StartButton
            StartButton.IconImage = null;
            StartButton.Style = ButtonStyle.Custom;
            StartButton.CustomImage = new CustomButtonImageSettings()
            {
                BackgroundNormalImage = new ImageAsset("/Application/assets/images/UI/start.png"),
                BackgroundPressedImage = new ImageAsset("/Application/assets/images/UI/startOver.png"),
                BackgroundDisabledImage = null,
                BackgroundNinePatchMargin = new NinePatchMargin(42, 27, 42, 27),
            };

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

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

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

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

            // BackButton
            BackButton.IconImage = null;
            BackButton.Style = ButtonStyle.Custom;
            BackButton.CustomImage = new CustomButtonImageSettings()
            {
                BackgroundNormalImage = new ImageAsset("/Application/assets/images/UI/back.png"),
                BackgroundPressedImage = new ImageAsset("/Application/assets/images/UI/backOver.png"),
                BackgroundDisabledImage = null,
                BackgroundNinePatchMargin = new NinePatchMargin(0, 0, 0, 0),
            };

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

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

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

            // LevelSelectScene
            this.RootWidget.AddChildLast(sceneBackgroundPanel);
            this.RootWidget.AddChildLast(LevelSelectTitleText);
            this.RootWidget.AddChildLast(ImageBox_1);
            this.RootWidget.AddChildLast(PagePanel_1);
            this.RootWidget.AddChildLast(StartButton);
            this.RootWidget.AddChildLast(LevelNumberText);
            this.RootWidget.AddChildLast(LevelTimeText);
            this.RootWidget.AddChildLast(GradeText);
            this.RootWidget.AddChildLast(ScoreText);
            this.RootWidget.AddChildLast(BackButton);
            this.RootWidget.AddChildLast(stats);
            this.RootWidget.AddChildLast(howToSelect);
            this.RootWidget.AddChildLast(cubeNumber);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 6
0
 private void Back_MouseDown(object sender, MouseEventArgs e)
 {
     PagePanel.Focus();
 }
        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();
        }
Ejemplo n.º 8
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();
        }
Ejemplo n.º 9
0
        public MainForm()
        {
            if (System.Diagnostics.Process.GetProcessesByName("QTRHacker").Length > 1)
            {
                Environment.Exit(0);
            }

            CreateDirectories();
            LoadConfigs();
#if ENG
            CurrentLanguage = Languages.Processor.GetLanguage("en");
#else
            CurrentLanguage = Languages.Processor.GetLanguage("zh-cn");
#endif

            MainFormInstance = this;

            InitializeComponent();
            BackColor = FormBack;

            QHScriptRuntime = Python.CreateRuntime();
            QHScriptEngine  = QHScriptRuntime.GetEngine("Python");
            var paths = QHScriptEngine.GetSearchPaths();
            paths.Add(Path.GetFullPath(".\\Scripts\\"));
            QHScriptEngine.SetSearchPaths(paths);

            MainPanel           = new Panel();
            MainPanel.BackColor = Color.FromArgb(30, 30, 30);
            MainPanel.Bounds    = new Rectangle(2, 30, this.Width - 4, this.Height - 32);
            this.Controls.Add(MainPanel);

            MinButton             = new PictureBox();
            MinButton.Click      += (s, e) => WindowState = FormWindowState.Minimized;
            MinButton.MouseEnter += (s, e) => MinButton.BackColor = ButtonHoverColor;
            MinButton.MouseLeave += (s, e) => MinButton.BackColor = ButtonNormalColor;
            MinButton.Bounds      = new Rectangle(Width - 64, -1, 32, 32);
            using (Stream st = Assembly.GetExecutingAssembly().GetManifestResourceStream("QTRHacker.NewDimension.Res.Image.min.png"))
                MinButton.Image = Image.FromStream(st);

            CloseButton             = new PictureBox();
            CloseButton.MouseEnter += (s, e) => CloseButton.BackColor = ButtonHoverColor;
            CloseButton.MouseLeave += (s, e) => CloseButton.BackColor = ButtonNormalColor;
            CloseButton.Click      += (s, e) => Dispose();
            CloseButton.Bounds      = new Rectangle(Width - 32, -1, 32, 32);
            using (Stream st = Assembly.GetExecutingAssembly().GetManifestResourceStream("QTRHacker.NewDimension.Res.Image.close.png"))
                CloseButton.Image = Image.FromStream(st);

            Controls.Add(MinButton);
            Controls.Add(CloseButton);

            ButtonsPanel           = new Panel();
            ButtonsPanel.Bounds    = new Rectangle(0, 0, 100, MainPanel.Height);
            ButtonsPanel.BackColor = Color.FromArgb(50, 255, 255, 255);
            MainPanel.Controls.Add(ButtonsPanel);


            WindowsIdentity identity = WindowsIdentity.GetCurrent();
            if (!new WindowsPrincipal(identity).IsInRole(WindowsBuiltInRole.Administrator))
            {
                AdminTipLabel           = new Label();
                AdminTipLabel.Text      = "如果出现报错\n请以管理员权限启动修改器";
                AdminTipLabel.BackColor = Color.Transparent;
                AdminTipLabel.ForeColor = Color.Red;
                AdminTipLabel.Bounds    = new Rectangle(3, 260, 100, 40);
                ButtonsPanel.Controls.Add(AdminTipLabel);
            }

            QQGroupLabel           = new Label();
            QQGroupLabel.Text      = "官方QQ群:453858025";
            QQGroupLabel.BackColor = Color.Transparent;
            QQGroupLabel.ForeColor = Color.White;
            QQGroupLabel.Bounds    = new Rectangle(3, 310, 100, 40);
#if ENG
#else
            ButtonsPanel.Controls.Add(QQGroupLabel);
#endif

            VersionLabel           = new Label();
            VersionLabel.Text      = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            VersionLabel.BackColor = Color.Transparent;
            VersionLabel.ForeColor = Color.White;
            VersionLabel.Bounds    = new Rectangle(3, 350, 100, 20);
            ButtonsPanel.Controls.Add(VersionLabel);


            Image img_MainPage   = null;
            Image img_Basic      = null;
            Image img_Player     = null;
            Image img_Projectile = null;
            Image img_Misc       = null;
            Image img_Scripts    = null;
            Image img_ChatSender = null;
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_171"]))
                img_MainPage = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_990"]))
                img_Basic = Image.FromStream(st);
            using (Stream st = Assembly.GetExecutingAssembly().GetManifestResourceStream("QTRHacker.NewDimension.Res.Image.player.png"))
                img_Player = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_42"]))
                img_Projectile = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_518"]))
                img_Scripts = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_3124"]))
                img_Misc = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_531"]))
                img_ChatSender = Image.FromStream(st);

            ContentPanel        = new Panel();
            ContentPanel.Bounds = new Rectangle(100, 0, MainPanel.Width - 100, MainPanel.Height);
            MainPanel.Controls.Add(ContentPanel);

            MainPagePanel       = new PagePanel_MainPage(MainPanel.Width - 100, MainPanel.Height);
            BasicPagePanel      = new PagePanel_Basic(MainPanel.Width - 100, MainPanel.Height);
            PlayerPagePanel     = new PagePanel_Player(MainPanel.Width - 100, MainPanel.Height);
            ProjectilePagePanel = new PagePanel_Projectile(MainPanel.Width - 100, MainPanel.Height);
            ScriptsPagePanel    = new PagePanel_Scripts(MainPanel.Width - 100, MainPanel.Height);
            MiscPagePanel       = new PagePanel_Misc(MainPanel.Width - 100, MainPanel.Height);
            ChatSenderPanel     = new PagePanel_ChatSender(MainPanel.Width - 100, MainPanel.Height);


            AddButton(CurrentLanguage["Basic"], img_Basic, BasicPagePanel).Enabled                 = false;
            AddButton(CurrentLanguage["Players"], img_Player, PlayerPagePanel).Enabled             = false;
            AddButton(CurrentLanguage["Projectiles"], img_Projectile, ProjectilePagePanel).Enabled = false;
            AddButton(CurrentLanguage["Scripts"], img_Scripts, ScriptsPagePanel).Enabled           = false;
            AddButton(CurrentLanguage["ChatSender"], img_ChatSender, ChatSenderPanel).Enabled      = false;
            AddButton(CurrentLanguage["Miscs"], img_Misc, MiscPagePanel).Enabled = false;


            AddButton(CurrentLanguage["MainPage"], img_MainPage, MainPagePanel).Selected = true;


            Icon = ConvertToIcon(img_Basic, true);
        }
Ejemplo n.º 10
0
        public MainForm()
        {
            CheckForIllegalCrossThreadCalls = false;

            if (System.Diagnostics.Process.GetProcessesByName("QTRHacker").Length > 1)
            {
                MessageBox.Show("请先关闭已打开的修改器\n如果已关闭且出现此提示,请在任务管理器检查是否有进程QTRHacker.exe滞留");
                Environment.Exit(0);
            }

            CreateDirectoriesAndFiles();
            LoadConfigs();
#if ENG
            CurrentLanguage = Languages.Processor.GetLanguage("en");
#else
            CurrentLanguage = Languages.Processor.GetLanguage("zh-cn");
#endif

            MainFormInstance = this;

            InitializeComponent();
            BackColor = FormBack;

            QHScriptRuntime = Python.CreateRuntime();
            QHScriptEngine  = QHScriptRuntime.GetEngine("Python");
            var paths = QHScriptEngine.GetSearchPaths();
            paths.Add(Path.GetFullPath(".\\Scripts\\"));
            QHScriptEngine.SetSearchPaths(paths);

            MainPanel           = new Panel();
            MainPanel.BackColor = Color.FromArgb(30, 30, 30);
            MainPanel.Bounds    = new Rectangle(2, 30, this.Width - 4, this.Height - 32);
            this.Controls.Add(MainPanel);

            MinButton             = new PictureBox();
            MinButton.Click      += (s, e) => WindowState = FormWindowState.Minimized;
            MinButton.MouseEnter += (s, e) => MinButton.BackColor = ButtonHoverColor;
            MinButton.MouseLeave += (s, e) => MinButton.BackColor = ButtonNormalColor;
            MinButton.Bounds      = new Rectangle(Width - 64, -1, 32, 32);
            using (Stream st = Assembly.GetExecutingAssembly().GetManifestResourceStream("QTRHacker.NewDimension.Res.Image.min.png"))
                MinButton.Image = Image.FromStream(st);

            CloseButton             = new PictureBox();
            CloseButton.MouseEnter += (s, e) => CloseButton.BackColor = ButtonHoverColor;
            CloseButton.MouseLeave += (s, e) => CloseButton.BackColor = ButtonNormalColor;
            CloseButton.Click      += (s, e) => Dispose();
            CloseButton.Bounds      = new Rectangle(Width - 32, -1, 32, 32);
            using (Stream st = Assembly.GetExecutingAssembly().GetManifestResourceStream("QTRHacker.NewDimension.Res.Image.close.png"))
                CloseButton.Image = Image.FromStream(st);

            Controls.Add(MinButton);
            Controls.Add(CloseButton);

            ButtonsPanel           = new Panel();
            ButtonsPanel.Bounds    = new Rectangle(0, 0, ButtonsPanelWidth, MainPanel.Height);
            ButtonsPanel.BackColor = Color.FromArgb(255, 90, 90, 90);
            MainPanel.Controls.Add(ButtonsPanel);



            Image img_MainPage = null, img_Basic = null, img_Player = null,
                  img_Projectile = null, img_Misc = null, img_Scripts = null,
                  img_Sche = null, img_ChatSender = null, img_AimBot = null,
                  img_About = null;
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_171"]))
                img_MainPage = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_990"]))
                img_Basic = Image.FromStream(st);
            using (Stream st = Assembly.GetExecutingAssembly().GetManifestResourceStream("QTRHacker.NewDimension.Res.Image.player.png"))
                img_Player = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_42"]))
                img_Projectile = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_518"]))
                img_Scripts = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_3124"]))
                img_Misc = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_109"]))
                img_About = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_531"]))
                img_ChatSender = Image.FromStream(st);


            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_3"]))
                img_Sche = Image.FromStream(st);
            using (Stream st = new MemoryStream(GameResLoader.ItemImageData["Item_164"]))
                img_AimBot = Image.FromStream(st);

            ContentPanel        = new Panel();
            ContentPanel.Bounds = new Rectangle(ButtonsPanel.Width, 0, MainPanel.Width - ButtonsPanel.Width, MainPanel.Height);
            MainPanel.Controls.Add(ContentPanel);

            int pageWidth = ContentPanel.Width;

            MainPagePanel       = new PagePanel_MainPage(pageWidth, MainPanel.Height);
            AboutPagePanel      = new PagePanel_About(pageWidth, MainPanel.Height);
            BasicPagePanel      = new PagePanel_Basic(pageWidth, MainPanel.Height);
            PlayerPagePanel     = new PagePanel_Player(pageWidth, MainPanel.Height);
            ProjectilePagePanel = new PagePanel_Projectile(pageWidth, MainPanel.Height);
            ScriptsPagePanel    = new PagePanel_Scripts(pageWidth, MainPanel.Height);
            MiscPagePanel       = new PagePanel_Misc(pageWidth, MainPanel.Height);
            ChatSenderPanel     = new PagePanel_ChatSender(pageWidth, MainPanel.Height);


            //SchesPagePanel = new PagePanel_Sches(pageWidth, MainPanel.Height);
            //AimBotPagePanel = new PagePanel_AimBot(pageWidth, MainPanel.Height);


            ExpandedGroup = Group1 = AddGroup();
            Group2        = AddGroup();


            AddButton(Group1, CurrentLanguage["Basic"], img_Basic, BasicPagePanel).Enabled                 = false;
            AddButton(Group1, CurrentLanguage["Players"], img_Player, PlayerPagePanel).Enabled             = false;
            AddButton(Group1, CurrentLanguage["Projectiles"], img_Projectile, ProjectilePagePanel).Enabled = false;
            AddButton(Group1, CurrentLanguage["Scripts"], img_Scripts, ScriptsPagePanel).Enabled           = false;
            AddButton(Group1, CurrentLanguage["ChatSender"], img_ChatSender, ChatSenderPanel).Enabled      = false;
            AddButton(Group1, CurrentLanguage["Miscs"], img_Misc, MiscPagePanel).Enabled = false;
#if ENG
#else
            AddButton(Group1, CurrentLanguage["About"], img_About, AboutPagePanel).Enabled = true;
#endif
            AddButton(Group1, CurrentLanguage["MainPage"], img_MainPage, MainPagePanel).Selected = true;

            //AddButton(Group2, CurrentLanguage["Sches"], img_Sche, SchesPagePanel).Enabled = false;
            //AddButton(Group2, CurrentLanguage["AimBot"], img_AimBot, AimBotPagePanel).Enabled = false;

            Icon = ConvertToIcon(img_Basic, true);
        }
        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();
        }
Ejemplo n.º 12
0
        public async Task <JsonResult> AddPanel(ReqAddPanel req)
        {
            try
            {
                if (!string.IsNullOrEmpty(req.AppModuleId))
                {
                    var appModule = await _appModuleRepository.Get(req.AppModuleId);

                    if (appModule != null)
                    {
                        if (appModule.Forms == null)
                        {
                            appModule.Forms = new List <ModuleForm>();
                        }

                        ObjectId pageId;
                        ObjectId appModuleId;

                        if (ObjectId.TryParse(req.AppModuleId, out appModuleId) && ObjectId.TryParse(req.PageId, out pageId))
                        {
                            if (appModule.Pages.Any(n => n.PageId == pageId))
                            {
                                var panelId = ObjectId.GenerateNewId();

                                var page = appModule.Pages.FirstOrDefault(n => n.PageId == pageId);
                                if (page.Panels == null)
                                {
                                    page.Panels = new List <PagePanel>();
                                }

                                var newPagePanel = new PagePanel
                                {
                                    Id        = pageId,
                                    ColWidth  = req.Panel.ColWidth,
                                    Order     = req.Panel.Order,
                                    PanelType = req.Panel.PanelType,
                                    ForeignId = ObjectId.Parse(req.ForeignId)
                                };
                                page.Panels.Add(newPagePanel);

                                await _appModuleRepository.Update(req.AppModuleId, appModule);

                                var result = new JsonGenericResult
                                {
                                    IsSuccess = true,
                                    Result    = panelId.ToString()
                                };
                                return(Json(result));
                            }
                        }
                        var ErrorResult2 = new JsonGenericResult
                        {
                            IsSuccess = false,
                            Message   = "Invalid app module id or document type id."
                        };
                        return(Json(ErrorResult2));
                    }
                }
                var ErrorResult = new JsonGenericResult
                {
                    IsSuccess = false,
                    Message   = "No app selected."
                };
                return(Json(ErrorResult));
            }
            catch (Exception ex)
            {
                return(Json(new JsonGenericResult
                {
                    IsSuccess = false,
                    Message = ex.Message
                }));
            }
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            sceneBackgroundPanel = new Panel();
            sceneBackgroundPanel.Name = "sceneBackgroundPanel";
            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";
            ImageBox_1 = new ImageBox();
            ImageBox_1.Name = "ImageBox_1";
            ImageBox_2 = new ImageBox();
            ImageBox_2.Name = "ImageBox_2";
            ImageBox_3 = new ImageBox();
            ImageBox_3.Name = "ImageBox_3";
            ImageBox_4 = new ImageBox();
            ImageBox_4.Name = "ImageBox_4";
            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";
            ImageBox_5 = new ImageBox();
            ImageBox_5.Name = "ImageBox_5";
            Button_9 = new Button();
            Button_9.Name = "Button_9";
            Button_10 = new Button();
            Button_10.Name = "Button_10";
            Button_11 = new Button();
            Button_11.Name = "Button_11";
            Button_12 = new Button();
            Button_12.Name = "Button_12";
            ImageBox_6 = new ImageBox();
            ImageBox_6.Name = "ImageBox_6";
            ImageBox_7 = new ImageBox();
            ImageBox_7.Name = "ImageBox_7";
            ImageBox_8 = new ImageBox();
            ImageBox_8.Name = "ImageBox_8";
            ImageBox_9 = new ImageBox();
            ImageBox_9.Name = "ImageBox_9";
            Button_13 = new Button();
            Button_13.Name = "Button_13";
            Button_14 = new Button();
            Button_14.Name = "Button_14";
            Button_15 = new Button();
            Button_15.Name = "Button_15";
            Button_16 = new Button();
            Button_16.Name = "Button_16";
            ImageBox_10 = new ImageBox();
            ImageBox_10.Name = "ImageBox_10";
            Button_17 = new Button();
            Button_17.Name = "Button_17";
            Button_18 = new Button();
            Button_18.Name = "Button_18";
            Button_19 = new Button();
            Button_19.Name = "Button_19";
            Button_20 = new Button();
            Button_20.Name = "Button_20";
            ImageBox_11 = new ImageBox();
            ImageBox_11.Name = "ImageBox_11";
            ImageBox_12 = new ImageBox();
            ImageBox_12.Name = "ImageBox_12";
            ImageBox_13 = new ImageBox();
            ImageBox_13.Name = "ImageBox_13";
            ImageBox_14 = new ImageBox();
            ImageBox_14.Name = "ImageBox_14";
            Button_21 = new Button();
            Button_21.Name = "Button_21";
            Button_22 = new Button();
            Button_22.Name = "Button_22";
            Button_23 = new Button();
            Button_23.Name = "Button_23";
            Button_24 = new Button();
            Button_24.Name = "Button_24";
            ImageBox_15 = new ImageBox();
            ImageBox_15.Name = "ImageBox_15";
            Button_25 = new Button();
            Button_25.Name = "Button_25";
            Button_26 = new Button();
            Button_26.Name = "Button_26";
            Button_27 = new Button();
            Button_27.Name = "Button_27";
            Button_28 = new Button();
            Button_28.Name = "Button_28";
            ImageBox_16 = new ImageBox();
            ImageBox_16.Name = "ImageBox_16";
            ImageBox_17 = new ImageBox();
            ImageBox_17.Name = "ImageBox_17";
            ImageBox_18 = new ImageBox();
            ImageBox_18.Name = "ImageBox_18";
            ImageBox_19 = new ImageBox();
            ImageBox_19.Name = "ImageBox_19";
            Button_29 = new Button();
            Button_29.Name = "Button_29";
            Button_30 = new Button();
            Button_30.Name = "Button_30";
            Button_31 = new Button();
            Button_31.Name = "Button_31";
            Button_32 = new Button();
            Button_32.Name = "Button_32";
            ImageBox_20 = new ImageBox();
            ImageBox_20.Name = "ImageBox_20";
            ImageBox_21 = new ImageBox();
            ImageBox_21.Name = "ImageBox_21";
            PagePanel_1 = new PagePanel();
            PagePanel_1.Name = "PagePanel_1";

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

            // Button_5
            Button_5.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_5.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_6
            Button_6.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_6.BackgroundFilterColor = new UIColor(41f / 255f, 226f / 255f, 226f / 255f, 0f / 255f);

            // Button_7
            Button_7.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_7.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_8
            Button_8.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_8.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // ImageBox_1
            ImageBox_1.Image = new ImageAsset("/Application/assets/new/featureIcons/animation2.png");
            ImageBox_1.ImageScaleType = ImageScaleType.Center;

            // ImageBox_2
            ImageBox_2.Image = new ImageAsset("/Application/assets/new/featureIcons/particle2.png");
            ImageBox_2.ImageScaleType = ImageScaleType.Center;

            // ImageBox_3
            ImageBox_3.Image = new ImageAsset("/Application/assets/new/featureIcons/pattern2.png");
            ImageBox_3.ImageScaleType = ImageScaleType.Center;

            // ImageBox_4
            ImageBox_4.Image = new ImageAsset("/Application/assets/new/featureIcons/color2.png");
            ImageBox_4.ImageScaleType = ImageScaleType.Center;

            // Button_1
            Button_1.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_1.BackgroundFilterColor = new UIColor(41f / 255f, 226f / 255f, 226f / 255f, 0f / 255f);

            // Button_2
            Button_2.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_2.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_3
            Button_3.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_3.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_4
            Button_4.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_4.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // ImageBox_5
            ImageBox_5.Image = new ImageAsset("/Application/assets/new/newUI/lockIcon.png");
            ImageBox_5.ImageScaleType = ImageScaleType.Center;

            // Button_9
            Button_9.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_9.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_10
            Button_10.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_10.BackgroundFilterColor = new UIColor(41f / 255f, 226f / 255f, 226f / 255f, 0f / 255f);

            // Button_11
            Button_11.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_11.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_12
            Button_12.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_12.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // ImageBox_6
            ImageBox_6.Image = new ImageAsset("/Application/assets/new/featureIcons/animation2.png");
            ImageBox_6.ImageScaleType = ImageScaleType.Center;

            // ImageBox_7
            ImageBox_7.Image = new ImageAsset("/Application/assets/new/featureIcons/particle2.png");
            ImageBox_7.ImageScaleType = ImageScaleType.Center;

            // ImageBox_8
            ImageBox_8.Image = new ImageAsset("/Application/assets/new/featureIcons/pattern2.png");
            ImageBox_8.ImageScaleType = ImageScaleType.Center;

            // ImageBox_9
            ImageBox_9.Image = new ImageAsset("/Application/assets/new/featureIcons/color2.png");
            ImageBox_9.ImageScaleType = ImageScaleType.Center;

            // Button_13
            Button_13.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_13.BackgroundFilterColor = new UIColor(41f / 255f, 226f / 255f, 226f / 255f, 0f / 255f);

            // Button_14
            Button_14.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_14.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_15
            Button_15.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_15.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_16
            Button_16.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_16.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // ImageBox_10
            ImageBox_10.Image = new ImageAsset("/Application/assets/new/newUI/lockIcon.png");
            ImageBox_10.ImageScaleType = ImageScaleType.Center;

            // Button_17
            Button_17.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_17.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_18
            Button_18.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_18.BackgroundFilterColor = new UIColor(41f / 255f, 226f / 255f, 226f / 255f, 0f / 255f);

            // Button_19
            Button_19.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_19.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_20
            Button_20.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_20.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // ImageBox_11
            ImageBox_11.Image = new ImageAsset("/Application/assets/new/featureIcons/animation2.png");
            ImageBox_11.ImageScaleType = ImageScaleType.Center;

            // ImageBox_12
            ImageBox_12.Image = new ImageAsset("/Application/assets/new/featureIcons/particle2.png");
            ImageBox_12.ImageScaleType = ImageScaleType.Center;

            // ImageBox_13
            ImageBox_13.Image = new ImageAsset("/Application/assets/new/featureIcons/pattern2.png");
            ImageBox_13.ImageScaleType = ImageScaleType.Center;

            // ImageBox_14
            ImageBox_14.Image = new ImageAsset("/Application/assets/new/featureIcons/color2.png");
            ImageBox_14.ImageScaleType = ImageScaleType.Center;

            // Button_21
            Button_21.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_21.BackgroundFilterColor = new UIColor(41f / 255f, 226f / 255f, 226f / 255f, 0f / 255f);

            // Button_22
            Button_22.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_22.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_23
            Button_23.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_23.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_24
            Button_24.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_24.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // ImageBox_15
            ImageBox_15.Image = new ImageAsset("/Application/assets/new/newUI/lockIcon.png");
            ImageBox_15.ImageScaleType = ImageScaleType.Center;

            // Button_25
            Button_25.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_25.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_26
            Button_26.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_26.BackgroundFilterColor = new UIColor(41f / 255f, 226f / 255f, 226f / 255f, 0f / 255f);

            // Button_27
            Button_27.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_27.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_28
            Button_28.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_28.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // ImageBox_16
            ImageBox_16.Image = new ImageAsset("/Application/assets/new/featureIcons/animation2.png");
            ImageBox_16.ImageScaleType = ImageScaleType.Center;

            // ImageBox_17
            ImageBox_17.Image = new ImageAsset("/Application/assets/new/featureIcons/particle2.png");
            ImageBox_17.ImageScaleType = ImageScaleType.Center;

            // ImageBox_18
            ImageBox_18.Image = new ImageAsset("/Application/assets/new/featureIcons/pattern2.png");
            ImageBox_18.ImageScaleType = ImageScaleType.Center;

            // ImageBox_19
            ImageBox_19.Image = new ImageAsset("/Application/assets/new/featureIcons/color2.png");
            ImageBox_19.ImageScaleType = ImageScaleType.Center;

            // Button_29
            Button_29.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_29.BackgroundFilterColor = new UIColor(41f / 255f, 226f / 255f, 226f / 255f, 0f / 255f);

            // Button_30
            Button_30.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_30.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_31
            Button_31.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_31.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // Button_32
            Button_32.IconImage = new ImageAsset("/Application/assets/new/newUI/whiteCube.png");
            Button_32.BackgroundFilterColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 0f / 255f);

            // ImageBox_20
            ImageBox_20.Image = new ImageAsset("/Application/assets/new/newUI/lockIcon.png");
            ImageBox_20.ImageScaleType = ImageScaleType.Center;

            // ImageBox_21
            ImageBox_21.Image = new ImageAsset("/Application/assets/new/newUI/authoredMode.png");
            ImageBox_21.ImageScaleType = ImageScaleType.Center;

            // levelSection
            this.RootWidget.AddChildLast(sceneBackgroundPanel);
            this.RootWidget.AddChildLast(Button_5);
            this.RootWidget.AddChildLast(Button_6);
            this.RootWidget.AddChildLast(Button_7);
            this.RootWidget.AddChildLast(Button_8);
            this.RootWidget.AddChildLast(ImageBox_1);
            this.RootWidget.AddChildLast(ImageBox_2);
            this.RootWidget.AddChildLast(ImageBox_3);
            this.RootWidget.AddChildLast(ImageBox_4);
            this.RootWidget.AddChildLast(Button_1);
            this.RootWidget.AddChildLast(Button_2);
            this.RootWidget.AddChildLast(Button_3);
            this.RootWidget.AddChildLast(Button_4);
            this.RootWidget.AddChildLast(ImageBox_5);
            this.RootWidget.AddChildLast(Button_9);
            this.RootWidget.AddChildLast(Button_10);
            this.RootWidget.AddChildLast(Button_11);
            this.RootWidget.AddChildLast(Button_12);
            this.RootWidget.AddChildLast(ImageBox_6);
            this.RootWidget.AddChildLast(ImageBox_7);
            this.RootWidget.AddChildLast(ImageBox_8);
            this.RootWidget.AddChildLast(ImageBox_9);
            this.RootWidget.AddChildLast(Button_13);
            this.RootWidget.AddChildLast(Button_14);
            this.RootWidget.AddChildLast(Button_15);
            this.RootWidget.AddChildLast(Button_16);
            this.RootWidget.AddChildLast(ImageBox_10);
            this.RootWidget.AddChildLast(Button_17);
            this.RootWidget.AddChildLast(Button_18);
            this.RootWidget.AddChildLast(Button_19);
            this.RootWidget.AddChildLast(Button_20);
            this.RootWidget.AddChildLast(ImageBox_11);
            this.RootWidget.AddChildLast(ImageBox_12);
            this.RootWidget.AddChildLast(ImageBox_13);
            this.RootWidget.AddChildLast(ImageBox_14);
            this.RootWidget.AddChildLast(Button_21);
            this.RootWidget.AddChildLast(Button_22);
            this.RootWidget.AddChildLast(Button_23);
            this.RootWidget.AddChildLast(Button_24);
            this.RootWidget.AddChildLast(ImageBox_15);
            this.RootWidget.AddChildLast(Button_25);
            this.RootWidget.AddChildLast(Button_26);
            this.RootWidget.AddChildLast(Button_27);
            this.RootWidget.AddChildLast(Button_28);
            this.RootWidget.AddChildLast(ImageBox_16);
            this.RootWidget.AddChildLast(ImageBox_17);
            this.RootWidget.AddChildLast(ImageBox_18);
            this.RootWidget.AddChildLast(ImageBox_19);
            this.RootWidget.AddChildLast(Button_29);
            this.RootWidget.AddChildLast(Button_30);
            this.RootWidget.AddChildLast(Button_31);
            this.RootWidget.AddChildLast(Button_32);
            this.RootWidget.AddChildLast(ImageBox_20);
            this.RootWidget.AddChildLast(ImageBox_21);
            this.RootWidget.AddChildLast(PagePanel_1);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }