示例#1
0
文件: Button.cs 项目: JWeel/Hex
        internal override void LoadContent(DrawHelper helper)
        {
            base.LoadContent(helper);

            string[] assets =
            {
                BtnLeftTexture, BtnMiddleTexture, BtnRightTexture
            };

            foreach (var asset in assets)
            {
                if (!string.IsNullOrEmpty(asset))
                {
                    helper.LoadTexture(asset);
                }
            }
        }
示例#2
0
        internal override void LoadContent(DrawHelper helper)
        {
            base.LoadContent(helper);

            string[] assets =
            {
                WinTopTexture,   WinTopLeftTexture, WinTopRightTexture,   WinLeftTexture,
                WinRightTexture, WinBottomTexture,  WinBottomLeftTexture, WinBottomRightTexture
            };

            foreach (var asset in assets)
            {
                if (!string.IsNullOrEmpty(asset))
                {
                    helper.LoadTexture(asset);
                }
            }
        }