-
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:
Key(s): (Asset Manager button press)
- Opens the Asset Manager and pauses background functionality
Key(s): (Close button press)
- Closes the Asset Manager and resumes background functionality
Key(s): (Asset list item press)
- Selects an asset item and shows its preview
Key(s): (Load button press)
- Opens the file dialog and allows the user to select a file to replace the currently selected asset
Key(s): (Reset button press)
- Resets the selected asset to its default image
- None.
Asset tabs:
- Tabs containing the different asset lists
- Images, animations, audio
Asset list:
- List of all assets of the tab type
- Each list item is selectable
Load functionality:
- Ability for the player to load a file and replace the selected asset
- If the player is missing even a default texture, it will be replaced by a missing texture.
Reset functionality:
- Ability for the user to reset the selected asset to its default asset
Asset image preview:
- A preview of what the selected asset's current image is
Error Messages:
- Pop up error messages show for unsuccessful processes
-
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.
-
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