Ejemplo n.º 1
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetSize(426, 530);
                this.Anchors = Anchors.None;

                Label_1.SetPosition(0, 0);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.None;
                Label_1.Visible = true;

                break;

            default:
                this.SetSize(530, 426);
                this.Anchors = Anchors.None;

                Label_1.SetPosition(0, 0);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.None;
                Label_1.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(100, 100);
                    this.Anchors = Anchors.None;

                    Button_1.SetPosition(-68, 21);
                    Button_1.SetSize(214, 56);
                    Button_1.Anchors = Anchors.None;
                    Button_1.Visible = true;

                    break;

                default:
                    this.SetSize(100, 100);
                    this.Anchors = Anchors.None;

                    Button_1.SetPosition(12, 6);
                    Button_1.SetSize(76, 88);
                    Button_1.Anchors = Anchors.Top;
                    Button_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetSize(50, 200);
                this.Anchors = Anchors.None;

                Label_Story.SetPosition(-86, 0);
                Label_Story.SetSize(100, 36);
                Label_Story.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_Story.Visible = true;

                break;

            default:
                this.SetSize(200, 50);
                this.Anchors = Anchors.None;

                Label_Story.SetPosition(8, 7);
                Label_Story.SetSize(200, 35);
                Label_Story.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_Story.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.DesignWidth  = 544;
                this.DesignHeight = 960;

                imgDesktop.SetPosition(471, 116);
                imgDesktop.SetSize(200, 200);
                imgDesktop.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                imgDesktop.Visible = false;

                break;

            default:
                this.DesignWidth  = 960;
                this.DesignHeight = 544;

                imgDesktop.SetPosition(0, 0);
                imgDesktop.SetSize(470, 544);
                imgDesktop2.SetPosition(470, 0);
                imgDesktop2.SetSize(470, 544);
                dummy.SetSize(940, 544);
                dummy.SetPosition(0, 0);
                dummy.Visible       = true;
                imgDesktop.Anchors  = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                imgDesktop.Visible  = true;
                imgDesktop2.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            ImageBox_1 = new ImageBox();
            ImageBox_1.Name = "ImageBox_1";
            Button_1 = new Button();
            Button_1.Name = "Button_1";

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

            // 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);

            // GameOverScene
            this.RootWidget.AddChildLast(ImageBox_1);
            this.RootWidget.AddChildLast(Button_1);

            this.Transition = new CrossFadeTransition();

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetSize(50, 200);
                this.Anchors = Anchors.None;

                Label_Story.SetPosition(-86, 0);
                Label_Story.SetSize(100, 36);
                Label_Story.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_Story.Visible = true;

                break;

            default:
                this.SetSize(200, 50);
                this.Anchors = Anchors.None;

                Label_Story.SetPosition(8, 7);
                Label_Story.SetSize(200, 35);
                Label_Story.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_Story.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(36, 214);
                    this.Anchors = Anchors.None;

                    ScoreText.SetPosition(382, 71);
                    ScoreText.SetSize(214, 36);
                    ScoreText.Anchors = Anchors.None;
                    ScoreText.Visible = true;

                    break;

                default:
                    this.SetSize(214, 36);
                    this.Anchors = Anchors.None;

                    ScoreText.SetPosition(0, 0);
                    ScoreText.SetSize(214, 36);
                    ScoreText.Anchors = Anchors.None;
                    ScoreText.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 8
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetPosition(0, 0);
                this.SetSize(300, 500);
                this.Anchors = Anchors.None;

                download_url.SetPosition(583, 19);
                download_url.SetSize(360, 56);
                download_url.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                download_url.Visible = true;

                DownloadBtn.SetPosition(690, 16);
                DownloadBtn.SetSize(214, 56);
                DownloadBtn.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                DownloadBtn.Visible = true;

                EditableText_1.SetPosition(-99, 108);
                EditableText_1.SetSize(360, 56);
                EditableText_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_1.Visible = true;

                EditableText_2.SetPosition(118, 124);
                EditableText_2.SetSize(360, 56);
                EditableText_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_2.Visible = true;

                break;

            default:
                this.SetPosition(0, 0);
                this.SetSize(500, 300);
                this.Anchors = Anchors.None;

                download_url.SetPosition(49, 30);
                download_url.SetSize(419, 56);
                download_url.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                download_url.Visible = true;

                DownloadBtn.SetPosition(190, 216);
                DownloadBtn.SetSize(126, 56);
                DownloadBtn.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                DownloadBtn.Visible = true;

                EditableText_1.SetPosition(49, 124);
                EditableText_1.SetSize(188, 56);
                EditableText_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_1.Visible = true;

                EditableText_2.SetPosition(287, 124);
                EditableText_2.SetSize(181, 56);
                EditableText_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_2.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 9
