Skip to content
This repository was archived by the owner on Aug 17, 2026. It is now read-only.

US-80: Change color of sprites - #119

Merged
SantiSev merged 7 commits into
mainfrom
us-80/change-sprite-colors
May 12, 2026
Merged

SantiSev merged 7 commits into
mainfrom
us-80/change-sprite-colors

Conversation

@maxogod

@maxogod maxogod commented May 12, 2026 •

Copy link
Copy Markdown
Member

@maxogod maxogod self-assigned this May 12, 2026
@maxogod
maxogod requested a review from Copilot May 12, 2026 03:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds HSV-based character color customization (skin/hair/eyes) to the Character Edit UI and propagates these colors through API DTOs, persistence repositories, and sprite rendering so characters can be tinted consistently.

Changes:

  • Introduces HSV color DTOs on character requests/responses and threads them through player/editor repositories.
  • Adds a new color-controls UI flow in CharacterEditController (dropdown + HSV sliders) with save/reset integration.
  • Extends sprite loading/rendering to apply tinting to skin, hair, and eyes across character parts.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Runtime/UI/CharacterEdit/Scripts/CharacterEditController.cs Initializes color controls, persists HSV fields into the edit request, and applies colors during setup.
Runtime/UI/CharacterEdit/Scripts/CharacterEditController.Actions.cs Wires color tab selection, ensures color fields before save, applies colors after loads/saves/resets.
Runtime/UI/CharacterEdit/Scripts/CharacterEditController.Colors.cs New partial implementing HSV UI controls, request synchronization, and sprite color application.
Runtime/UI/CharacterEdit/Scripts/CharacterEditController.Colors.cs.meta Unity meta for the new partial class file.
Runtime/Models/Creatables/NPCData.cs Adds default HSV color fields to NPC creatable data.
Runtime/Models/Creatables/EnemyData.cs Adds default HSV color fields to enemy creatable data.
Runtime/Core/Systems/Enums/CharacterPartCategory.cs Adds new skin-part enum entries used for tinting.
Runtime/Core/Systems/Characters/SpriteManager/SpriteManager.cs Adds public APIs to apply skin/hair/eye colors and applies them on init from character info.
Runtime/Core/Systems/Characters/SpriteManager/SpriteLoader.cs Implements per-part tint application and caches skin part transforms.
Runtime/Core/Systems/Characters/CharacterInfoRepository/PlayerInfoRepository.cs Includes HSV fields when saving player character info via repository abstraction.
Runtime/Core/Systems/Characters/CharacterInfoRepository/EditorNpcInfoRepository.cs Updates editor callback to return full response including colors; includes HSV fields in response.
Runtime/Core/Systems/API/DTOs/PlayerInfoDTOs.cs Adds CharacterColorHsv DTO and includes it in patch request and response models.
Files not reviewed (1)
  • Runtime/UI/CharacterEdit/Scripts/CharacterEditController.Colors.cs.meta: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Runtime/UI/CharacterEdit/Scripts/CharacterEditController.Colors.cs Outdated
Comment thread Runtime/Core/Systems/Characters/SpriteManager/SpriteManager.cs
Comment thread Runtime/Core/Systems/Characters/SpriteManager/SpriteLoader.cs
@SantiSev
SantiSev marked this pull request as ready for review May 12, 2026 23:38
@SantiSev
SantiSev merged commit db02204 into main May 12, 2026
3 checks passed
@SantiSev
SantiSev deleted the us-80/change-sprite-colors branch May 12, 2026 23:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants