-
Notifications
You must be signed in to change notification settings - Fork 0
Asset Manager
The asset manager is a menu that allows the user to import and use their own assets.
Connecting Systems:
Subsystems:
Asset Manager Button:
- Opens the Asset Manager and pauses background functionality
Close Button:
- Closes the Asset Manager and resumes background functionality
Asset List Item:
- Selects an asset item and shows its preview
Load Button:
- Opens the file dialog and allows the user to select a file to replace the currently selected asset
Reset Button:
- Resets the selected asset to its default image
- None.
Asset tabs:
- Asset Manager contains tabs for replacing images, animations, and audio.
Asset list:
- Each tab has a list of every asset in its category. Clicking a list item allows the user to preview the asset (including animation frames).
Load functionality:
- The user can load a single image file to replace the selected asset image.
- If the player is missing even a default texture, it will be replaced by a missing texture.
Error Messages:
- Pop up error messages show for unsuccessful processes.
Image Swapping
- Another script used specifically for swapping the images within the asset manager
- Added in order to make the asset manager script smaller and more concise
Animation Swapping
- Another script used specifically for swapping the animations within the asset manager
- Added in order to make the asset manager script smaller and more concise
Audio Swapping
- Another script used specifically for swapping the audio within the asset manager
- Added in order to make the asset manager script smaller and more concise
-
filePath: String= A file path containing where assets will be stored and retrieved. -
mainTileMap: TileMapLayer= A reference to the main tile map. -
imageSwapping : Control= A reference to the image swapping script. -
animationSwapping : Control= A reference to the animation swapping script. -
audioSwapping : Control= A reference to the audio swapping script.
-
func generate_buttons(folder: String, container: VBoxContainer, type: AssetItem.AssetType) -> void: Generates a button per asset type that is specified. -
func find_image(imageName: String, currentDirectory: String) -> Image: Finds an imageName from the currentDirectory. -
func find_image_in_folder(folderPath: String) -> Image: Returns the first image found in folderPath. -
func validate_image(image: Image) -> bool: Determines if image is valid based on multiple criteria. -
func clear_image() -> DirAccess: Clears all stored image assets.
Future Work:
- Adding functionality for audio files to be replaced
Risks:
- None.
- None.
Resources
Known Issues
Future Work
Globals
Managers
- Main Menu Manager
- Master Manager
- Camera Manager
- Hotkey Manager
- Import Export Manager
- Audio Manager
- Animation Manager
- PopUp Manager
UI
Managers
- Editor Manager
- Tile Manager
- Entity Manager
- Icon Manager
- Preview Manager
- Tool Manager
- Asset Manager
- Custom Cursor Manager
Tiles & Entities
- Grid Lines
- Preview Line
- Tiles & Entities
- Enemies
- Patrolling Enemy
- Flying Enemy
- Shooting Enemy
- Stationary Enemy
- Moving Platform
- Property Editing
Asset Swapping
UI
Managers
Player