0
 public override void Reset()
 {
     Children          = new List <FormElement>();
     LayoutMode        = LayoutMode.Shrink;
     LayoutOrientation = LayoutOrientation.Vertical;
     base.Reset();
 }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            TitleImage = new ImageBox();
            TitleImage.Name = "TitleImage";
            TouchToStartText = new Label();
            TouchToStartText.Name = "TouchToStartText";

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

            // TouchToStartText
            TouchToStartText.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            TouchToStartText.Font = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            TouchToStartText.LineBreak = LineBreak.Character;
            TouchToStartText.HorizontalAlignment = HorizontalAlignment.Center;

            // TitleScene
            this.RootWidget.AddChildLast(TitleImage);
            this.RootWidget.AddChildLast(TouchToStartText);
            this.Showing += new EventHandler(onShowing);
            this.Shown += new EventHandler(onShown);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 11
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetPosition(0, 0);
                this.SetSize(300, 500);
                this.Anchors = Anchors.None;

                download_url.SetPosition(583, 19);
                download_url.SetSize(360, 56);
                download_url.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                download_url.Visible = true;

                DownloadBtn.SetPosition(690, 16);
                DownloadBtn.SetSize(214, 56);
                DownloadBtn.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                DownloadBtn.Visible = true;

                EditableText_1.SetPosition(-99, 108);
                EditableText_1.SetSize(360, 56);
                EditableText_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_1.Visible = true;

                EditableText_2.SetPosition(118, 124);
                EditableText_2.SetSize(360, 56);
                EditableText_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_2.Visible = true;

                break;

            default:
                this.SetPosition(0, 0);
                this.SetSize(500, 300);
                this.Anchors = Anchors.None;

                download_url.SetPosition(49, 30);
                download_url.SetSize(419, 56);
                download_url.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                download_url.Visible = true;

                DownloadBtn.SetPosition(190, 216);
                DownloadBtn.SetSize(126, 56);
                DownloadBtn.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                DownloadBtn.Visible = true;

                EditableText_1.SetPosition(49, 124);
                EditableText_1.SetSize(188, 56);
                EditableText_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_1.Visible = true;

                EditableText_2.SetPosition(287, 124);
                EditableText_2.SetSize(181, 56);
                EditableText_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_2.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 12
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.DesignWidth  = 544;
                this.DesignHeight = 960;

                Label_1.SetPosition(734, 498);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.None;
                Label_1.Visible = true;

                break;

            default:
                this.DesignWidth  = 960;
                this.DesignHeight = 544;

                Label_1.SetPosition(734, 498);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.None;
                Label_1.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 13
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetPosition(0, 0);
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    playerHp.SetPosition(48, 512);
                    playerHp.SetSize(362, 16);
                    playerHp.Anchors = Anchors.Height;
                    playerHp.Visible = true;

                    Label_1.SetPosition(0, 508);
                    Label_1.SetSize(214, 36);
                    Label_1.Anchors = Anchors.None;
                    Label_1.Visible = true;

                    Label_2.SetPosition(0, 0);
                    Label_2.SetSize(214, 36);
                    Label_2.Anchors = Anchors.None;
                    Label_2.Visible = true;

                    enemyHp.SetPosition(199, 0);
                    enemyHp.SetSize(362, 16);
                    enemyHp.Anchors = Anchors.Height;
                    enemyHp.Visible = true;

                    break;

                default:
                    this.SetPosition(0, 0);
                    this.SetSize(960, 544);
                    this.Anchors = Anchors.None;

                    playerHp.SetPosition(88, 516);
                    playerHp.SetSize(200, 16);
                    playerHp.Anchors = Anchors.Height;
                    playerHp.Visible = true;

                    Label_1.SetPosition(0, 505);
                    Label_1.SetSize(88, 38);
                    Label_1.Anchors = Anchors.None;
                    Label_1.Visible = true;

                    Label_2.SetPosition(0, 0);
                    Label_2.SetSize(88, 36);
                    Label_2.Anchors = Anchors.None;
                    Label_2.Visible = true;

                    enemyHp.SetPosition(88, 10);
                    enemyHp.SetSize(850, 16);
                    enemyHp.Anchors = Anchors.Height;
                    enemyHp.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetPosition(0, 0);
                this.SetSize(480, 854);
                this.Anchors = Anchors.None;

                Label_1.SetPosition(145, 61);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_1.Visible = true;

                Slider_BulletInterval.SetPosition(397, 166);
                Slider_BulletInterval.SetSize(362, 58);
                Slider_BulletInterval.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Slider_BulletInterval.Visible = true;

                Label_2.SetPosition(27, 175);
                Label_2.SetSize(214, 36);
                Label_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_2.Visible = true;

                Button_OK.SetPosition(319, 365);
                Button_OK.SetSize(214, 56);
                Button_OK.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Button_OK.Visible = true;

                break;

            default:
                this.SetPosition(0, 0);
                this.SetSize(854, 480);
                this.Anchors = Anchors.None;

                Label_1.SetPosition(304, 35);
                Label_1.SetSize(245, 70);
                Label_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Right | Anchors.Width;
                Label_1.Visible = true;

                Slider_BulletInterval.SetPosition(340, 146);
                Slider_BulletInterval.SetSize(362, 58);
                Slider_BulletInterval.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Slider_BulletInterval.Visible = true;

                Label_2.SetPosition(75, 157);
                Label_2.SetSize(229, 36);
                Label_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_2.Visible = true;

                Button_OK.SetPosition(320, 319);
                Button_OK.SetSize(214, 56);
                Button_OK.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Button_OK.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
        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();
        }
