Add web platform icons to editor atlas

This commit is contained in:
2026-02-17 13:21:00 +01:00
parent 6e7a7c9350
commit 7ff4ce18ff
4 changed files with 6 additions and 3 deletions
Binary file not shown.
+2
View File
@@ -151,6 +151,8 @@ namespace FlaxEditor
public SpriteHandle LocalizationSettings128; public SpriteHandle LocalizationSettings128;
public SpriteHandle Json128; public SpriteHandle Json128;
public SpriteHandle AppleSettings128; public SpriteHandle AppleSettings128;
public SpriteHandle Web128;
public SpriteHandle WebSettings128;
internal void LoadIcons() internal void LoadIcons()
{ {
+1 -1
View File
@@ -93,7 +93,7 @@ namespace FlaxEditor.GUI
new PlatformData(PlatformType.PS5, icons.PS5Icon128, "PlayStation 5"), new PlatformData(PlatformType.PS5, icons.PS5Icon128, "PlayStation 5"),
new PlatformData(PlatformType.Mac, icons.MacOSIcon128, "macOS"), new PlatformData(PlatformType.Mac, icons.MacOSIcon128, "macOS"),
new PlatformData(PlatformType.iOS, icons.IOSIcon128, "iOS"), new PlatformData(PlatformType.iOS, icons.IOSIcon128, "iOS"),
new PlatformData(PlatformType.Web, icons.Flax64, "Web"), new PlatformData(PlatformType.Web, icons.Web128, "Web"),
}; };
const float IconSize = 64.0f; const float IconSize = 64.0f;
@@ -1188,6 +1188,7 @@ namespace FlaxEditor.Modules
Proxy.Add(new SettingsProxy(typeof(AndroidPlatformSettings), Editor.Instance.Icons.AndroidSettings128)); Proxy.Add(new SettingsProxy(typeof(AndroidPlatformSettings), Editor.Instance.Icons.AndroidSettings128));
Proxy.Add(new SettingsProxy(typeof(MacPlatformSettings), Editor.Instance.Icons.AppleSettings128)); Proxy.Add(new SettingsProxy(typeof(MacPlatformSettings), Editor.Instance.Icons.AppleSettings128));
Proxy.Add(new SettingsProxy(typeof(iOSPlatformSettings), Editor.Instance.Icons.AppleSettings128)); Proxy.Add(new SettingsProxy(typeof(iOSPlatformSettings), Editor.Instance.Icons.AppleSettings128));
Proxy.Add(new SettingsProxy(typeof(WebPlatformSettings), Editor.Instance.Icons.WebSettings128));
var typePS4PlatformSettings = TypeUtils.GetManagedType(GameSettings.PS4PlatformSettingsTypename); var typePS4PlatformSettings = TypeUtils.GetManagedType(GameSettings.PS4PlatformSettingsTypename);
if (typePS4PlatformSettings != null) if (typePS4PlatformSettings != null)