From 9a7dd26b8733449215b64c93d08c23b31e0efa4a Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 24 Nov 2015 23:52:05 +0800 Subject: [PATCH] bg --- game/config.js | 3 ++- game/game.js | 14 ++++++-------- game/package.js | 9 +++++++++ 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/game/config.js b/game/config.js index 8fe5e1900..21894f2c9 100755 --- a/game/config.js +++ b/game/config.js @@ -210,7 +210,7 @@ window.config={ glow_phase:true, skin:{}, - + theme:'woodden', layout:'mobile', card_style:'default', @@ -350,3 +350,4 @@ window.mode={}; window.card={}; window.character={}; window.play={}; +window.background={}; diff --git a/game/game.js b/game/game.js index 010ed2aef..dc2c94754 100755 --- a/game/game.js +++ b/game/game.js @@ -336,14 +336,6 @@ init:'default', item:{ default:'默认', - huangyueying_bg:'逐墨', - zhulian_bg:'璧合', - september_bg:'九月', - xueji_bg:'雪霁', - yinxiang_bg:'印象', - chunhui_bg:'春晖', - // grass_bg:'芳草', - huangtian_bg:'黄天', }, onclick:function(background){ var animate=lib.config.image_background=='default'; @@ -2041,6 +2033,12 @@ lib.config.all.plays.push(i); lib.translate[i+'_play_config']=play.pack[i]; } + if(background&&background.pack){ + for(i in background.pack){ + lib.configMenu.appearence.config.image_background.item[i]=background.pack[i]; + } + delete window.background; + } delete character.pack; delete card.pack; delete play.pack; diff --git a/game/package.js b/game/package.js index 56f1b412a..be1a0d91c 100755 --- a/game/package.js +++ b/game/package.js @@ -41,3 +41,12 @@ play.pack={ wuxing:'五行生克', weather:'天气变化', }; +background.pack={ + huangyueying_bg:'逐墨', + zhulian_bg:'璧合', + september_bg:'九月', + xueji_bg:'雪霁', + yinxiang_bg:'印象', + chunhui_bg:'春晖', + huangtian_bg:'黄天', +};