Ejemplo n.º 16
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    Label_1.SetPosition(0, 0);
                    Label_1.SetSize(214, 36);
                    Label_1.Anchors = Anchors.None;
                    Label_1.Visible = true;

                    break;

                default:
                    this.SetSize(530, 426);
                    this.Anchors = Anchors.None;

                    Label_1.SetPosition(0, 0);
                    Label_1.SetSize(214, 36);
                    Label_1.Anchors = Anchors.None;
                    Label_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(364, 123);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;

                default:
                    this.SetSize(925, 511);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(19, 12);
                    ImageBox_1.SetSize(886, 486);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(385, 176);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;

                default:
                    this.SetSize(924, 511);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(105, -41);
                    ImageBox_1.SetSize(713, 594);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Button_1 = new Button();
            Button_1.Name = "Button_1";
            Label_1 = new Label();
            Label_1.Name = "Label_1";

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

            // Label_1
            Label_1.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            Label_1.Font = new UIFont(FontAlias.System, 38, FontStyle.Regular);
            Label_1.LineBreak = LineBreak.Character;
            Label_1.HorizontalAlignment = HorizontalAlignment.Center;

            // MainScene
            this.RootWidget.AddChildLast(Button_1);
            this.RootWidget.AddChildLast(Label_1);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(425, 924);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(320, 75);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;

                default:
                    this.SetSize(924, 511);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(0, 74);
                    ImageBox_1.SetSize(921, 362);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(263, 94);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;

                default:
                    this.SetSize(960, 544);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(25, -182);
                    ImageBox_1.SetSize(909, 909);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(380, 110);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;

                default:
                    this.SetSize(960, 544);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(-28, -235);
                    ImageBox_1.SetSize(1017, 849);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Button_1 = new Button();
            Button_1.Name = "Button_1";
            Label_1 = new Label();
            Label_1.Name = "Label_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);

            // Label_1
            Label_1.TextColor = new UIColor(255f / 255f, 255f / 255f, 255f / 255f, 255f / 255f);
            Label_1.Font = new UIFont(FontAlias.System, 25, FontStyle.Regular);
            Label_1.LineBreak = LineBreak.Character;
            Label_1.HorizontalAlignment = HorizontalAlignment.Center;

            // ErrorDialog
            this.AddChildLast(Button_1);
            this.AddChildLast(Label_1);
            this.ShowEffect = new BunjeeJumpEffect()
            {
            };
            this.HideEffect = new TiltDropEffect();

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 24
0
        private void SetDialogLayout(DLELayoutableUserControl target, LayoutOrientation dialogLayout)
        {
            string controlName = target.Name;

            target.DialogLayout = dialogLayout; // cascading copy
            target.Name         = controlName;
        }
        private void InitializeWidget(LayoutOrientation orientation)
        {
            ImageBox_1 = new ImageBox();
            ImageBox_1.Name = "ImageBox_1";
            Button_1 = new Button();
            Button_1.Name = "Button_1";

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

            // 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.Alpha = 1;
            Button_1.Style = ButtonStyle.Custom;
            Button_1.CustomImage = new CustomButtonImageSettings(){
                BackgroundNormalImage = null,
                BackgroundPressedImage = null,
            };

            // GameOverScene
            this.RootWidget.AddChildLast(ImageBox_1);
            this.RootWidget.AddChildLast(Button_1);

            this.Transition = new CrossFadeTransition();

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 26
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetSize(544, 860);
                this.Anchors = Anchors.None;

                ScrollPanel_Text.SetPosition(150, 106);
                ScrollPanel_Text.SetSize(100, 50);
                ScrollPanel_Text.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                ScrollPanel_Text.Visible = true;

                break;

            default:
                this.SetSize(860, 544);
                this.Anchors = Anchors.None;

                ScrollPanel_Text.SetPosition(0, 0);
                ScrollPanel_Text.SetSize(860, 544);
                ScrollPanel_Text.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                ScrollPanel_Text.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    BusyIndicator_1.SetPosition(893, 496);
                    BusyIndicator_1.SetSize(48, 48);
                    BusyIndicator_1.Anchors = Anchors.Height | Anchors.Width;
                    BusyIndicator_1.Visible = true;

                    break;

                default:
                    this.SetSize(960, 544);
                    this.Anchors = Anchors.None;

                    BusyIndicator_1.SetPosition(912, 496);
                    BusyIndicator_1.SetSize(48, 48);
                    BusyIndicator_1.Anchors = Anchors.Height | Anchors.Width;
                    BusyIndicator_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(491, 125);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;

                default:
                    this.SetSize(924, 511);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(163, -83);
                    ImageBox_1.SetSize(597, 678);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 29
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetSize(544, 860);
                this.Anchors = Anchors.None;

                ScrollPanel_Text.SetPosition(150, 106);
                ScrollPanel_Text.SetSize(100, 50);
                ScrollPanel_Text.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                ScrollPanel_Text.Visible = true;

                break;

            default:
                this.SetSize(860, 544);
                this.Anchors = Anchors.None;

                ScrollPanel_Text.SetPosition(0, 0);
                ScrollPanel_Text.SetSize(860, 544);
                ScrollPanel_Text.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                ScrollPanel_Text.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 30
0
 public static NSUserInterfaceLayoutOrientation  ToOrientation(this LayoutOrientation orientation)
 {
     if (orientation == LayoutOrientation.Horizontal)
     {
         return(NSUserInterfaceLayoutOrientation.Horizontal);
     }
     return(NSUserInterfaceLayoutOrientation.Vertical);
 }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.DesignWidth = 544;
                    this.DesignHeight = 960;

                    sceneBackgroundPanel.SetPosition(0, 0);
                    sceneBackgroundPanel.SetSize(544, 960);
                    sceneBackgroundPanel.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                    sceneBackgroundPanel.Visible = true;

                    PagePanel_1.SetPosition(36, 154);
                    PagePanel_1.SetSize(100, 50);
                    PagePanel_1.Anchors = Anchors.None;
                    PagePanel_1.Visible = true;

                    CreditsTitleText.SetPosition(20, 27);
                    CreditsTitleText.SetSize(214, 36);
                    CreditsTitleText.Anchors = Anchors.None;
                    CreditsTitleText.Visible = true;

                    BackButton.SetPosition(744, 488);
                    BackButton.SetSize(214, 56);
                    BackButton.Anchors = Anchors.None;
                    BackButton.Visible = true;

                    break;

                default:
                    this.DesignWidth = 960;
                    this.DesignHeight = 544;

                    sceneBackgroundPanel.SetPosition(0, 0);
                    sceneBackgroundPanel.SetSize(960, 544);
                    sceneBackgroundPanel.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                    sceneBackgroundPanel.Visible = true;

                    PagePanel_1.SetPosition(44, 112);
                    PagePanel_1.SetSize(885, 344);
                    PagePanel_1.Anchors = Anchors.None;
                    PagePanel_1.Visible = true;

                    CreditsTitleText.SetPosition(36, 28);
                    CreditsTitleText.SetSize(327, 72);
                    CreditsTitleText.Anchors = Anchors.None;
                    CreditsTitleText.Visible = true;

                    BackButton.SetPosition(671, 473);
                    BackButton.SetSize(289, 71);
                    BackButton.Anchors = Anchors.None;
                    BackButton.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.DesignWidth = 544;
                    this.DesignHeight = 960;

                    Button_1.SetPosition(234, 258);
                    Button_1.SetSize(214, 56);
                    Button_1.Anchors = Anchors.None;
                    Button_1.Visible = true;

                    Label_1.SetPosition(-23, 130);
                    Label_1.SetSize(214, 36);
                    Label_1.Anchors = Anchors.None;
                    Label_1.Visible = true;

                    Label_2.SetPosition(-26, 57);
                    Label_2.SetSize(214, 36);
                    Label_2.Anchors = Anchors.None;
                    Label_2.Visible = true;

                    Panel_2.SetPosition(1, 63);
                    Panel_2.SetSize(100, 100);
                    Panel_2.Anchors = Anchors.None;
                    Panel_2.Visible = true;

                    break;

                default:
                    this.DesignWidth = 960;
                    this.DesignHeight = 544;

                    Button_1.SetPosition(246, 186);
                    Button_1.SetSize(214, 56);
                    Button_1.Anchors = Anchors.None;
                    Button_1.Visible = true;

                    Label_1.SetPosition(13, 23);
                    Label_1.SetSize(214, 44);
                    Label_1.Anchors = Anchors.None;
                    Label_1.Visible = true;

                    Label_2.SetPosition(13, 60);
                    Label_2.SetSize(355, 36);
                    Label_2.Anchors = Anchors.None;
                    Label_2.Visible = true;

                    Panel_2.SetPosition(3, 73);
                    Panel_2.SetSize(445, 241);
                    Panel_2.Anchors = Anchors.None;
                    Panel_2.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    _failureImage.SetPosition(-20, 0);
                    _failureImage.SetSize(200, 200);
                    _failureImage.Anchors = Anchors.None;
                    _failureImage.Visible = true;

                    _successImage.SetPosition(18, -13);
                    _successImage.SetSize(200, 200);
                    _successImage.Anchors = Anchors.None;
                    _successImage.Visible = true;

                    _titleLabel.SetPosition(66, 18);
                    _titleLabel.SetSize(214, 36);
                    _titleLabel.Anchors = Anchors.None;
                    _titleLabel.Visible = true;

                    _messageLabel.SetPosition(18, 66);
                    _messageLabel.SetSize(214, 36);
                    _messageLabel.Anchors = Anchors.None;
                    _messageLabel.Visible = true;

                    break;

                default:
                    this.SetSize(415, 544);
                    this.Anchors = Anchors.None;

                    _failureImage.SetPosition(18, 18);
                    _failureImage.SetSize(48, 48);
                    _failureImage.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                    _failureImage.Visible = false;

                    _successImage.SetPosition(18, 18);
                    _successImage.SetSize(48, 48);
                    _successImage.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                    _successImage.Visible = false;

                    _titleLabel.SetPosition(83, 18);
                    _titleLabel.SetSize(313, 59);
                    _titleLabel.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Right;
                    _titleLabel.Visible = true;

                    _messageLabel.SetPosition(18, 93);
                    _messageLabel.SetSize(379, 434);
                    _messageLabel.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                    _messageLabel.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 34
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.DesignWidth = 544;
                    this.DesignHeight = 960;

                    Background.SetPosition(0, 0);
                    Background.SetSize(200, 200);
                    Background.Anchors = Anchors.None;
                    Background.Visible = true;

                    Title.SetPosition(263, 70);
                    Title.SetSize(214, 36);
                    Title.Anchors = Anchors.None;
                    Title.Visible = true;

                    PlayButton.SetPosition(283, 210);
                    PlayButton.SetSize(214, 56);
                    PlayButton.Anchors = Anchors.None;
                    PlayButton.Visible = true;

                    InstructionsButton.SetPosition(283, 210);
                    InstructionsButton.SetSize(214, 56);
                    InstructionsButton.Anchors = Anchors.None;
                    InstructionsButton.Visible = true;

                    break;

                default:
                    this.DesignWidth = 960;
                    this.DesignHeight = 544;

                    Background.SetPosition(0, 0);
                    Background.SetSize(960, 544);
                    Background.Anchors = Anchors.None;
                    Background.Visible = true;

                    Title.SetPosition(373, 70);
                    Title.SetSize(214, 36);
                    Title.Anchors = Anchors.None;
                    Title.Visible = true;

                    PlayButton.SetPosition(373, 210);
                    PlayButton.SetSize(214, 56);
                    PlayButton.Anchors = Anchors.None;
                    PlayButton.Visible = true;

                    InstructionsButton.SetPosition(373, 275);
                    InstructionsButton.SetSize(214, 56);
                    InstructionsButton.Anchors = Anchors.None;
                    InstructionsButton.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 35
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    enemyHp.SetPosition(578, 16);
                    enemyHp.SetSize(362, 16);
                    enemyHp.Anchors = Anchors.Height;
                    enemyHp.Visible = true;

                    Label_1.SetPosition(364, 6);
                    Label_1.SetSize(214, 36);
                    Label_1.Anchors = Anchors.None;
                    Label_1.Visible = true;

                    Label_2.SetPosition(9, 6);
                    Label_2.SetSize(214, 36);
                    Label_2.Anchors = Anchors.None;
                    Label_2.Visible = true;

                    playerHp.SetPosition(90, 16);
                    playerHp.SetSize(362, 16);
                    playerHp.Anchors = Anchors.Height;
                    playerHp.Visible = true;

                    break;

                default:
                    this.SetSize(960, 544);
                    this.Anchors = Anchors.None;

                    enemyHp.SetPosition(90, 19);
                    enemyHp.SetSize(850, 16);
                    enemyHp.Anchors = Anchors.Height;
                    enemyHp.Visible = true;

                    Label_1.SetPosition(5, 9);
                    Label_1.SetSize(85, 36);
                    Label_1.Anchors = Anchors.None;
                    Label_1.Visible = true;

                    Label_2.SetPosition(9, 497);
                    Label_2.SetSize(81, 36);
                    Label_2.Anchors = Anchors.None;
                    Label_2.Visible = true;

                    playerHp.SetPosition(90, 507);
                    playerHp.SetSize(200, 16);
                    playerHp.Anchors = Anchors.Height;
                    playerHp.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 36
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
//                this.DesignWidth = 480;
//               this.DesignHeight = 854;

                break;

            default:
                this.DesignWidth  = 854;
                this.DesignHeight = 480;

                ChatBox.SetPosition(64, 317);
                ChatBox.SetSize(706, 120);
                ChatBox.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                ChatBox.Visible = true;

                DialogueText.SetPosition(64, 354);
                DialogueText.SetSize(706, 75);
                DialogueText.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                DialogueText.Visible = true;

                ImageBox_1.SetPosition();
                ImageBox_1.SetSize();
                ImageBox_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                ImageBox_1.Visible = true;

                ImageBox_2.SetPosition();
                ImageBox_2.SetSize();
                ImageBox_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                ImageBox_2.Visible = true;

                ImageBox_3.SetPosition();
                ImageBox_3.SetSize();
                ImageBox_3.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                ImageBox_3.Visible = true;

                ImageBox_4.SetPosition();
                ImageBox_4.SetSize();
                ImageBox_4.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                ImageBox_4.Visible = true;

                ImageBox_5.SetPosition();
                ImageBox_5.SetSize();
                ImageBox_5.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                ImageBox_5.Visible = true;

                ScreenVignette.SetPosition(0, 0);
                ScreenVignette.SetSize(853, 478);
                ScreenVignette.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                ScreenVignette.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
 public override Type PickLayout(LayoutOrientation layout)
 {
     switch (layout)
     {
     case LayoutOrientation.VERTICAL:
     case LayoutOrientation.VERTICAL_SS:
         return(typeof(VerticalTextureLighting));
     }
     return(null);
 }
 public override Type PickLayout(LayoutOrientation layout)
 {
     switch (layout)
     {
     case LayoutOrientation.VERTICAL:
     case LayoutOrientation.VERTICAL_SS:
         return(typeof(VerticalDiagnosticsTool));
     }
     return(null);
 }
Ejemplo n.º 39
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            ChatBox             = new ImageBox();
            ChatBox.Name        = "ChatBox";
            DialogueText        = new Label();
            DialogueText.Name   = "DialogueText";
            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";
            ImageBox_5          = new ImageBox();
            ImageBox_5.Name     = "ImageBox_5";
            ScreenVignette      = new ImageBox();
            ScreenVignette.Name = "ScreenVignette";

            // ChatBox
            ChatBox.Image = new ImageAsset("assets/GUI/Dialogue_ChatBox.png");

            // DialogueText
            DialogueText.TextColor         = new UIColor(231f / 255f, 235f / 255f, 237f / 255f, 255f / 255f);
            DialogueText.Font              = new Font(FontAlias.System, 16, FontStyle.Bold);
            DialogueText.TextTrimming      = TextTrimming.Word;
            DialogueText.VerticalAlignment = VerticalAlignment.Top;

            // ImageBox_1

            // ImageBox_2

            // ImageBox_3

            // ImageBox_4

            // ImageBox_5

            // ScreenVignette
            ScreenVignette.Image = new ImageAsset("assets/GUI/Screen_Vignette.png");

            // Scene
            this.RootWidget.AddChildLast(ChatBox);
            this.RootWidget.AddChildLast(DialogueText);
            this.RootWidget.AddChildLast(ImageBox_1);
            this.RootWidget.AddChildLast(ImageBox_2);
            this.RootWidget.AddChildLast(ImageBox_3);
            this.RootWidget.AddChildLast(ImageBox_4);
            this.RootWidget.AddChildLast(ImageBox_5);
            this.RootWidget.AddChildLast(ScreenVignette);
            this.Showing += new EventHandler(onShowing);
            this.Shown   += new EventHandler(onShown);

            SetWidgetLayout(orientation);
        }
 public override Type PickLayout(LayoutOrientation layout)
 {
     switch (layout)
     {
     case LayoutOrientation.VERTICAL:
     case LayoutOrientation.VERTICAL_SS:
     case LayoutOrientation.FLOATING:
         return(typeof(VerticalEffectWaypoint));
     }
     return(null);
 }
