diff --git a/_server/data.comment.js b/_server/data.comment.js index 7b102057..7afe0f36 100644 --- a/_server/data.comment.js +++ b/_server/data.comment.js @@ -79,6 +79,26 @@ data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = "_leaf": true, "_type": "textarea", "_data": "边框颜色,包括游戏边界的边框和对话框边框等。" + }, + "statusBarColor": { + "_leaf": true, + "_type": "textarea", + "_data": "状态栏的文字颜色,默认是白色" + }, + "hardLabelColor": { + "_leaf": true, + "_type": "textarea", + "_data": "难度显示的颜色,默认是红色" + }, + "floorChangingBackground": { + "_leaf": true, + "_type": "textarea", + "_data": "楼层转换界面的背景样式;可以使用纯色(默认值black),也可以使用图片(参见状态栏的图片写法)" + }, + "floorChangingTextColor": { + "_leaf": true, + "_type": "textarea", + "_data": "楼层转换界面的文字颜色,默认是白色" } } }, diff --git a/libs/control.js b/libs/control.js index 52ba8e3a..678b820a 100644 --- a/libs/control.js +++ b/libs/control.js @@ -1687,7 +1687,7 @@ control.prototype.chooseReplayFile = function () { core.startReplay(core.decodeRoute(obj.route)); }, true); }, function () { - + }) } @@ -2989,6 +2989,8 @@ control.prototype.resize = function(clientWidth, clientHeight) { height: (gameGroupHeight - SPACE*2) + unit, top: SPACE + unit, right: SPACE + unit, + background: main.floorChangingBackground||"black", + color: main.floorChangingTextColor||"white" } }, { @@ -3004,7 +3006,7 @@ control.prototype.resize = function(clientWidth, clientHeight) { borderLeft: statusBarBorder, borderRight: borderRight, fontSize: fontSize + unit, - background: statusBackground, + background: statusBackground } }, { @@ -3018,9 +3020,11 @@ control.prototype.resize = function(clientWidth, clientHeight) { }, { className: 'statusLabels', + noid: 'hard', rules:{ marginLeft: margin + unit, lineHeight: statusLabelsLH + unit, + color: main.statusBarColor||"white" } }, { @@ -3122,9 +3126,10 @@ control.prototype.resize = function(clientWidth, clientHeight) { { id: 'hard', rules: { - lineHeight: toolsHeight + unit + lineHeight: toolsHeight + unit, + color: main.hardLabelColor||"red" } - } + }, ] core.domRenderer(); } @@ -3145,8 +3150,11 @@ control.prototype.domRenderer = function(){ if(styles[i].hasOwnProperty('className')){ var className = styles[i].className for(var j=0; j