예제 #1
0
파일: UI.cs 프로젝트: Fymir27/RoguelikeECS
        public UIWindow(string name, Rectangle bounds, bool displayName = true, string backgroundTexture = "UIBox") : this(name, displayName)
        {
            if (UI.Graphics == null)
            {
                throw new Exception("UI.Graphics not initialized before creating UIWindow!");
            }

            Background = new NineSlicedSprite(backgroundTexture, bounds, UI.Graphics);
        }
예제 #2
0
파일: UI.cs 프로젝트: Fymir27/RoguelikeECS
        public UIWindow(string name, bool displayName, int padding = 10)
        {
            Name        = name;
            DisplayName = displayName;
            Padding     = padding;

            Content     = new List <string>();
            Background  = null;
            NameFont    = Util.BigFont;
            ContentFont = Util.DefaultFont;
        }