Ejemplo n.º 41
0
        private static ILayoutAlgorithm CreateHierarchicLayout(LayoutOrientation layoutOrientation)
        {
            var hl = new HierarchicLayout
            {
                IntegratedEdgeLabeling = true,
                LayoutOrientation      = layoutOrientation
            };

            DisableAutoFlipping(hl);
            return(hl);
        }
Ejemplo n.º 42
0
 public override Type PickLayout(LayoutOrientation layout)
 {
     switch (layout)
     {
     case LayoutOrientation.VERTICAL:
     case LayoutOrientation.VERTICAL_SS:
     case LayoutOrientation.FLOATING:
         return(typeof(VerticalObjectAdvanced));
     }
     return(null);
 }
 public override Type PickLayout(LayoutOrientation layout)
 {
     switch (layout)
     {
     case LayoutOrientation.VERTICAL:
     case LayoutOrientation.VERTICAL_SS:
     case LayoutOrientation.FLOATING:
         return(typeof(VerticalPreferencesEditor));
     }
     return(null);
 }
Ejemplo n.º 44
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Title_1      = new ImageBox();
            Title_1.Name = "Title_1";

            ScreenVignette      = new ImageBox();
            ScreenVignette.Name = "ScreenVignette";

            btnNewgame      = new ImageBox();
            btnNewgame.Name = "btnNewgame";
            btnQuit         = new ImageBox();
            btnQuit.Name    = "btnQuit";


            // Title_1
            Title_1.Image = new ImageAsset("assets/StartScreen/magnate-title2.png");

            // Arrow_2


            // ScreenVignette
            ScreenVignette.Image = new ImageAsset("assets/GUI/Screen_Vignette.png");

            // Tutbox


            // Label_1

            // btnNewgame
            btnNewgame.Image = new ImageAsset("assets/StartScreen/newgame.png");

            // btnQuit
            btnQuit.Image = new ImageAsset("assets/StartScreen/quit.png");

            // Button_2

            // Button_1

            // Scene
            this.RootWidget.AddChildLast(Title_1);

            this.RootWidget.AddChildLast(ScreenVignette);

            this.RootWidget.AddChildLast(btnNewgame);
            this.RootWidget.AddChildLast(btnQuit);

            this.Showing += new EventHandler(onShowing);
            this.Shown   += new EventHandler(onShown);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
        public override Type PickLayout(LayoutOrientation layout)
        {
            switch (layout)
            {
            case LayoutOrientation.VERTICAL:
            case LayoutOrientation.VERTICAL_SS:
                return(typeof(VerticalSettingsTool));

            case LayoutOrientation.FLOATING:
                return(typeof(FloatingSettingsTool));
            }
            return(null);
        }
