|
|
|
@ -132,6 +132,9 @@ export class BoardStore extends Singleton implements IConfigStore
|
|
|
|
|
}
|
|
|
|
|
UpdateOption(cof: IConfigOption)
|
|
|
|
|
{
|
|
|
|
|
if (!cof.option)
|
|
|
|
|
cof.option = this.m_Option;
|
|
|
|
|
else
|
|
|
|
|
Object.assign(this.m_Option, cof.option);
|
|
|
|
|
if (this.m_UiOption)
|
|
|
|
|
Object.assign(this.m_UiOption, DataAdapter.ConvertUIData(cof.option));
|
|
|
|
@ -302,6 +305,9 @@ export class LayerBoardStore extends BoardStore
|
|
|
|
|
UpdateOption(cof: IConfigOption)
|
|
|
|
|
{
|
|
|
|
|
super.UpdateOption(cof);
|
|
|
|
|
if (!cof.nailData)
|
|
|
|
|
cof.nailData = this.layerNailOption;
|
|
|
|
|
else
|
|
|
|
|
Object.assign(this.layerNailOption, cof.nailData);
|
|
|
|
|
if (this.uiLayerNailOption)
|
|
|
|
|
Object.assign(this.uiLayerNailOption, DataAdapter.ConvertUIData(this.layerNailOption));
|
|
|
|
|