You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StandardWindow.Emblem is of type Texture2D and can not handle AsyncTexture2D from GameService.Content.DatAssetCache.TryGetTextureFromAssetId. This results in the window emblem not being displayed. Example code
GameService.Content.DatAssetCache.TryGetTextureFromAssetId(603447, out AsyncTexture2D mugTexture);
new StandardWindow(
_windowBackgroundTexture,
new Rectangle(40, 26, 913, 691),
new Rectangle(70, 71, 839, 605))
{
Parent = GameService.Graphics.SpriteScreen,
Title = "Example Window Title",
Emblem = mugTexture,
Subtitle = "Example Subtitle",
Location = new Point(300, 300),
SavesPosition = true,
// Id has to be unique not only in your module but also within blish core and any other module
Id = $"{nameof(ExampleModule)}_My_Unique_ID_123"
};
_exampleWindow.Show(new OverlaySettingsView());
The text was updated successfully, but these errors were encountered:
StandardWindow.Emblem is of type Texture2D and can not handle AsyncTexture2D from GameService.Content.DatAssetCache.TryGetTextureFromAssetId. This results in the window emblem not being displayed. Example code
The text was updated successfully, but these errors were encountered: