Пример #1
0
        public AGuiElement Make()
        {
            var text = new GuiText()
            {
                Text       = LocalizationManifest.Get.CurrentLanguage[this.context][this.textKey()].Text(),
                TextColor  = Color.White,
                TextHeight = 12
            };

            text.Position.WrapContent().Then.ParentRelative(0, 0);

            var panel = new GuiPanel()
            {
                Background     = new BackgroundTexture(GalaxyTextures.Get.PanelBackground, 3),
                MaskMouseClick = false
            };

            panel.AddChild(text);
            panel.Position.WrapContent().WithPadding(10, 5);

            return(panel);
        }