Skip to content

Commit

Permalink
got rid of the xna XML content - all style sheets are not regular xmls
Browse files Browse the repository at this point in the history
  • Loading branch information
RonenNess committed Oct 31, 2023
1 parent 88885eb commit 3163e0b
Show file tree
Hide file tree
Showing 325 changed files with 5,934 additions and 6,992 deletions.
6 changes: 3 additions & 3 deletions GeonBit.UI.DataTypes/Source/CursorTextureData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
public class CursorTextureData
{
/// <summary>Cursor offset from mouse position, on X axis, in texture pixels.</summary>
public int OffsetX = 0;
public int OffsetX { get; set; } = 0;

/// <summary>Cursor offset from mouse position, on Y axis, in texture pixels.</summary>
public int OffsetY = 0;
public int OffsetY { get; set; } = 0;

/// <summary>Width, in pixels, to draw this cursor. The height will be calculated automatically to fit texture propotions.</summary>
public int DrawWidth = 64;
public int DrawWidth { get; set; } = 64;
}
}
29 changes: 15 additions & 14 deletions GeonBit.UI.DataTypes/Source/DefaultStyles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,31 @@ public class DefaultStyles
/// Entity scale.
/// </summary>
[XmlElement(IsNullable = true)]
public float? Scale = null;
public float? Scale { get; set; } = null;

/// <summary>
/// Fill color.
/// </summary>
[XmlElement("Color", IsNullable = true)]
public Color? FillColor = null;
[XmlElement(IsNullable = true)]
public Color? FillColor { get; set; } = null;

/// <summary>
/// Outline color.
/// </summary>
[XmlElement("Color", IsNullable = true)]
public Color? OutlineColor = null;
[XmlElement(IsNullable = true)]
public Color? OutlineColor { get; set; } = null;

/// <summary>
/// Outline width.
/// </summary>
[XmlElement(IsNullable = true)]
public int? OutlineWidth = null;
public int? OutlineWidth { get; set; } = null;

/// <summary>
/// For paragraph only - align to center.
/// </summary>
[XmlElement(IsNullable = true)]
public bool? ForceAlignCenter = null;
public bool? ForceAlignCenter { get; set; } = null;

/// <summary>
/// For paragraph only - font style.
Expand All @@ -69,48 +69,49 @@ public class DefaultStyles
/// <summary>
/// For lists and containers: selected highlight background color.
/// </summary>
[XmlElement("Color", IsNullable = true)]
[XmlElement(IsNullable = true)]
public Color? SelectedHighlightColor = null;

/// <summary>
/// Shadow color (set to 00000000 for no shadow).
/// </summary>
[XmlElement("Color", IsNullable = true)]
[XmlElement(IsNullable = true)]
public Color? ShadowColor = null;

/// <summary>
/// Shadow offset.
/// </summary>
[XmlElement("Vector", IsNullable = true)]
[XmlElement(IsNullable = true)]
public Vector2? ShadowOffset = null;

/// <summary>
/// Entity padding.
/// </summary>
[XmlElement("Vector", IsNullable = true)]
[XmlElement(IsNullable = true)]
public Vector2? Padding = null;

/// <summary>
/// Space before the entity.
/// </summary>
[XmlElement("Vector", IsNullable = true)]
[XmlElement(IsNullable = true)]
public Vector2? SpaceBefore = null;

/// <summary>
/// Space after the entity.
/// </summary>
[XmlElement("Vector", IsNullable = true)]
[XmlElement(IsNullable = true)]
public Vector2? SpaceAfter = null;

/// <summary>
/// Shadow scale.
/// </summary>
[XmlElement(IsNullable = true)]
public float? ShadowScale = null;

/// <summary>
/// Default entity size.
/// </summary>
[XmlElement("Vector", IsNullable = true)]
[XmlElement(IsNullable = true)]
public Vector2? DefaultSize = null;
}
}
4 changes: 2 additions & 2 deletions GeonBit.UI.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>GeonBit.UI</id>
<version>4.2.1.1</version>
<version>4.3.0.0</version>
<authors>Ronen Ness</authors>
<owners>RonenNess</owners>
<title>MonoGame GeonBit.UI</title>
Expand All @@ -12,7 +12,7 @@ It provide all the basic elements required to make a game / editor UI, and comes
<projectUrl>https://github.com/RonenNess/GeonBit.UI</projectUrl>
<iconUrl>https://raw.githubusercontent.com/RonenNess/GeonBit.UI/master/assets/img/nuget_icon.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes>Added file dialogs, icons to lists, and did minor refactoring.</releaseNotes>
<releaseNotes>Switched all style sheets to regular XML files.</releaseNotes>
<description>UI system for MonoGame projects.</description>
<tags>monogame ui gui hud user-interface gamedev</tags>
<dependencies>
Expand Down
Loading

0 comments on commit 3163e0b

Please sign in to comment.