Skip to content

Commit 30e461c

Browse files
authored
Character selector previews now render NPCs facing south. (#354)
Fix character selector NPC preview direction
1 parent 648e592 commit 30e461c

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
7+
### Fixed
8+
- Character selector previews now render NPCs facing south.
9+
710
## [2.4.2] 2026-05-23
811
### Fixed
912
- Improved NPC rendering, positions should now match the game exactly [#130](https://github.com/CCDirectLink/crosscode-map-editor/issues/130), [#132](https://github.com/CCDirectLink/crosscode-map-editor/issues/132)

webapp/src/app/components/widgets/character-widget/character-widget.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ export class CharacterWidgetComponent extends OverlayWidget {
121121
const prop: typeof this.props[0] = {
122122
prefix: char.split('.')[0],
123123
full: char,
124-
img: await this.generateImage<NpcAttributes>({characterName: char}, 'NPC')
124+
img: await this.generateImage<NpcAttributes>({
125+
characterName: char,
126+
npcStates: [{face: 'SOUTH'}]
127+
}, 'NPC')
125128
};
126129
return prop;
127130
}));

0 commit comments

Comments
 (0)