Ejemplo n.º 46
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetPosition(1, 1);
                this.SetSize(400, 640);
                this.Anchors = Anchors.None;

                Button_OK.SetPosition(144, 310);
                Button_OK.SetSize(214, 56);
                Button_OK.Anchors = Anchors.None;
                Button_OK.Visible = true;

                Label_1.SetPosition(23, 36);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.None;
                Label_1.Visible = true;

                Text_IP.SetPosition(250, 28);
                Text_IP.SetSize(360, 56);
                Text_IP.Anchors = Anchors.None;
                Text_IP.Visible = true;

                break;

            default:
                this.SetPosition(1, 1);
                this.SetSize(960, 544);
                this.Anchors = Anchors.None;

                Button_OK.SetPosition(766, 397);
                Button_OK.SetSize(193, 146);
                Button_OK.Anchors = Anchors.None;
                Button_OK.Visible = true;

                Label_1.SetPosition(23, 36);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.None;
                Label_1.Visible = true;

                Text_IP.SetPosition(268, 27);
                Text_IP.SetSize(209, 54);
                Text_IP.Anchors = Anchors.None;
                Text_IP.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 47
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetPosition(0, 0);
                this.SetSize(200, 400);
                this.Anchors = Anchors.None;

                Label_1.SetPosition(85, 48);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_1.Visible = true;

                Label_2.SetPosition(85, 48);
                Label_2.SetSize(214, 36);
                Label_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_2.Visible = true;

                HideButton.SetPosition(86, 117);
                HideButton.SetSize(214, 56);
                HideButton.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                HideButton.Visible = true;

                break;

            default:
                this.SetPosition(0, 0);
                this.SetSize(400, 200);
                this.Anchors = Anchors.None;

                Label_1.SetPosition(25, 26);
                Label_1.SetSize(300, 30);
                Label_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_1.Visible = true;

                Label_2.SetPosition(25, 56);
                Label_2.SetSize(300, 30);
                Label_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_2.Visible = true;

                HideButton.SetPosition(150, 115);
                HideButton.SetSize(86, 56);
                HideButton.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                HideButton.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.SetSize(544, 960);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(336, 115);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    Button_1.SetPosition(306, 455);
                    Button_1.SetSize(214, 56);
                    Button_1.Anchors = Anchors.None;
                    Button_1.Visible = true;

                    Button_2.SetPosition(158, 402);
                    Button_2.SetSize(214, 56);
                    Button_2.Anchors = Anchors.None;
                    Button_2.Visible = true;

                    break;

                default:
                    this.SetSize(924, 511);
                    this.Anchors = Anchors.None;

                    ImageBox_1.SetPosition(72, 39);
                    ImageBox_1.SetSize(779, 432);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    Button_1.SetPosition(524, 388);
                    Button_1.SetSize(289, 71);
                    Button_1.Anchors = Anchors.None;
                    Button_1.Visible = true;

                    Button_2.SetPosition(108, 388);
                    Button_2.SetSize(289, 71);
                    Button_2.Anchors = Anchors.None;
                    Button_2.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.DesignWidth = 544;
                    this.DesignHeight = 960;

                    sceneBackgroundPanel.SetPosition(0, 0);
                    sceneBackgroundPanel.SetSize(544, 960);
                    sceneBackgroundPanel.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                    sceneBackgroundPanel.Visible = true;

                    playGame.SetPosition(734, 488);
                    playGame.SetSize(214, 56);
                    playGame.Anchors = Anchors.None;
                    playGame.Visible = true;

                    ImageBox_1.SetPosition(480, 134);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;

                default:
                    this.DesignWidth = 960;
                    this.DesignHeight = 544;

                    sceneBackgroundPanel.SetPosition(0, 0);
                    sceneBackgroundPanel.SetSize(960, 544);
                    sceneBackgroundPanel.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                    sceneBackgroundPanel.Visible = true;

                    playGame.SetPosition(351, 483);
                    playGame.SetSize(258, 63);
                    playGame.Anchors = Anchors.None;
                    playGame.Visible = true;

                    ImageBox_1.SetPosition(7, -234);
                    ImageBox_1.SetSize(945, 971);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
                case LayoutOrientation.Vertical:
                    this.DesignWidth = 544;
                    this.DesignHeight = 960;

                    sceneBackgroundPanel.SetPosition(0, 0);
                    sceneBackgroundPanel.SetSize(544, 960);
                    sceneBackgroundPanel.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                    sceneBackgroundPanel.Visible = true;

                    ImageBox_1.SetPosition(221, 153);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    ImageBox_2.SetPosition(219, 227);
                    ImageBox_2.SetSize(200, 200);
                    ImageBox_2.Anchors = Anchors.None;
                    ImageBox_2.Visible = true;

                    break;

                default:
                    this.DesignWidth = 960;
                    this.DesignHeight = 544;

                    sceneBackgroundPanel.SetPosition(0, 0);
                    sceneBackgroundPanel.SetSize(960, 544);
                    sceneBackgroundPanel.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                    sceneBackgroundPanel.Visible = true;

                    ImageBox_1.SetPosition(1065, -127);
                    ImageBox_1.SetSize(200, 200);
                    ImageBox_1.Anchors = Anchors.None;
                    ImageBox_1.Visible = true;

                    ImageBox_2.SetPosition(36, -172);
                    ImageBox_2.SetSize(888, 888);
                    ImageBox_2.Anchors = Anchors.None;
                    ImageBox_2.Visible = true;

                    break;
            }
            _currentLayoutOrientation = orientation;
        }
