floorChangingBackground

This commit is contained in:
oc 2018-10-29 00:43:16 +08:00
parent e957966935
commit 4e79ba1015
3 changed files with 40 additions and 8 deletions

View File

@ -79,6 +79,26 @@ data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc =
"_leaf": true, "_leaf": true,
"_type": "textarea", "_type": "textarea",
"_data": "边框颜色,包括游戏边界的边框和对话框边框等。" "_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": "楼层转换界面的文字颜色,默认是白色"
} }
} }
}, },

View File

@ -2989,6 +2989,8 @@ control.prototype.resize = function(clientWidth, clientHeight) {
height: (gameGroupHeight - SPACE*2) + unit, height: (gameGroupHeight - SPACE*2) + unit,
top: SPACE + unit, top: SPACE + unit,
right: 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, borderLeft: statusBarBorder,
borderRight: borderRight, borderRight: borderRight,
fontSize: fontSize + unit, fontSize: fontSize + unit,
background: statusBackground, background: statusBackground
} }
}, },
{ {
@ -3018,9 +3020,11 @@ control.prototype.resize = function(clientWidth, clientHeight) {
}, },
{ {
className: 'statusLabels', className: 'statusLabels',
noid: 'hard',
rules:{ rules:{
marginLeft: margin + unit, marginLeft: margin + unit,
lineHeight: statusLabelsLH + unit, lineHeight: statusLabelsLH + unit,
color: main.statusBarColor||"white"
} }
}, },
{ {
@ -3122,9 +3126,10 @@ control.prototype.resize = function(clientWidth, clientHeight) {
{ {
id: 'hard', id: 'hard',
rules: { rules: {
lineHeight: toolsHeight + unit lineHeight: toolsHeight + unit,
color: main.hardLabelColor||"red"
} }
} },
] ]
core.domRenderer(); core.domRenderer();
} }
@ -3145,8 +3150,11 @@ control.prototype.domRenderer = function(){
if(styles[i].hasOwnProperty('className')){ if(styles[i].hasOwnProperty('className')){
var className = styles[i].className var className = styles[i].className
for(var j=0; j<core.dom[className].length; j++) for(var j=0; j<core.dom[className].length; j++)
for(var k=0; k<rulesProp.length; k++) for(var k=0; k<rulesProp.length; k++) {
core.dom[className][j].style[rulesProp[k]] = rules[rulesProp[k]]; var one = core.dom[className][j];
if (one.id !== styles[i].noid)
one.style[rulesProp[k]] = rules[rulesProp[k]];
}
} }
if(styles[i].hasOwnProperty('id')){ if(styles[i].hasOwnProperty('id')){
var id = styles[i].id; var id = styles[i].id;

View File

@ -59,7 +59,11 @@ data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"statusLeftBackground": "url(project/images/ground.png) repeat", "statusLeftBackground": "url(project/images/ground.png) repeat",
"statusTopBackground": "url(project/images/ground.png) repeat", "statusTopBackground": "url(project/images/ground.png) repeat",
"toolsBackground": "url(project/images/ground.png) repeat", "toolsBackground": "url(project/images/ground.png) repeat",
"borderColor": "white" "borderColor": "white",
"statusBarColor": "white",
"hardLabelColor": "red",
"floorChangingBackground": "black",
"floorChangingTextColor": "white"
}, },
"firstData": { "firstData": {
"title": "魔塔样板", "title": "魔塔样板",
@ -224,6 +228,6 @@ data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
"potionWhileRouting": false, "potionWhileRouting": false,
"portalWithoutTrigger": true, "portalWithoutTrigger": true,
"canGoDeadZone": false, "canGoDeadZone": false,
"enableMoveDirectly": true, "enableMoveDirectly": true
} }
} }