refactor.
This commit is contained in:
parent
2788d9d349
commit
9d84b641db
@ -1,5 +1,5 @@
|
|||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using RecrownedAthenaeum.UI.Skin.Definitions;
|
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.Data
|
namespace RecrownedAthenaeum.Data
|
||||||
{
|
{
|
||||||
|
@ -77,23 +77,23 @@
|
|||||||
<Compile Include="ScreenSystem\LoadingScreen.cs" />
|
<Compile Include="ScreenSystem\LoadingScreen.cs" />
|
||||||
<Compile Include="ScreenSystem\Screen.cs" />
|
<Compile Include="ScreenSystem\Screen.cs" />
|
||||||
<Compile Include="ScreenSystem\ScreenManager.cs" />
|
<Compile Include="ScreenSystem\ScreenManager.cs" />
|
||||||
<Compile Include="UI\Book\Book.cs" />
|
<Compile Include="UI\BookSystem\Book.cs" />
|
||||||
<Compile Include="UI\Book\Page.cs" />
|
<Compile Include="UI\BookSystem\Page.cs" />
|
||||||
<Compile Include="UI\Modular\Modules\Image.cs" />
|
<Compile Include="UI\Modular\Modules\Image.cs" />
|
||||||
<Compile Include="UI\Modular\Modules\Interactive\Button.cs" />
|
<Compile Include="UI\Modular\Modules\Interactive\Button.cs" />
|
||||||
<Compile Include="UI\Modular\Modules\Interactive\TextButton.cs" />
|
<Compile Include="UI\Modular\Modules\Interactive\TextButton.cs" />
|
||||||
<Compile Include="UI\Modular\Modules\Text.cs" />
|
<Compile Include="UI\Modular\Modules\Text.cs" />
|
||||||
<Compile Include="UI\Modular\UIModule.cs" />
|
<Compile Include="UI\Modular\UIModule.cs" />
|
||||||
<Compile Include="UI\Modular\UIModuleGroup.cs" />
|
<Compile Include="UI\Modular\UIModuleGroup.cs" />
|
||||||
<Compile Include="UI\Skin\Definitions\ButtonSkinDefinition.cs" />
|
<Compile Include="UI\SkinSystem\Definitions\ButtonSkinDefinition.cs" />
|
||||||
<Compile Include="UI\Skin\Definitions\ISkinDefinition.cs" />
|
<Compile Include="UI\SkinSystem\Definitions\ISkinDefinition.cs" />
|
||||||
<Compile Include="UI\Skin\Definitions\TextButtonSkinDefinition.cs" />
|
<Compile Include="UI\SkinSystem\Definitions\TextButtonSkinDefinition.cs" />
|
||||||
<Compile Include="UI\Skin\Definitions\TextSkinDefinition.cs" />
|
<Compile Include="UI\SkinSystem\Definitions\TextSkinDefinition.cs" />
|
||||||
<Compile Include="UI\Skin\ISkin.cs" />
|
<Compile Include="UI\SkinSystem\ISkin.cs" />
|
||||||
<Compile Include="UI\Skin\Skin.cs" />
|
<Compile Include="UI\SkinSystem\Skin.cs" />
|
||||||
<Compile Include="Data\SkinData.cs" />
|
<Compile Include="Data\SkinData.cs" />
|
||||||
<Compile Include="UI\Skin\SkinManager.cs" />
|
<Compile Include="UI\SkinSystem\SkinManager.cs" />
|
||||||
<Compile Include="UI\Skin\MergedSkin.cs" />
|
<Compile Include="UI\SkinSystem\MergedSkin.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
|
@ -5,7 +5,7 @@ using RecrownedAthenaeum.ContentSystem;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Book
|
namespace RecrownedAthenaeum.UI.BookSystem
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains the pages.
|
/// Contains the pages.
|
@ -1,7 +1,7 @@
|
|||||||
using RecrownedAthenaeum.ContentSystem;
|
using RecrownedAthenaeum.ContentSystem;
|
||||||
using RecrownedAthenaeum.UI.Modular;
|
using RecrownedAthenaeum.UI.Modular;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Book
|
namespace RecrownedAthenaeum.UI.BookSystem
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A page a part of a <see cref="Book"/>.
|
/// A page a part of a <see cref="Book"/>.
|
@ -2,7 +2,7 @@
|
|||||||
using Microsoft.Xna.Framework.Input;
|
using Microsoft.Xna.Framework.Input;
|
||||||
using RecrownedAthenaeum.SpecialTypes;
|
using RecrownedAthenaeum.SpecialTypes;
|
||||||
using RecrownedAthenaeum.Input;
|
using RecrownedAthenaeum.Input;
|
||||||
using RecrownedAthenaeum.UI.Skin.Definitions;
|
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
||||||
{
|
{
|
||||||
@ -53,7 +53,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="skin">The skin containing the information of the textures and design to follow.</param>
|
/// <param name="skin">The skin containing the information of the textures and design to follow.</param>
|
||||||
/// <param name="definitionName">The name of the definition in the skin. Can be null to select the default.</param>
|
/// <param name="definitionName">The name of the definition in the skin. Can be null to select the default.</param>
|
||||||
public Button(Skin.Skin skin, string definitionName = null)
|
public Button(SkinSystem.Skin skin, string definitionName = null)
|
||||||
{
|
{
|
||||||
skinDefinition = skin.ObtainDefinition<ButtonSkinDefinition>(definitionName, GetType());
|
skinDefinition = skin.ObtainDefinition<ButtonSkinDefinition>(definitionName, GetType());
|
||||||
downTexture = skin.GetTextureAtlasRegion(skinDefinition.downRegion);
|
downTexture = skin.GetTextureAtlasRegion(skinDefinition.downRegion);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
using RecrownedAthenaeum.SpecialTypes;
|
using RecrownedAthenaeum.SpecialTypes;
|
||||||
using RecrownedAthenaeum.UI.Skin.Definitions;
|
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
||||||
{
|
{
|
||||||
@ -41,7 +41,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules.Interactive
|
|||||||
/// <param name="font">The font to be used.</param>
|
/// <param name="font">The font to be used.</param>
|
||||||
/// <param name="skin">The skin to use.</param>
|
/// <param name="skin">The skin to use.</param>
|
||||||
/// <param name="definitionName">Name of the definition for this type in the skin given.</param>
|
/// <param name="definitionName">Name of the definition for this type in the skin given.</param>
|
||||||
public TextButton(string text, SpriteFont font, Skin.Skin skin, string definitionName = null) : base(skin, definitionName)
|
public TextButton(string text, SpriteFont font, SkinSystem.Skin skin, string definitionName = null) : base(skin, definitionName)
|
||||||
{
|
{
|
||||||
TextButtonSkinDefinition skinDefinition = skin.ObtainDefinition<TextButtonSkinDefinition>(definitionName, GetType());
|
TextButtonSkinDefinition skinDefinition = skin.ObtainDefinition<TextButtonSkinDefinition>(definitionName, GetType());
|
||||||
this.text = new Text(font, text);
|
this.text = new Text(font, text);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
using RecrownedAthenaeum.UI.Skin.Definitions;
|
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Modular.Modules
|
namespace RecrownedAthenaeum.UI.Modular.Modules
|
||||||
@ -61,7 +61,7 @@ namespace RecrownedAthenaeum.UI.Modular.Modules
|
|||||||
/// <param name="skinDefinitionName">The name of the skin's definition to use of a <see cref="TextSkinDefinition"/>.</param>
|
/// <param name="skinDefinitionName">The name of the skin's definition to use of a <see cref="TextSkinDefinition"/>.</param>
|
||||||
/// <param name="font">The font to be used.</param>
|
/// <param name="font">The font to be used.</param>
|
||||||
/// <param name="content">The string of text to be displayed.</param>
|
/// <param name="content">The string of text to be displayed.</param>
|
||||||
public Text(Skin.Skin skin, SpriteFont font, string skinDefinitionName = null, string content = null) : this(font, content)
|
public Text(SkinSystem.Skin skin, SpriteFont font, string skinDefinitionName = null, string content = null) : this(font, content)
|
||||||
{
|
{
|
||||||
skinDefinition = skin.ObtainDefinition<TextSkinDefinition>(skinDefinitionName, GetType());
|
skinDefinition = skin.ObtainDefinition<TextSkinDefinition>(skinDefinitionName, GetType());
|
||||||
color = skin.GetColor(skinDefinition.color);
|
color = skin.GetColor(skinDefinition.color);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using RecrownedAthenaeum.UI.Modular.Modules.Interactive;
|
using RecrownedAthenaeum.UI.Modular.Modules.Interactive;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Skin.Definitions
|
namespace RecrownedAthenaeum.UI.SkinSystem.Definitions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Definition for a button.
|
/// Definition for a button.
|
@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Skin.Definitions
|
namespace RecrownedAthenaeum.UI.SkinSystem.Definitions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A definition containing the data for the skin system. Should be in data transfer object model.
|
/// A definition containing the data for the skin system. Should be in data transfer object model.
|
@ -1,7 +1,7 @@
|
|||||||
using RecrownedAthenaeum.UI.Modular.Modules.Interactive;
|
using RecrownedAthenaeum.UI.Modular.Modules.Interactive;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Skin.Definitions
|
namespace RecrownedAthenaeum.UI.SkinSystem.Definitions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Definition for a text button for a skin theme.
|
/// Definition for a text button for a skin theme.
|
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using static System.Net.Mime.MediaTypeNames;
|
using static System.Net.Mime.MediaTypeNames;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Skin.Definitions
|
namespace RecrownedAthenaeum.UI.SkinSystem.Definitions
|
||||||
{
|
{
|
||||||
class TextSkinDefinition : ISkinDefinitionData
|
class TextSkinDefinition : ISkinDefinitionData
|
||||||
{
|
{
|
@ -2,9 +2,9 @@
|
|||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
using RecrownedAthenaeum.SpecialTypes;
|
using RecrownedAthenaeum.SpecialTypes;
|
||||||
using RecrownedAthenaeum.UI.Skin.Definitions;
|
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Skin
|
namespace RecrownedAthenaeum.UI.SkinSystem
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The output requirements of a skin. This allows for very customized skin systems if needed.
|
/// The output requirements of a skin. This allows for very customized skin systems if needed.
|
@ -3,9 +3,9 @@ using System.Collections.Generic;
|
|||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
using RecrownedAthenaeum.SpecialTypes;
|
using RecrownedAthenaeum.SpecialTypes;
|
||||||
using RecrownedAthenaeum.UI.Skin.Definitions;
|
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Skin
|
namespace RecrownedAthenaeum.UI.SkinSystem
|
||||||
{
|
{
|
||||||
internal class MergedSkin : ISkin
|
internal class MergedSkin : ISkin
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
using RecrownedAthenaeum.SpecialTypes;
|
using RecrownedAthenaeum.SpecialTypes;
|
||||||
using RecrownedAthenaeum.UI.Skin.Definitions;
|
using RecrownedAthenaeum.UI.SkinSystem.Definitions;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Skin
|
namespace RecrownedAthenaeum.UI.SkinSystem
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A skin is used to group a theme which can then be applied to the UI via the use of modules.
|
/// A skin is used to group a theme which can then be applied to the UI via the use of modules.
|
@ -9,7 +9,7 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace RecrownedAthenaeum.UI.Skin
|
namespace RecrownedAthenaeum.UI.SkinSystem
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called when the skin manager has completed a async action.
|
/// Called when the skin manager has completed a async action.
|
Loading…
Reference in New Issue
Block a user