Ejemplo n.º 51
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            ScrollPanel_Text      = new StreamPagePanel();
            ScrollPanel_Text.Name = "ScrollPanel_Text";

            // ReadScollPanel
            this.BackgroundColor = new UIColor(153f / 255f, 100f / 255f, 153f / 255f, 255f / 255f);
            this.Clip            = true;

            // Panel
            this.AddChildLast(ScrollPanel_Text);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 52
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Label_1      = new Label();
            Label_1.Name = "Label_1";

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

            // MainUI
            this.RootWidget.AddChildLast(Label_1);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 53
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            download_url        = new EditableText();
            download_url.Name   = "download_url";
            DownloadBtn         = new Button();
            DownloadBtn.Name    = "DownloadBtn";
            EditableText_1      = new EditableText();
            EditableText_1.Name = "EditableText_1";
            EditableText_2      = new EditableText();
            EditableText_2.Name = "EditableText_2";

            // download_url
            download_url.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            download_url.Font      = new Font(FontAlias.System, 25, FontStyle.Regular);
            download_url.LineBreak = LineBreak.Character;

            // DownloadBtn
            DownloadBtn.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            DownloadBtn.TextFont  = new Font(FontAlias.System, 25, FontStyle.Regular);

            // EditableText_1
            EditableText_1.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            EditableText_1.Font      = new Font(FontAlias.System, 25, FontStyle.Regular);
            EditableText_1.LineBreak = LineBreak.Character;

            // EditableText_2
            EditableText_2.TextColor = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            EditableText_2.Font      = new Font(FontAlias.System, 25, FontStyle.Regular);
            EditableText_2.LineBreak = LineBreak.Character;

            // DownloadUI

            // Dialog
            this.AddChildLast(download_url);
            this.AddChildLast(DownloadBtn);
            this.AddChildLast(EditableText_1);
            this.AddChildLast(EditableText_2);
            this.ShowEffect = new BunjeeJumpEffect()
            {
            };
            this.HideEffect = new TiltDropEffect();

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 54
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            ScreenVignette      = new ImageBox();
            ScreenVignette.Name = "ScreenVignette";
            btnNewgame          = new ImageBox();
            btnNewgame.Name     = "btnNewgame";
            btnQuit             = new ImageBox();
            btnQuit.Name        = "btnQuit";
            Button_2            = new Button();
            Button_2.Name       = "Button_2";
            Button_1            = new Button();
            Button_1.Name       = "Button_1";

            // ScreenVignette
            ScreenVignette.Image = new ImageAsset("assets/GUI/Screen_Vignette.png");

            // btnNewgame
            btnNewgame.Image = new ImageAsset("assets/StartScreen/newgame.png");

            // btnQuit
            btnQuit.Image = new ImageAsset("assets/StartScreen/quit.png");

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

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

            // Scene
            this.RootWidget.AddChildLast(ScreenVignette);
            this.RootWidget.AddChildLast(btnNewgame);
            this.RootWidget.AddChildLast(btnQuit);
            this.RootWidget.AddChildLast(Button_2);
            this.RootWidget.AddChildLast(Button_1);
            this.Showing += new EventHandler(onShowing);
            this.Shown   += new EventHandler(onShown);

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 55
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Button_OK      = new Button();
            Button_OK.Name = "Button_OK";
            Label_1        = new Label();
            Label_1.Name   = "Label_1";
            Text_IP        = new EditableText();
            Text_IP.Name   = "Text_IP";

            // UISettingDialog
            this.BackgroundStyle                 = DialogBackgroundStyle.Custom;
            this.CustomBackgroundImage           = null;
            this.CustomBackgroundNinePatchMargin = new NinePatchMargin(34, 34, 34, 34);
            this.CustomBackgroundColor           = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            this.BackgroundFilterColor           = new UIColor(0f / 255f, 0f / 255f, 0f / 255f, 255f / 255f);
            this.AddChildLast(Button_OK);
            this.AddChildLast(Label_1);
            this.AddChildLast(Text_IP);
            this.ShowEffect = new SlideInEffect()
            {
                MoveDirection = FourWayDirection.Up,
            };
            this.HideEffect = new TiltDropEffect();

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

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

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

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 56
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            Label_1      = new Label();
            Label_1.Name = "Label_1";

            // Panel_MNT
            this.BackgroundColor = new UIColor(106f / 255f, 63f / 255f, 32f / 255f, 255f / 255f);
            this.Clip            = true;
            this.AddChildLast(Label_1);

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

            SetWidgetLayout(orientation);

            UpdateLanguage();
        }
