Skip to content

Commit 2431667

Browse files
committed
Build fix
1 parent 0d6f552 commit 2431667

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Myra/Graphics2D/UI/Project.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ internal static LoadContext CreateLoadContext(AssetManager assetManager)
201201
}
202202
else if (t == typeof(SpriteFontBase))
203203
{
204-
return assetManager.MyraLoadFont(name);
204+
return assetManager.LoadFont(name);
205205
}
206206

207207
throw new Exception(string.Format("Type {0} isn't supported", t.Name));

src/Myra/Graphics2D/UI/Properties/PropertyGrid.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ private void FillSubGrid(ref int y, IReadOnlyList<Record> records)
12101210
}
12111211
else if (propertyType == typeof(SpriteFontBase))
12121212
{
1213-
valueWidget = CreateFileEditor(record, hasSetter, "*.fnt", name => Settings.AssetManager.MyraLoadFont(name));
1213+
valueWidget = CreateFileEditor(record, hasSetter, "*.fnt", name => Settings.AssetManager.LoadFont(name));
12141214
}
12151215
else if (propertyType == typeof(IBrush))
12161216
{

src/Myra/MyraAssetManagerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static TextureRegion LoadTextureRegion(this AssetManager assetManager, st
156156
/// <param name="assetManager"></param>
157157
/// <param name="assetName"></param>
158158
/// <returns></returns>
159-
internal static SpriteFontBase MyraLoadFont(this AssetManager assetManager, string assetName)
159+
public static SpriteFontBase LoadFont(this AssetManager assetManager, string assetName)
160160
{
161161
if (assetName.Contains(".fnt"))
162162
{

0 commit comments

Comments
 (0)