File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
pages/editor/Topbar/tabs/GameConfig Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -217,13 +217,13 @@ export default function GameConfig() {
217217 < TabItem title = { t `鉴赏功能` } >
218218 < GameConfigEditorWithSelector
219219 key = "isUserForward"
220- value = { gameConfig . value . enableAppreciation === true ? 'true' : 'false' }
220+ value = { gameConfig . value . enableExtra === true ? 'true' : 'false' }
221221 selectItems = { [
222222 { key : 'true' , text : t `启用` } ,
223223 { key : 'false' , text : t `禁用` }
224224 ] }
225225 onChange = { ( e : string ) => {
226- gameConfig . value . enableAppreciation = e === 'true' ;
226+ gameConfig . value . enableExtra = e === 'true' ;
227227 updateGameConfig ( ) ;
228228 } }
229229 />
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export interface IWebgalConfig {
1010 description ?: string ; // 游戏描述
1111 defaultLanguage ?: string ; // 默认语言
1212 packageName ?: string ; // 包名
13- enableAppreciation ?: boolean ; // 启用鉴赏功能
13+ enableExtra ?: boolean ; // 启用鉴赏功能
1414 enablePanic ?: boolean ; // 启用紧急回避
1515 enableLegacyExpressionBlendMode ?: boolean ; // 启用旧版 Live2D 表情混合模式
1616} ;
@@ -24,7 +24,7 @@ export const defaultWebgalConfig: IWebgalConfig = {
2424 description : '' ,
2525 defaultLanguage : '' ,
2626 packageName : 'com.openwebgal.demo' ,
27- enableAppreciation : true ,
27+ enableExtra : true ,
2828 enablePanic : false ,
2929 enableLegacyExpressionBlendMode : false ,
3030} ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export interface IWebgalConfig {
1010 description ?: string ; // 游戏描述
1111 defaultLanguage ?: string ; // 默认语言
1212 packageName ?: string ; // 包名
13- enableAppreciation ?: boolean ; // 启用鉴赏功能
13+ enableExtra ?: boolean ; // 启用鉴赏功能
1414 enablePanic ?: boolean ; // 启用紧急回避
1515 enableLegacyExpressionBlendMode ?: boolean ; // 启用旧版 Live2D 表情混合模式
1616} ;
@@ -24,7 +24,7 @@ export const defaultWebgalConfig: IWebgalConfig = {
2424 description : '' ,
2525 defaultLanguage : '' ,
2626 packageName : 'com.openwebgal.demo' ,
27- enableAppreciation : true ,
27+ enableExtra : true ,
2828 enablePanic : false ,
2929 enableLegacyExpressionBlendMode : false ,
3030} ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export function convertTextConfigToWebgalConfig(textConfig: string): IWebgalConf
3535 break ;
3636 case 'Enable_Appreciation' :
3737 if ( configItem . args [ 0 ] )
38- config . enableAppreciation = configItem . args [ 0 ] === 'true' ;
38+ config . enableExtra = configItem . args [ 0 ] === 'true' ;
3939 break ;
4040 case 'Enable_Panic' :
4141 if ( configItem . args [ 0 ] )
@@ -67,8 +67,8 @@ export function convertWebgalConfigToTextConfig(webgalConfig: IWebgalConfig): st
6767 legacyConfig . push ( { command : 'Default_Language' , args : [ webgalConfig . defaultLanguage ] , options : [ ] } ) ;
6868 if ( webgalConfig . packageName )
6969 legacyConfig . push ( { command : 'Package_name' , args : [ webgalConfig . packageName ] , options : [ ] } ) ;
70- if ( webgalConfig . enableAppreciation !== undefined )
71- legacyConfig . push ( { command : 'Enable_Appreciation' , args : [ webgalConfig . enableAppreciation ? 'true' : 'false' ] , options : [ ] } ) ;
70+ if ( webgalConfig . enableExtra !== undefined )
71+ legacyConfig . push ( { command : 'Enable_Appreciation' , args : [ webgalConfig . enableExtra ? 'true' : 'false' ] , options : [ ] } ) ;
7272 if ( webgalConfig . enablePanic !== undefined )
7373 legacyConfig . push ( { command : 'Enable_Panic' , args : [ webgalConfig . enablePanic ? 'true' : 'false' ] , options : [ ] } ) ;
7474 return webgalParser . stringifyConfig ( legacyConfig ) ;
You can’t perform that action at this time.
0 commit comments