Ejemplo n.º 57
0
        public override void OnDraw()
        {
            LayoutOrientation o = Orientation;

            switch (o)
            {
            case LayoutOrientation.Horizontal:
                GUILayout.BeginHorizontal();
                DrawChildren();
                GUILayout.EndHorizontal();
                break;

            case LayoutOrientation.Vertical:
                GUILayout.BeginVertical();
                DrawChildren();
                GUILayout.EndVertical();
                break;
            }
        }
Ejemplo n.º 58
0
        public void AttachToFloating(LayoutOrientation layout)
        {
            if (attachedToFloating)
            {
                return;
            }
            if (attached)
            {
                Detach();
            }
            attachedToFloating = true;
            attached           = true;

            foreach (DLELayoutableUserControl tab in AllTools)
            {
                tab.DialogLayout = layout;
                CreateFloatingForm(tab);
            }
        }
Ejemplo n.º 59
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            tap_gd         = new TapGestureDetector();
            dtap_gd        = new DoubleTapGestureDetector();
            drag_gd        = new DragGestureDetector();
            longPress_gd   = new LongPressGestureDetector();
            FPS_Label      = new Label();
            FPS_Label.Name = "FPS Label";

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

            tap_gd.TapDetected             += Tap;
            dtap_gd.DoubleTapDetected      += DoubleTap;
            drag_gd.DragDetected           += Drag;
            drag_gd.DragStartDetected      += dragStart;
            drag_gd.DragEndDetected        += dragEnd;
            longPress_gd.LongPressDetected += LongPress;

            lblOutput = new Label();

            imgDesktop  = new ImageBox();
            imgDesktop2 = new ImageBox();
            dummy       = new ImageBox();

            dummy.AddGestureDetector(tap_gd);
            dummy.AddGestureDetector(dtap_gd);
            dummy.AddGestureDetector(drag_gd);
            dummy.AddGestureDetector(longPress_gd);

            imgDesktop.ImageScaleType = ImageScaleType.Stretch;

            this.RootWidget.AddChildLast(imgDesktop);
            this.RootWidget.AddChildLast(imgDesktop2);
            this.RootWidget.AddChildLast(dummy);
            this.RootWidget.AddChildLast(lblOutput);
            this.RootWidget.AddChildLast(FPS_Label);


            SetWidgetLayout(orientation);
        }
