Skip to content

Commit

Permalink
1.0.1 色変更以外の制御文字を握り潰してしまう不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
elleonard committed Jun 29, 2023
1 parent 7409c5c commit 0166b81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codes/SetColorByCode/DarkPlasma_SetColorByCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Window_ObtainEscapeParamTextMixIn } from '../../common/window/obtainEsc
Window_ObtainEscapeParamTextMixIn(Window_Base.prototype);

function Window_SetColorByCodeMixIn(windowClass: Window_Base) {
const _processEscapeCharacter = windowClass.processEscapeCharacter;
windowClass.processEscapeCharacter = function (code, textState) {
if (code === "C") {
const color = this.obtainEscapeParamText(textState);
Expand All @@ -13,6 +14,8 @@ function Window_SetColorByCodeMixIn(windowClass: Window_Base) {
} else {
this.processColorChange(Number(color));
}
} else {
_processEscapeCharacter.call(this, code, textState);
}
};
}
Expand Down
3 changes: 3 additions & 0 deletions src/codes/SetColorByCode/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ DarkPlasma_SetColorByCode:
year: 2023
license: MIT
histories:
- date: 2023/06/29
version: 1.0.1
description: '色変更以外の制御文字を握り潰してしまう不具合を修正'
- date: 2023/06/02
version: 1.0.0
description: '公開'
Expand Down

0 comments on commit 0166b81

Please sign in to comment.