Example #1
0
        }                    //default ctor not valid - we want to enforce initializing our data

        public UILabel(string name) : base(name)
        {
            textRenderComp      = new UIComp_DrawText(this);
            textRenderComp.Text = "UILabel";

            backgroundRenderComp = new UIComp_DrawTextureAtlas(this);

            backgroundRenderComp.ResourceAtlasLocation = new NexusEngine.NResourceLoc(@"engine_data:/ui/Atlas/engine_data1.txa");
            backgroundRenderComp.AtlasItemName         = "0";
        }
Example #2
0
        }                            //default ctor not valid - we want to enforce initializing our data

        public UIButtonBase(string name)
            : base(name)
        {
            normalText       = new UIComp_DrawText(this);
            normalBackground = new UIComp_DrawTextureAtlas(this);

            hoveringText       = new UIComp_DrawText(this);
            hoveringBackground = new UIComp_DrawTextureAtlas(this);

            pushedText       = new UIComp_DrawText(this);
            pushedBackground = new UIComp_DrawTextureAtlas(this);

            disableText       = new UIComp_DrawText(this);
            disableBackground = new UIComp_DrawTextureAtlas(this);
        }
Example #3
0
        }                          //default ctor not valid - we want to enforce initializing our data

        public UIProgressBar(string name)
            : base(name)
        {
            step = 0.01f;

            textComponent             = new UIComp_DrawText(this);
            textComponent.TextFormat |= NexusEngine.DrawTextFormat.NoClip;
            background = new UIComp_DrawTextureAtlas(this);
            foreground = new UIComp_DrawTextureAtlas(this);

            background.ResourceAtlasLocation = new NexusEngine.NResourceLoc(@"engine_data:/ui/Atlas/engine_data1.txa");
            background.AtlasItemName         = @"progress_back";

            foreground.ResourceAtlasLocation = new NexusEngine.NResourceLoc(@"engine_data:/ui/Atlas/engine_data1.txa");
            foreground.AtlasItemName         = @"progress";
        }
Example #4
0
        }                         //default ctor not valid - we want to enforce initializing our data

        public UIStaticText(string name) : base(name)
        {
            textRenderComp      = new UIComp_DrawText(this);
            textRenderComp.Text = "UIStaticText";
        }