选项框颜色;本地文档
This commit is contained in:
parent
ae57ae2cf5
commit
31da8f8eb5
2
_docs/docify.min.js
vendored
Normal file
2
_docs/docify.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@
|
|||||||
<meta http-equiv="cache-control" content="no-cache">
|
<meta http-equiv="cache-control" content="no-cache">
|
||||||
<meta http-equiv="expires" content="0">
|
<meta http-equiv="expires" content="0">
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
<link href="https://cdn.bootcss.com/docsify/4.5.5/themes/vue.css" rel="stylesheet">
|
<link href="vue.css" rel="stylesheet">
|
||||||
<script>
|
<script>
|
||||||
//先下载着
|
//先下载着
|
||||||
|
|
||||||
@ -149,8 +149,8 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<!-- 为了保证时序用脚本加载这两个 -->
|
<!-- 为了保证时序用脚本加载这两个 -->
|
||||||
<script src="https://cdn.bootcss.com/docsify/4.5.5/docsify.min.js"></script>
|
<script src="docsify.min.js"></script>
|
||||||
<script src="https://cdn.bootcss.com/docsify/4.5.5/plugins/search.min.js"></script>
|
<script src="search.min.js"></script>
|
||||||
<!--
|
<!--
|
||||||
<script src="../_server/blockly/Converter.bundle.min.js"></script>
|
<script src="../_server/blockly/Converter.bundle.min.js"></script>
|
||||||
<script src="../_server/blockly/blockly_compressed.js"></script>
|
<script src="../_server/blockly/blockly_compressed.js"></script>
|
||||||
|
|||||||
1
_docs/search.min.js
vendored
Normal file
1
_docs/search.min.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(){"use strict";function e(e){var n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(e).replace(/[&<>"'\/]/g,function(e){return n[e]})}function n(e){var n=[];return h.dom.findAll("a:not([data-nosearch])").map(function(t){var o=t.href,i=t.getAttribute("href"),r=e.parse(o).path;r&&-1===n.indexOf(r)&&!Docsify.util.isAbsolutePath(i)&&n.push(r)}),n}function t(e){localStorage.setItem("docsify.search.expires",Date.now()+e),localStorage.setItem("docsify.search.index",JSON.stringify(g))}function o(e,n,t,o){void 0===n&&(n="");var i,r=window.marked.lexer(n),a=window.Docsify.slugify,s={};return r.forEach(function(n){if("heading"===n.type&&n.depth<=o)i=t.toURL(e,{id:a(n.text)}),s[i]={slug:i,title:n.text,body:""};else{if(!i)return;s[i]?s[i].body?s[i].body+="\n"+(n.text||""):s[i].body=n.text:s[i]={slug:i,title:"",body:""}}}),a.clear(),s}function i(n){var t=[],o=[];Object.keys(g).forEach(function(e){o=o.concat(Object.keys(g[e]).map(function(n){return g[e][n]}))}),n=n.trim();var i=n.split(/[\s\-\,\\\/]+/);1!==i.length&&(i=[].concat(n,i));for(var r=0;r<o.length;r++)!function(n){var r=o[n],a=!1,s="",c=r.title&&r.title.trim(),l=r.body&&r.body.trim(),f=r.slug||"";if(c&&l&&(i.forEach(function(n,t){var o=new RegExp(n,"gi"),i=-1,r=-1;if(i=c&&c.search(o),r=l&&l.search(o),i<0&&r<0)a=!1;else{a=!0,r<0&&(r=0);var f=0,d=0;f=r<11?0:r-10,d=0===f?70:r+n.length+60,d>l.length&&(d=l.length);var p="..."+e(l).substring(f,d).replace(o,'<em class="search-keyword">'+n+"</em>")+"...";s+=p}}),a)){var d={title:e(c),content:s,url:f};t.push(d)}}(r);return t}function r(e,i){h=Docsify;var r="auto"===e.paths,a=localStorage.getItem("docsify.search.expires")<Date.now();if(g=JSON.parse(localStorage.getItem("docsify.search.index")),a)g={};else if(!r)return;var s=r?n(i.router):e.paths,c=s.length,l=0;s.forEach(function(n){if(g[n])return l++;h.get(i.router.getFile(n)).then(function(r){g[n]=o(n,r,i.router,e.depth),c===++l&&t(e.maxAge)})})}function a(){Docsify.dom.style("\n.sidebar {\n padding-top: 0;\n}\n\n.search {\n margin-bottom: 20px;\n padding: 6px;\n border-bottom: 1px solid #eee;\n}\n\n.search .results-panel {\n display: none;\n}\n\n.search .results-panel.show {\n display: block;\n}\n\n.search input {\n outline: none;\n border: none;\n width: 100%;\n padding: 7px;\n line-height: 22px;\n font-size: 14px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n\n.search h2 {\n font-size: 17px;\n margin: 10px 0;\n}\n\n.search a {\n text-decoration: none;\n color: inherit;\n}\n\n.search .matching-post {\n border-bottom: 1px solid #eee;\n}\n\n.search .matching-post:last-child {\n border-bottom: 0;\n}\n\n.search p {\n font-size: 14px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n}\n\n.search p.empty {\n text-align: center;\n}")}function s(e,n){void 0===n&&(n="");var t='<input type="search" value="'+n+'" /><div class="results-panel"></div></div>',o=Docsify.dom.create("div",t),i=Docsify.dom.find("aside");Docsify.dom.toggleClass(o,"search"),Docsify.dom.before(i,o)}function c(e){var n=Docsify.dom.find("div.search"),t=Docsify.dom.find(n,".results-panel");if(!e)return t.classList.remove("show"),void(t.innerHTML="");var o=i(e),r="";o.forEach(function(e){r+='<div class="matching-post">\n<a href="'+e.url+'"> \n<h2>'+e.title+"</h2>\n<p>"+e.content+"</p>\n</a>\n</div>"}),t.classList.add("show"),t.innerHTML=r||'<p class="empty">'+y+"</p>"}function l(){var e,n=Docsify.dom.find("div.search"),t=Docsify.dom.find(n,"input");Docsify.dom.on(n,"click",function(e){return"A"!==e.target.tagName&&e.stopPropagation()}),Docsify.dom.on(t,"input",function(n){clearTimeout(e),e=setTimeout(function(e){return c(n.target.value.trim())},100)})}function f(e,n){var t=Docsify.dom.getNode('.search input[type="search"]');if(t)if("string"==typeof e)t.placeholder=e;else{var o=Object.keys(e).filter(function(e){return n.indexOf(e)>-1})[0];t.placeholder=e[o]}}function d(e,n){if("string"==typeof e)y=e;else{var t=Object.keys(e).filter(function(e){return n.indexOf(e)>-1})[0];y=e[t]}}function p(e,n){var t=n.router.parse().query.s;a(),s(e,t),l(),t&&setTimeout(function(e){return c(t)},500)}function u(e,n){f(e.placeholder,n.route.path),d(e.noData,n.route.path)}var h,g={},y="",m={placeholder:"Type to search",noData:"No Results!",paths:"auto",depth:2,maxAge:864e5},v=function(e,n){var t=Docsify.util,o=n.config.search||m;Array.isArray(o)?m.paths=o:"object"==typeof o&&(m.paths=Array.isArray(o.paths)?o.paths:"auto",m.maxAge=t.isPrimitive(o.maxAge)?o.maxAge:m.maxAge,m.placeholder=o.placeholder||m.placeholder,m.noData=o.noData||m.noData,m.depth=o.depth||m.depth);var i="auto"===m.paths;e.mounted(function(e){p(m,n),!i&&r(m,n)}),e.doneEach(function(e){u(m,n),i&&r(m,n)})};$docsify.plugins=[].concat(v,$docsify.plugins)}();
|
||||||
1
_docs/vue.css
Normal file
1
_docs/vue.css
Normal file
File diff suppressed because one or more lines are too long
@ -608,11 +608,12 @@ mainStyle_m
|
|||||||
'竖屏状态栏背景:' EvalString BGNL? Newline
|
'竖屏状态栏背景:' EvalString BGNL? Newline
|
||||||
'竖屏工具栏背景:' EvalString BGNL? Newline
|
'竖屏工具栏背景:' EvalString BGNL? Newline
|
||||||
'楼层切换样式:' EvalString BGNL? Newline
|
'楼层切换样式:' EvalString BGNL? Newline
|
||||||
'状态栏颜色' ColorString Colour '边框颜色' ColorString Colour '全局字体' EvalString BEND
|
'状态栏颜色' ColorString Colour '边框颜色' ColorString Colour BGNL? Newline
|
||||||
|
'选中框颜色' ColorString Colour '全局字体' EvalString BEND
|
||||||
|
|
||||||
/* mainStyle_m
|
/* mainStyle_m
|
||||||
tooltip : 主要样式设置
|
tooltip : 主要样式设置
|
||||||
default : ["project/images/bg.jpg", "project/images/bg.jpg", "color: black", "background-color: #32369F; opacity: 0.85; color: #FFFFFF; border: #FFFFFF 2px solid; caret-color: #FFD700;", "url(project/materials/ground.png) repeat", "url(project/materials/ground.png) repeat", "url(project/materials/ground.png) repeat", "background-color: black; color: white", "255,255,255,1", "rgba(255,255,255,1)", "204,204,204,1", "rgba(204,204,204,1)", "Verdana"]
|
default : ["project/images/bg.jpg", "project/images/bg.jpg", "color: white", "background-color: #32369F; opacity: 0.85; color: #FFFFFF; border: #FFFFFF 2px solid; caret-color: #FFD700;", "url(project/materials/ground.png) repeat", "url(project/materials/ground.png) repeat", "url(project/materials/ground.png) repeat", "background-color: black; color: white", "255,255,255,1", "rgba(255,255,255,1)", "204,204,204,1", "rgba(204,204,204,1)", "255,215,0,1", "rgba(255,215,0,1)", "Verdana"]
|
||||||
helpUrl : /_docs/#/instruction
|
helpUrl : /_docs/#/instruction
|
||||||
var code = {
|
var code = {
|
||||||
startBackground: EvalString_0,
|
startBackground: EvalString_0,
|
||||||
@ -625,6 +626,7 @@ var code = {
|
|||||||
floorChangingStyle: EvalString_7,
|
floorChangingStyle: EvalString_7,
|
||||||
statusBarColor: JSON.parse('['+ColorString_0+']'),
|
statusBarColor: JSON.parse('['+ColorString_0+']'),
|
||||||
borderColor: JSON.parse('['+ColorString_1+']'),
|
borderColor: JSON.parse('['+ColorString_1+']'),
|
||||||
|
selectColor: JSON.parse('['+ColorString_2+']'),
|
||||||
font: EvalString_8
|
font: EvalString_8
|
||||||
};
|
};
|
||||||
return JSON.stringify(code);
|
return JSON.stringify(code);
|
||||||
@ -3377,8 +3379,8 @@ Floor_Meta_List
|
|||||||
/*Floor_Meta_List ['title','name','canFlyTo', 'canUseQuickShop', 'cannotViewMap', 'cannotMoveDirectly', 'defaultGround', 'ratio', 'upFloor', 'downFloor', 'fwlyPoint', 'bgm', 'color', 'weather', 'underGround']*/;
|
/*Floor_Meta_List ['title','name','canFlyTo', 'canUseQuickShop', 'cannotViewMap', 'cannotMoveDirectly', 'defaultGround', 'ratio', 'upFloor', 'downFloor', 'fwlyPoint', 'bgm', 'color', 'weather', 'underGround']*/;
|
||||||
|
|
||||||
Global_Attribute_List
|
Global_Attribute_List
|
||||||
: '全局字体'|'横屏左侧状态栏背景'|'竖屏上方状态栏背景'|'竖屏下方道具栏背景'|'边框颜色'|'状态栏文字色'|'楼层转换样式'|'装备列表'
|
: '全局字体'|'横屏左侧状态栏背景'|'竖屏上方状态栏背景'|'竖屏下方道具栏背景'|'边框颜色'|'状态栏文字色'|'选中框颜色'|'楼层转换样式'|'装备列表'
|
||||||
/*Global_Attribute_List ['font','statusLeftBackground','statusTopBackground', 'toolsBackground', 'borderColor', 'statusBarColor', 'floorChangingStyle', 'equipName']*/;
|
/*Global_Attribute_List ['font','statusLeftBackground','statusTopBackground', 'toolsBackground', 'borderColor', 'statusBarColor', 'selectColor', 'floorChangingStyle', 'equipName']*/;
|
||||||
|
|
||||||
Global_Value_List
|
Global_Value_List
|
||||||
: '血网伤害'|'中毒伤害'|'衰弱效果'|'红宝石效果'|'蓝宝石效果'|'绿宝石效果'|'红血瓶效果'|'蓝血瓶效果'|'黄血瓶效果'|'绿血瓶效果'|'破甲比例'|'反击比例'|'净化比例'|'仇恨增加值'|'动画时间'
|
: '血网伤害'|'中毒伤害'|'衰弱效果'|'红宝石效果'|'蓝宝石效果'|'绿宝石效果'|'红血瓶效果'|'蓝血瓶效果'|'黄血瓶效果'|'绿血瓶效果'|'破甲比例'|'反击比例'|'净化比例'|'仇恨增加值'|'动画时间'
|
||||||
|
|||||||
@ -119,7 +119,8 @@ ActionParser.prototype.parse = function (obj,type) {
|
|||||||
return MotaActionBlocks['mainStyle_m'].xmlText([
|
return MotaActionBlocks['mainStyle_m'].xmlText([
|
||||||
obj.startBackground, obj.startVerticalBackground || obj.startBackground, obj.startLogoStyle, obj.startButtonsStyle,
|
obj.startBackground, obj.startVerticalBackground || obj.startBackground, obj.startLogoStyle, obj.startButtonsStyle,
|
||||||
obj.statusLeftBackground, obj.statusTopBackground, obj.toolsBackground, obj.floorChangingStyle,
|
obj.statusLeftBackground, obj.statusTopBackground, obj.toolsBackground, obj.floorChangingStyle,
|
||||||
obj.statusBarColor, 'rgba('+obj.statusBarColor+')', obj.borderColor, 'rgba('+obj.borderColor+')', obj.font
|
obj.statusBarColor, 'rgba('+obj.statusBarColor+')', obj.borderColor, 'rgba('+obj.borderColor+')',
|
||||||
|
obj.selectColor, 'rgba(' + obj.selectColor + ')', obj.font
|
||||||
]);
|
]);
|
||||||
|
|
||||||
case 'shop':
|
case 'shop':
|
||||||
|
|||||||
@ -29,6 +29,11 @@ body {
|
|||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 素材区背景 */
|
||||||
|
#iconLib {
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
}
|
||||||
|
|
||||||
/** 选中素材区时的方框 */
|
/** 选中素材区时的方框 */
|
||||||
#dataSelection, .appendSelection, #selectPointBox {
|
#dataSelection, .appendSelection, #selectPointBox {
|
||||||
background-color: rgba(255, 255, 255, 0.0);
|
background-color: rgba(255, 255, 255, 0.0);
|
||||||
|
|||||||
@ -42,6 +42,11 @@ button {
|
|||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 素材区背景 */
|
||||||
|
#iconLib {
|
||||||
|
background-color: #242424;
|
||||||
|
}
|
||||||
|
|
||||||
/** 选中素材区时的方框 */
|
/** 选中素材区时的方框 */
|
||||||
#dataSelection, .appendSelection, #selectPointBox {
|
#dataSelection, .appendSelection, #selectPointBox {
|
||||||
background-color: rgba(255, 255, 255, 0.0);
|
background-color: rgba(255, 255, 255, 0.0);
|
||||||
|
|||||||
@ -199,6 +199,7 @@ function core() {
|
|||||||
"borderColor": main.styles.borderColor || [204,204,204,1],
|
"borderColor": main.styles.borderColor || [204,204,204,1],
|
||||||
"statusBarColor": main.styles.statusBarColor || [255,255,255,1],
|
"statusBarColor": main.styles.statusBarColor || [255,255,255,1],
|
||||||
"floorChangingStyle": main.styles.floorChangingStyle || "background-color: black; color: white",
|
"floorChangingStyle": main.styles.floorChangingStyle || "background-color: black; color: white",
|
||||||
|
"selectColor": main.styles.selectColor || [255,215,0,1],
|
||||||
"font": main.styles.font || "Verdana"
|
"font": main.styles.font || "Verdana"
|
||||||
},
|
},
|
||||||
'curtainColor': null,
|
'curtainColor': null,
|
||||||
|
|||||||
29
libs/ui.js
29
libs/ui.js
@ -1654,7 +1654,7 @@ ui.prototype._drawChoices_drawChoices = function (choices, isWindowSkin, hPos, v
|
|||||||
this.HPIXEL - len/2 - 5, vPos.choice_top + 32 * core.status.event.selection - 20, len + 10, 28);
|
this.HPIXEL - len/2 - 5, vPos.choice_top + 32 * core.status.event.selection - 20, len + 10, 28);
|
||||||
else
|
else
|
||||||
core.strokeRoundRect('ui', this.HPIXEL - len/2 - 5, vPos.choice_top + 32 * core.status.event.selection - 20,
|
core.strokeRoundRect('ui', this.HPIXEL - len/2 - 5, vPos.choice_top + 32 * core.status.event.selection - 20,
|
||||||
len+10, 28, 6, "#FFD700", 2);
|
len+10, 28, 6, core.status.globalAttribute.selectColor, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1693,7 +1693,7 @@ ui.prototype.drawConfirmBox = function (text, yesCallback, noCallback) {
|
|||||||
if (isWindowSkin)
|
if (isWindowSkin)
|
||||||
this.drawWindowSelector(core.status.textAttribute.background, strokeLeft, rect.bottom-35-20, len+10, 28);
|
this.drawWindowSelector(core.status.textAttribute.background, strokeLeft, rect.bottom-35-20, len+10, 28);
|
||||||
else
|
else
|
||||||
core.strokeRoundRect('ui', strokeLeft, rect.bottom-35-20, len+10, 28, 6, "#FFD700", 2);
|
core.strokeRoundRect('ui', strokeLeft, rect.bottom-35-20, len+10, 28, 6, core.status.globalAttribute.selectColor, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1848,7 +1848,7 @@ ui.prototype.drawCursor = function () {
|
|||||||
core.clearUI();
|
core.clearUI();
|
||||||
var width = 4;
|
var width = 4;
|
||||||
core.strokeRect('ui', 32*automaticRoute.cursorX+width/2, 32*automaticRoute.cursorY+width/2,
|
core.strokeRect('ui', 32*automaticRoute.cursorX+width/2, 32*automaticRoute.cursorY+width/2,
|
||||||
32-width, 32-width, '#FFD700', width);
|
32-width, 32-width, core.status.globalAttribute.selectColor, width);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1916,7 +1916,7 @@ ui.prototype._drawBook_drawOne = function (floorId, index, enemy, pageinfo, sele
|
|||||||
this._drawBook_drawName(index, enemy, top, left, name_width);
|
this._drawBook_drawName(index, enemy, top, left, name_width);
|
||||||
this._drawBook_drawContent(index, enemy, top, left + name_width);
|
this._drawBook_drawContent(index, enemy, top, left + name_width);
|
||||||
if (selected)
|
if (selected)
|
||||||
core.strokeRoundRect('ui', 10, top + 1, this.PIXEL - 10 * 2, pageinfo.per_height, 10, '#FFD700');
|
core.strokeRoundRect('ui', 10, top + 1, this.PIXEL - 10 * 2, pageinfo.per_height, 10, core.status.globalAttribute.selectColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui.prototype._drawBook_drawBox = function (index, enemy, top, pageinfo) {
|
ui.prototype._drawBook_drawBox = function (index, enemy, top, pageinfo) {
|
||||||
@ -2201,7 +2201,7 @@ ui.prototype._drawBookDetail_turnAndCriticals = function (enemy, floorId, texts)
|
|||||||
ui.prototype._drawBookDetail_drawContent = function (enemy, content, pos) {
|
ui.prototype._drawBookDetail_drawContent = function (enemy, content, pos) {
|
||||||
// 名称
|
// 名称
|
||||||
core.setTextAlign('data', 'left');
|
core.setTextAlign('data', 'left');
|
||||||
core.fillText('data', enemy.name, pos.content_left, pos.top + 30, '#FFD700', this._buildFont(22, true));
|
core.fillText('data', enemy.name, pos.content_left, pos.top + 30, core.status.globalAttribute.selectColor, this._buildFont(22, true));
|
||||||
var content_top = pos.top + 44;
|
var content_top = pos.top + 44;
|
||||||
|
|
||||||
this.drawTextContent('data', content, {left: pos.content_left, top: content_top, maxWidth: pos.validWidth,
|
this.drawTextContent('data', content, {left: pos.content_left, top: content_top, maxWidth: pos.validWidth,
|
||||||
@ -2296,7 +2296,7 @@ ui.prototype._drawMaps_drawHint = function () {
|
|||||||
core.strokeRect('ui', left*32+2, top*32+2, width*32-4, height*32-4, fillStyle, lineWidth);
|
core.strokeRect('ui', left*32+2, top*32+2, width*32-4, height*32-4, fillStyle, lineWidth);
|
||||||
}
|
}
|
||||||
var per = this.HSIZE - 4;
|
var per = this.HSIZE - 4;
|
||||||
stroke(per, 0, 9, per, '#FFD700', 4); // up
|
stroke(per, 0, 9, per, core.status.globalAttribute.selectColor, 4); // up
|
||||||
stroke(0, per, per, 9); // left
|
stroke(0, per, per, 9); // left
|
||||||
stroke(per, this.SIZE - per, 9, per); // down
|
stroke(per, this.SIZE - per, 9, per); // down
|
||||||
stroke(this.SIZE - per, per, per, 9); // right
|
stroke(this.SIZE - per, per, per, 9); // right
|
||||||
@ -2307,7 +2307,7 @@ ui.prototype._drawMaps_drawHint = function () {
|
|||||||
stroke(0, this.SIZE-(per-1), per-1, per-1); // left bottom
|
stroke(0, this.SIZE-(per-1), per-1, per-1); // left bottom
|
||||||
|
|
||||||
core.setTextBaseline('ui', 'middle');
|
core.setTextBaseline('ui', 'middle');
|
||||||
core.fillText('ui', "上移地图 [W]", this.HPIXEL, per * 16, '#FFD700', '20px Arial');
|
core.fillText('ui', "上移地图 [W]", this.HPIXEL, per * 16, core.status.globalAttribute.selectColor, '20px Arial');
|
||||||
core.fillText('ui', "下移地图 [S]", this.HPIXEL, this.PIXEL - per * 16);
|
core.fillText('ui', "下移地图 [S]", this.HPIXEL, this.PIXEL - per * 16);
|
||||||
core.fillText('ui', 'V', (per-1)*16, (per-1)*16);
|
core.fillText('ui', 'V', (per-1)*16, (per-1)*16);
|
||||||
core.fillText('ui', 'Z', this.PIXEL - (per-1)*16, (per-1)*16);
|
core.fillText('ui', 'Z', this.PIXEL - (per-1)*16, (per-1)*16);
|
||||||
@ -2440,7 +2440,7 @@ ui.prototype._drawToolbox_drawDescription = function (info, max_height) {
|
|||||||
core.setTextAlign('ui', 'left');
|
core.setTextAlign('ui', 'left');
|
||||||
if (!info.selectId) return;
|
if (!info.selectId) return;
|
||||||
var item=core.material.items[info.selectId];
|
var item=core.material.items[info.selectId];
|
||||||
core.fillText('ui', item.name, 10, 32, '#FFD700', this._buildFont(20, true))
|
core.fillText('ui', item.name, 10, 32, core.status.globalAttribute.selectColor, this._buildFont(20, true))
|
||||||
var text = item.text||"该道具暂无描述。";
|
var text = item.text||"该道具暂无描述。";
|
||||||
try {
|
try {
|
||||||
// 检查能否eval
|
// 检查能否eval
|
||||||
@ -2474,7 +2474,7 @@ ui.prototype._drawToolbox_drawContent = function (info, line, items, page, drawC
|
|||||||
if (drawCount)
|
if (drawCount)
|
||||||
core.fillText('ui', core.itemCount(item), 64 * (i % this.HSIZE) + 56, yoffset + 33, '#FFFFFF', this._buildFont(14, true));
|
core.fillText('ui', core.itemCount(item), 64 * (i % this.HSIZE) + 56, yoffset + 33, '#FFFFFF', this._buildFont(14, true));
|
||||||
if (info.selectId == item)
|
if (info.selectId == item)
|
||||||
core.strokeRoundRect('ui', 64 * (i % this.HSIZE) + 17, yoffset - 4, 40, 40, 6, '#FFD700');
|
core.strokeRoundRect('ui', 64 * (i % this.HSIZE) + 17, yoffset - 4, 40, 40, 6, core.status.globalAttribute.selectColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2549,7 +2549,7 @@ ui.prototype._drawEquipbox_description = function (info, max_height) {
|
|||||||
equipType = core.items.getEquipTypeByName(equipType);
|
equipType = core.items.getEquipTypeByName(equipType);
|
||||||
}
|
}
|
||||||
else equipString = info.allEquips[equipType] || "未知部位";
|
else equipString = info.allEquips[equipType] || "未知部位";
|
||||||
core.fillText('ui', equip.name + "(" + equipString + ")", 10, 32, '#FFD700', this._buildFont(20, true))
|
core.fillText('ui', equip.name + "(" + equipString + ")", 10, 32, core.status.globalAttribute.selectColor, this._buildFont(20, true))
|
||||||
// --- 描述
|
// --- 描述
|
||||||
var text = equip.text || "该装备暂无描述。";
|
var text = equip.text || "该装备暂无描述。";
|
||||||
try {
|
try {
|
||||||
@ -2636,7 +2636,7 @@ ui.prototype._drawEquipbox_drawEquiped = function (info, line) {
|
|||||||
core.drawImage('ui', core.material.images.items, 0, 32 * icon, 32, 32, offset_image, y, 32, 32);
|
core.drawImage('ui', core.material.images.items, 0, 32 * icon, 32, 32, offset_image, y, 32, 32);
|
||||||
}
|
}
|
||||||
core.fillText('ui', info.allEquips[i] || "未知", offset_text, y + 27, '#FFFFFF', this._buildFont(16, true))
|
core.fillText('ui', info.allEquips[i] || "未知", offset_text, y + 27, '#FFFFFF', this._buildFont(16, true))
|
||||||
core.strokeRoundRect('ui', offset_image - 4, y - 4, 40, 40, 6, info.index==i?'#FFD700':"#FFFFFF");
|
core.strokeRoundRect('ui', offset_image - 4, y - 4, 40, 40, 6, info.index==i?core.status.globalAttribute.selectColor:"#FFFFFF");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2722,11 +2722,12 @@ ui.prototype._drawSLPanel_loadSave = function(page, callback) {
|
|||||||
|
|
||||||
// 在以x为中心轴 y为顶坐标 的位置绘制一条宽为size的记录 cho表示是否被选中 选中会加粗 highlight表示高亮标题 ✐
|
// 在以x为中心轴 y为顶坐标 的位置绘制一条宽为size的记录 cho表示是否被选中 选中会加粗 highlight表示高亮标题 ✐
|
||||||
ui.prototype._drawSLPanel_drawRecord = function(title, data, x, y, size, cho, highLight){
|
ui.prototype._drawSLPanel_drawRecord = function(title, data, x, y, size, cho, highLight){
|
||||||
var strokeColor = '#FFD700';
|
var globalAttribute = core.status.globalAttribute || core.initStatus.globalAttribute;
|
||||||
|
var strokeColor = globalAttribute.selectColor;
|
||||||
if (core.status.event.selection) strokeColor = '#FF6A6A';
|
if (core.status.event.selection) strokeColor = '#FF6A6A';
|
||||||
if (!data || !data.floorId) highLight = false;
|
if (!data || !data.floorId) highLight = false;
|
||||||
|
|
||||||
core.fillText('ui', title, x, y, highLight?'#FFD700':'#FFFFFF', this._buildFont(17, true));
|
core.fillText('ui', title, x, y, highLight?globalAttribute.selectColor:'#FFFFFF', this._buildFont(17, true));
|
||||||
core.strokeRect('ui', x-size/2, y+15, size, size, cho?strokeColor:'#FFFFFF', cho?6:2);
|
core.strokeRect('ui', x-size/2, y+15, size, size, cho?strokeColor:'#FFFFFF', cho?6:2);
|
||||||
if (data && data.floorId) {
|
if (data && data.floorId) {
|
||||||
core.setTextAlign('ui', "center");
|
core.setTextAlign('ui', "center");
|
||||||
@ -2760,7 +2761,7 @@ ui.prototype._drawSLPanel_drawRecord = function(title, data, x, y, size, cho, hi
|
|||||||
var v = core.formatBigNumber(data.hero.hp,true)+"/"+core.formatBigNumber(data.hero.atk,true)+"/"+core.formatBigNumber(data.hero.def,true);
|
var v = core.formatBigNumber(data.hero.hp,true)+"/"+core.formatBigNumber(data.hero.atk,true)+"/"+core.formatBigNumber(data.hero.def,true);
|
||||||
var v2 = "/"+core.formatBigNumber(data.hero.mdef,true);
|
var v2 = "/"+core.formatBigNumber(data.hero.mdef,true);
|
||||||
if (core.calWidth('ui', v + v2, this._buildFont(10, false)) <= size) v += v2;
|
if (core.calWidth('ui', v + v2, this._buildFont(10, false)) <= size) v += v2;
|
||||||
core.fillText('ui', v, x, y+30+size, '#FFD700');
|
core.fillText('ui', v, x, y+30+size, globalAttribute.selectColor);
|
||||||
core.fillText('ui', core.formatDate(new Date(data.time)), x, y+43+size, data.hero.flags.debug?'#FF6A6A':'#FFFFFF');
|
core.fillText('ui', core.formatDate(new Date(data.time)), x, y+43+size, data.hero.flags.debug?'#FF6A6A':'#FFFFFF');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -75,7 +75,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
"styles": {
|
"styles": {
|
||||||
"startBackground": "project/images/bg.jpg",
|
"startBackground": "project/images/bg.jpg",
|
||||||
"startVerticalBackground": "project/images/bg.jpg",
|
"startVerticalBackground": "project/images/bg.jpg",
|
||||||
"startLogoStyle": "color: black",
|
"startLogoStyle": "color: white",
|
||||||
"startButtonsStyle": "background-color: #32369F; opacity: 0.85; color: #FFFFFF; border: #FFFFFF 2px solid; caret-color: #FFD700;",
|
"startButtonsStyle": "background-color: #32369F; opacity: 0.85; color: #FFFFFF; border: #FFFFFF 2px solid; caret-color: #FFD700;",
|
||||||
"statusLeftBackground": "url(project/materials/ground.png) repeat",
|
"statusLeftBackground": "url(project/materials/ground.png) repeat",
|
||||||
"statusTopBackground": "url(project/materials/ground.png) repeat",
|
"statusTopBackground": "url(project/materials/ground.png) repeat",
|
||||||
@ -92,6 +92,12 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
|
|||||||
255,
|
255,
|
||||||
1
|
1
|
||||||
],
|
],
|
||||||
|
"selectColor": [
|
||||||
|
255,
|
||||||
|
215,
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
],
|
||||||
"floorChangingStyle": "background-color: black; color: white",
|
"floorChangingStyle": "background-color: black; color: white",
|
||||||
"font": "Verdana"
|
"font": "Verdana"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1554,9 +1554,9 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
|
|
||||||
// 名称
|
// 名称
|
||||||
core.setTextAlign('ui', 'left');
|
core.setTextAlign('ui', 'left');
|
||||||
var globalFont = (core.status.globalAttribute || core.initStatus.globalAttribute).font;
|
var globalAttribute = core.status.globalAttribute || core.initStatus.globalAttribute;
|
||||||
core.fillText('ui', "HTML5 魔塔样板", text_start, top + 35, "#FFD700", "bold 22px " + globalFont);
|
core.fillText('ui', "HTML5 魔塔样板", text_start, top + 35, globalAttribute.selectColor, "bold 22px " + globalAttribute.font);
|
||||||
core.fillText('ui', "版本: " + main.__VERSION__, text_start, top + 80, "#FFFFFF", "bold 17px " + globalFont);
|
core.fillText('ui', "版本: " + main.__VERSION__, text_start, top + 80, "#FFFFFF", "bold 17px " + globalAttribute.font);
|
||||||
core.fillText('ui', "作者: 艾之葵", text_start, top + 112);
|
core.fillText('ui', "作者: 艾之葵", text_start, top + 112);
|
||||||
core.fillText('ui', 'HTML5魔塔交流群:539113091', text_start, top + 112 + 32);
|
core.fillText('ui', 'HTML5魔塔交流群:539113091', text_start, top + 112 + 32);
|
||||||
// TODO: 写自己的“关于”页面,每次增加32像素即可
|
// TODO: 写自己的“关于”页面,每次增加32像素即可
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 60 KiB |
BIN
project/images/bg2.jpg
Normal file
BIN
project/images/bg2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Loading…
Reference in New Issue
Block a user