// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // Standard Library using System.IO; // Unity using UnityEngine; // GameKit using AWS.GameKit.Common; using AWS.GameKit.Editor.Utils; namespace AWS.GameKit.Editor.FileStructure { /// /// Gives access to the assets stored in the "com.amazonaws.gamekit/Editor/Resources" folder. /// public static class EditorResources { public static class Textures { private const string TEXTURES = "Textures/"; public static readonly IGettable WindowIcon = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, TEXTURES, "WindowIcon-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, TEXTURES, "WindowIcon-Light.png").Replace("\\","/"))); public static readonly IGettable FeatureStatusSuccess = new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, TEXTURES, "FeatureStatus-Success.png").Replace("\\","/")); public static readonly IGettable FeatureStatusError = new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, TEXTURES, "FeatureStatus-Error.png").Replace("\\","/")); public static readonly IGettable FeatureStatusWorking = new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, TEXTURES, "FeatureStatus-Working.png").Replace("\\","/")); public static readonly IGettable FeatureStatusRefresh = new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, TEXTURES, "FeatureStatus-Refresh.png").Replace("\\","/")); public static readonly IGettable FeatureStatusWaiting = new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, TEXTURES, "FeatureStatus-Waiting.png").Replace("\\","/")); public static readonly IGettable Unsynchronized = new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, TEXTURES, "unsynchronized.png").Replace("\\","/")); public static class Colors { private const string COLORS = TEXTURES + "Colors/"; public static readonly IGettable Transparent = new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, TEXTURES, "Transparent.png").Replace("\\","/")); public static readonly IGettable GUILayoutDivider = new LazyLoadedEditorThemeAwareResource( Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, COLORS, "GUILayoutDivider-Dark.png").Replace("\\","/"), Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, COLORS, "GUILayoutDivider-Light.png").Replace("\\","/")); } public static class SettingsWindow { private const string SETTINGS_TEXTURES = TEXTURES + "SettingsWindow/"; public static readonly IGettable ExternalLinkIcon = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, SETTINGS_TEXTURES, "ExternalLink-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, SETTINGS_TEXTURES, "ExternalLink-Light.png").Replace("\\","/"))); public static readonly IGettable PlusIcon = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, SETTINGS_TEXTURES, "PlusIcon-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, SETTINGS_TEXTURES, "PlusIcon-Light.png").Replace("\\","/"))); public static readonly IGettable MinusIcon = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, SETTINGS_TEXTURES, "MinusIcon-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, SETTINGS_TEXTURES, "MinusIcon-Light.png").Replace("\\","/"))); } public static class QuickAccessWindow { private const string QUICK_ACCESS_TEXTURES = TEXTURES + "QuickAccessWindow/"; private const string QUICK_ACCESS_COLORS = QUICK_ACCESS_TEXTURES + "Colors/"; // Feature Icons: public static readonly IGettable FeatureIconAchievements = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_TEXTURES, "FeatureIcon-Achievements-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_TEXTURES, "FeatureIcon-Achievements-Light.png").Replace("\\","/"))); public static readonly IGettable FeatureIconGameStateCloudSaving = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_TEXTURES, "FeatureIcon-GameStateCloudSaving-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_TEXTURES, "FeatureIcon-GameStateCloudSaving-Light.png").Replace("\\","/"))); public static readonly IGettable FeatureIconIdentity = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_TEXTURES, "FeatureIcon-Identity-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_TEXTURES, "FeatureIcon-Identity-Light.png").Replace("\\","/"))); public static readonly IGettable FeatureIconUserGameplayData = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_TEXTURES, "FeatureIcon-UserGameplayData-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_TEXTURES, "FeatureIcon-UserGameplayData-Light.png").Replace("\\","/"))); public static class Colors { public static readonly IGettable QuickAccessBackground = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_COLORS, "QuickAccessWindow-Background-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_COLORS, "QuickAccessWindow-Background-Light.png").Replace("\\","/"))); public static readonly IGettable QuickAccessButtonNormal = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_COLORS, "QuickAccessWindow-ButtonNormal-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_COLORS, "QuickAccessWindow-ButtonNormal-Light.png").Replace("\\","/"))); public static readonly IGettable QuickAccessButtonHover = new LazyLoadedEditorThemeAwareResource( new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_COLORS, "QuickAccessWindow-ButtonHover-Dark.png").Replace("\\","/")), new LazyLoadedResource(Path.Combine(GameKitPaths.Get().PACKAGES_EDITOR_RESOURCES_RELATIVE_PATH, QUICK_ACCESS_COLORS, "QuickAccessWindow-ButtonHover-Light.png").Replace("\\","/"))); } } } } }