From 64d7e7ca6b3ce558dfcc4a5b5df8fedc9fb375f6 Mon Sep 17 00:00:00 2001 From: Alexey Ousov Date: Sat, 4 Feb 2023 14:26:08 +0700 Subject: [PATCH] autosolve on lock/unlock --- site/src/scripts/model/blueprint-item.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/src/scripts/model/blueprint-item.ts b/site/src/scripts/model/blueprint-item.ts index a664c52..2fad9b4 100644 --- a/site/src/scripts/model/blueprint-item.ts +++ b/site/src/scripts/model/blueprint-item.ts @@ -27,7 +27,7 @@ export class BlueprintItemModelImpl extends ItemModelImpl { private _state: BlueprintItemStateValues = BlueprintItemState.None; public partOfCycle = false; public isFlipped = false; - public isLocked = false; + private _isLocked = false; constructor(owner: BlueprintModel, name: string) { super(owner, dataProvider.getItem(name)); @@ -50,6 +50,8 @@ export class BlueprintItemModelImpl extends ItemModelImpl { get tier() { return this._item?.tier; } get count() { return this._count; } get solvedCount() { return this._solvedCount; } + get isLocked() { return this._isLocked; } + set isLocked(isLocked: boolean) { this._isLocked = isLocked; this.owner?._$graphChanged(); } calculateLinkState(sourceIo?: RecipeIOModel | null): BlueprintItemStateValues { if(!sourceIo) {