修改样式,画地图

This commit is contained in:
unanmed 2023-02-26 22:15:45 +08:00
parent 21cf5412f8
commit 3e13e0006c
5 changed files with 51 additions and 28 deletions

View File

@ -4183,10 +4183,6 @@ control.prototype.resize = function () {
}; };
control.prototype._resize_gameGroup = function (obj) { control.prototype._resize_gameGroup = function (obj) {
var startBackground = core.domStyle.isVertical
? main.styles.startVerticalBackground || main.styles.startBackground
: main.styles.startBackground;
var gameGroup = core.dom.gameGroup; var gameGroup = core.dom.gameGroup;
var totalWidth, totalHeight; var totalWidth, totalHeight;
if (core.domStyle.isVertical) { if (core.domStyle.isVertical) {
@ -4242,7 +4238,6 @@ control.prototype._resize_canvas = function (obj) {
core.dom.gameDraw.style.height = innerHeight; core.dom.gameDraw.style.height = innerHeight;
core.dom.gameDraw.style.top = obj.statusBarHeightInVertical + 'px'; core.dom.gameDraw.style.top = obj.statusBarHeightInVertical + 'px';
core.dom.gameDraw.style.right = 0; core.dom.gameDraw.style.right = 0;
core.dom.gameDraw.style.border = obj.border;
core.dom.gameDraw.style.boxSizing = 'content-box'; core.dom.gameDraw.style.boxSizing = 'content-box';
// resize bigmap // resize bigmap
core.bigmap.canvas.forEach(function (cn) { core.bigmap.canvas.forEach(function (cn) {
@ -4428,16 +4423,16 @@ control.prototype._resize_toolBar = function (obj) {
toolBar.style.top = toolBar.style.top =
obj.statusBarHeightInVertical + obj.outerHeight + 'px'; obj.statusBarHeightInVertical + obj.outerHeight + 'px';
toolBar.style.height = obj.toolbarHeightInVertical + 'px'; toolBar.style.height = obj.toolbarHeightInVertical + 'px';
toolBar.style.background = obj.globalAttribute.toolsBackground; toolBar.style.background = 'none';
} else { } else {
if (obj.extendToolbar) { if (obj.extendToolbar) {
toolBar.style.left = ''; toolBar.style.left = '';
toolBar.style.right = 0; toolBar.style.right = 0;
toolBar.style.width = obj.outerWidth + 'px'; toolBar.style.width = obj.outerWidth - 6 + 'px';
toolBar.style.top = obj.outerHeight + 'px'; toolBar.style.top = obj.outerHeight - 6 + 'px';
toolBar.style.height = toolBar.style.height =
obj.TOOLBAR_HEIGHT * core.domStyle.scale + obj.BORDER + 'px'; obj.TOOLBAR_HEIGHT * core.domStyle.scale + obj.BORDER + 'px';
toolBar.style.background = obj.globalAttribute.toolsBackground; toolBar.style.background = 'none';
} else { } else {
toolBar.style.left = 0; toolBar.style.left = 0;
toolBar.style.right = ''; toolBar.style.right = '';
@ -4448,9 +4443,6 @@ control.prototype._resize_toolBar = function (obj) {
toolBar.style.background = 'transparent'; toolBar.style.background = 'transparent';
} }
} }
toolBar.style.borderLeft = obj.border;
toolBar.style.borderRight = toolBar.style.borderBottom =
core.domStyle.isVertical || obj.extendToolbar ? obj.border : '';
toolBar.style.fontSize = 16 * core.domStyle.scale + 'px'; toolBar.style.fontSize = 16 * core.domStyle.scale + 'px';
if ( if (

View File

@ -158,7 +158,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 =
"E607": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E607": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E608": {"name":"寒冰护卫","hp":25000,"atk":3500,"def":2250,"money":3,"exp":225,"point":0,"special":[]}, "E608": {"name":"寒冰护卫","hp":25000,"atk":3500,"def":2250,"money":3,"exp":225,"point":0,"special":[]},
"E609": {"name":"具形雪人","hp":7500,"atk":2250,"def":1000,"money":2,"exp":90,"point":0,"special":[25],"melt":15}, "E609": {"name":"具形雪人","hp":7500,"atk":2250,"def":1000,"money":2,"exp":90,"point":0,"special":[25],"melt":15},
"E610": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E610": {"name":"高冷雪人","hp":10000,"atk":2750,"def":1500,"money":0,"exp":0,"point":0,"special":[25],"melt":25},
"E611": {"name":"具形雪人法师","hp":12500,"atk":2750,"def":1750,"money":2,"exp":175,"point":0,"special":[13,25],"melt":30}, "E611": {"name":"具形雪人法师","hp":12500,"atk":2750,"def":1750,"money":2,"exp":175,"point":0,"special":[13,25],"melt":30},
"E612": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, "E612": {"name":"新敌人","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]},
"E613": {"name":"寒冰核心","hp":20000,"atk":3000,"def":1500,"money":3,"exp":150,"point":0,"special":[26],"iceCore":20}, "E613": {"name":"寒冰核心","hp":20000,"atk":3000,"def":1500,"money":3,"exp":150,"point":0,"special":[26],"iceCore":20},

View File

@ -31,6 +31,20 @@ main.floors.MT42=
5, 5,
0 0
] ]
},
"0,7": {
"floorId": "MT43",
"loc": [
14,
7
]
},
"0,2": {
"floorId": "MT43",
"loc": [
14,
2
]
} }
}, },
"beforeBattle": {}, "beforeBattle": {},

View File

@ -17,7 +17,22 @@ main.floors.MT43=
"eachArrive": [], "eachArrive": [],
"parallelDo": "", "parallelDo": "",
"events": {}, "events": {},
"changeFloor": {}, "changeFloor": {
"14,7": {
"floorId": "MT42",
"loc": [
0,
7
]
},
"14,2": {
"floorId": "MT42",
"loc": [
0,
2
]
}
},
"beforeBattle": {}, "beforeBattle": {},
"afterBattle": {}, "afterBattle": {},
"afterGetItem": {}, "afterGetItem": {},
@ -27,20 +42,20 @@ main.floors.MT43=
"cannotMoveIn": {}, "cannotMoveIn": {},
"map": [ "map": [
[70031,70031,70031, 0, 0,70029,70029,70029,70029,70029,70029, 0, 0, 0, 0], [70031,70031,70031, 0, 0,70029,70029,70029,70029,70029,70029, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0,586,586,586, 0, 0, 0, 0, 0,604],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94], [ 0, 0,585,585,585, 0, 0, 0, 0, 0, 0,604,604, 0, 94],
[70031, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [70031, 0,585, 0,585, 0, 0, 0, 0,588,588,588, 0, 0,604],
[70031, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,584,584], [70031, 0, 0, 0,610, 0, 0, 0, 0,588, 0, 0, 0,584,584],
[70031, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [70031, 0,584,584,584,617, 0, 0, 0, 0, 0,588,588, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0,584,584,584,584,584, 0, 0], [ 0, 0, 0, 0,584, 0, 0, 0,584,584,584,584,584, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94], [ 0,586,586, 0,584, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94],
[70030, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,584], [70030, 0, 0, 0,584, 0,602,584, 0, 0, 0, 0, 0, 0,584],
[70030,584,584,584,584,584, 0, 0, 0, 0, 0, 0, 0, 0,584], [70030,584,584,584,584,584, 0,584,584, 0, 0, 0, 0, 0,584],
[70030, 0, 0, 0, 0, 0, 0, 0, 0, 0,584,584,584, 0,584], [70030, 0, 0, 0, 0, 0, 0, 0, 0, 0,584,584,584, 0,584],
[70030, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,584], [70030, 0, 0, 0, 0, 0, 0,604,604, 0, 0, 0, 0, 0,584],
[584,584,584,584,584, 0, 0, 0, 0, 0,584,584,584,584,584], [584,584,584,584,584,584, 0, 0,604, 0,584,584,584,584,584],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0,584, 0, 0,604, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [ 0, 0, 0, 0, 0,604,604, 0,604,604, 0, 0, 0, 0, 0]
], ],
"bgmap": [ "bgmap": [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70072,70073,70073,70073], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,70072,70073,70073,70073],

View File

@ -314,13 +314,14 @@ span#hard {
} }
#toolBar { #toolBar {
position: absolute; position: absolute;
background: url(project/materials/ground.png) repeat;
z-index: 210; z-index: 210;
box-sizing: border-box; box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
display: none; display: none;
padding: 3px; padding: 3px;
border-top: 2px solid #ddd9;
margin-right: 3px;
} }
#toolBar .tools { #toolBar .tools {
position: relative; position: relative;
@ -379,6 +380,7 @@ p#name {
background: #000000; background: #000000;
overflow: hidden; overflow: hidden;
z-index: 185; z-index: 185;
margin: 3px;
} }
#bg { #bg {