Skip to content

Commit

Permalink
Merge branch 'master' into 292-better-grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Vegita2 authored Feb 26, 2024
2 parents 9b2b870 + d51368b commit d1ad46d
Show file tree
Hide file tree
Showing 29 changed files with 438 additions and 65 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
- Added UI for Entity Grid (hotkey G) with additional settings [#292](https://github.com/CCDirectLink/crosscode-map-editor/issues/292)

## [1.4.0] 2024-02-23
### Added
- Added proper support for the event steps `SHOW_MODAL_CHOICE` and `SET_MSG_EXPRESSION`.
- Added rendering of text colors in relevant events (such as `SHOW_MSG`).

### Changed
- `VarConditions` now use the string editor, as opposed to the JSON editor.
- Improved support for event/action step property previews - specifically for `Vec2`, `Vec3`, `Offset`, `Entity`, `EnemyType`, `NumberExpression`, `StringExpression`, `BooleanExpression`, `VarName`, `Effect`, and `Animation`.

### Fixed
- Events with children/branching steps (such as `IF`, `SHOW_CHOICE`, `SHOW_MODAL_CHOICE`, etc.) will no longer fully refresh upon any edits, causing focus to be reset.

## [1.3.1] 2024-02-09
### Changed
Expand Down
4 changes: 2 additions & 2 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion webapp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cc-map-editor",
"version": "1.3.1",
"version": "1.4.0",
"license": "MIT",
"repository": "https://github.com/CCDirectLink/crosscode-map-editor",
"main": "main.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class EnemyTypeWidgetOverlayComponent extends AbstractWidget implements O
'OTHER'
];
readonly partyAttributes: AttributeValue = {
type: 'string',
type: 'String',
description: '',
withNull: true,
options: this.makeOptions(this.partyOptions)
Expand All @@ -32,7 +32,7 @@ export class EnemyTypeWidgetOverlayComponent extends AbstractWidget implements O
'NORTH_WEST'
];
readonly faceAttributes: AttributeValue = {
type: 'string',
type: 'String',
description: '',
withNull: true,
options: this.makeOptions(this.faceOptions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ export class EventDetailComponent implements OnDestroy {
}

public loadEvent(event: AbstractEvent<any>) {
this.event = event;
this.loadSettings();
if(this.event !== event) {
this.event = event;
this.loadSettings();
}
}

private clearSubscriptions() {
Expand Down Expand Up @@ -94,6 +96,7 @@ export class EventDetailComponent implements OnDestroy {
instance.key = key;
instance.attribute = val;
const sub = instance.onChange.subscribe(() => this.update());

this.changeSubscriptions.push(sub);
return instance;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class EventHelperService {
if (valIf.elseStep) {
valIf.elseStep = valIf.elseStep.map((v: EventType) => this.getEventFromType(v, actionStep));
}
} else if (val.type === 'SHOW_CHOICE') {
} else if (val.type === 'SHOW_CHOICE' || val.type === 'SHOW_MODAL_CHOICE') {
const valChoice = val as any;
valChoice.options.forEach((option: any, index: number) => {
valChoice[index] = valChoice[index].map((v: EventType) => this.getEventFromType(v, actionStep));
Expand Down
Loading

0 comments on commit d1ad46d

Please sign in to comment.