Skip to content

Commit

Permalink
Add general use box sprite
Browse files Browse the repository at this point in the history
  • Loading branch information
BadMagic100 committed Jul 24, 2022
1 parent f01419b commit 83d1a0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions MagicUI/Graphics/BuiltInSprites.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,14 @@ public static Sprite CreateQuill()
Texture2D tex = Loader.GetTexture("inv_item__0004_quill-white.png");
return tex.ToSprite();
}

/// <summary>
/// Creates a standard sprite of a 40x40 white box for general use
/// </summary>
public static Sprite CreateBox()
{
Texture2D tex = Loader.GetTexture("Box.png");
return tex.ToSprite();
}
}
}
6 changes: 3 additions & 3 deletions MagicUI/MagicUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\StyleGenerators\StyleGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"/>
<ProjectReference Include="..\StyleGenerators\StyleGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup>
Expand All @@ -71,12 +69,14 @@
</ItemGroup>
<ItemGroup>
<None Remove="Resources\BorderlessButton.png" />
<None Remove="Resources\Box.png" />
<None Remove="Resources\inv_item__0004_quill-white.png" />
<None Remove="Resources\RoundedCornerRect-2.png" />
<None Remove="Resources\Underline-2.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\BorderlessButton.png" />
<EmbeddedResource Include="Resources\Box.png" />
<EmbeddedResource Include="Resources\inv_item__0004_quill-white.png" />
<EmbeddedResource Include="Resources\RoundedCornerRect-2.png" />
<EmbeddedResource Include="Resources\Underline-2.png" />
Expand Down
Binary file added MagicUI/Resources/Box.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 83d1a0d

Please sign in to comment.