Ejemplo n.º 60
0
        private void InitializeWidget(LayoutOrientation orientation)
        {
            // ChatBox
            ChatBox.Image = new ImageAsset("assets/GUI/Dialogue_ChatBox.png");


            if (Aside)
            {
                // DialogueText
                DialogueText.TextColor           = new UIColor(231f / 255f, 235f / 255f, 237f / 255f, 255f / 255f);
                DialogueText.Font                = new Font(FontAlias.System, 14, FontStyle.Bold);
                DialogueText.TextTrimming        = TextTrimming.Word;
                DialogueText.HorizontalAlignment = HorizontalAlignment.Center;
            }
            else
            {
                // DialogueText
                DialogueText.TextColor         = new UIColor(231f / 255f, 235f / 255f, 237f / 255f, 255f / 255f);
                DialogueText.Font              = new Font(FontAlias.System, 16, FontStyle.Bold);
                DialogueText.TextTrimming      = TextTrimming.Word;
                DialogueText.VerticalAlignment = VerticalAlignment.Top;
            }
            // ScreenVignette
            screenVignette.Image = new ImageAsset("assets/GUI/Screen_Vignette.png");
            // TextEvent

            this.RootWidget.AddChildLast(LCharBoxL);
            this.RootWidget.AddChildLast(LCharboxR);
            this.RootWidget.AddChildLast(RCharBoxR);
            this.RootWidget.AddChildLast(RCharBoxL);
            this.RootWidget.AddChildLast(RCharBoxM);
            this.RootWidget.AddChildLast(ChatBox);
            this.RootWidget.AddChildLast(DialogueText);
            this.RootWidget.AddChildLast(screenVignette);

            this.Transition = new CrossFadeTransition();
            this.Showing   += new EventHandler(onShowing);
            this.Shown     += new EventHandler(onShown);


            SetWidgetLayout(orientation);
        }