Пример #1
0
        /*
         * Methods
         * */
        public VOID_HUDAdvanced() : base()
        {
            this.Name = "Advanced Heads-Up Display";

            this.Active = true;

            this.leftHUD = new HUDWindow("leftHUD",
                                         this.leftHUDWindow,
                                         new Rect(
                                             Screen.width * .5f - 300f - 220f * GameSettings.UI_SCALE,
                                             Screen.height - 200f,
                                             300f, 90f)
                                         );
            this.Windows.Add(this.leftHUD);

            this.rightHUD = new HUDWindow(
                "rightHUD",
                this.rightHUDWindow,
                new Rect(
                    Screen.width * .5f + 180f * GameSettings.UI_SCALE,
                    Screen.height - 200f,
                    300f, 90f)
                );
            this.Windows.Add(this.rightHUD);

            this.positionsLocked.value = true;

            Logging.PostDebugMessage(this, "Constructed.");
        }
Пример #2
0
        /*
         * Properties
         * */

        /*
         * Methods
         * */

        public VOID_HUD() : base()
        {
            this.Name = "Heads-Up Display";

            this.Active = true;

            this.leftHUD = new HUDWindow("leftHUD", this.leftHUDWindow, new Rect((float)Screen.width * .375f - 300f, 0f, 300f, 90f));
            this.Windows.Add(this.leftHUD);

            this.rightHUD = new HUDWindow("rightHUD", this.rightHUDWindow, new Rect((float)Screen.width * .625f, 0f, 300f, 90f));
            this.Windows.Add(this.rightHUD);

            Logging.PostDebugMessage("VOID_HUD: Constructed.");
        }
Пример #3
0
        /*
         * Methods
         * */
        public VOID_EditorHUD() : base()
        {
            this.Name = "Heads-Up Display";

            this.Active = true;

            this.snapToLeft.value = true;

            this.ehudWindow = new HUDWindow(
                "editorHUD",
                this.ehudWindowFunc,
                new Rect(10f, 125f, 300f, 64f)
                );
            this.Windows.Add(this.ehudWindow);

            Logging.PostDebugMessage(this.GetType().Name + ": Constructed.");
        }