Deploying to gh-pages from @ LingASDJ/RW-API-Code@6a40d4f46d 🚀
This commit is contained in:
parent
a7cfe573c8
commit
f3fd613945
16
api-dev.html
16
api-dev.html
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
import{_ as e,H as p,o as c,c as r,C as s,a,J as n,E as o,V as t}from"./chunks/framework.ba757cb9.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),h=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rwapi-code.netlify.app/images/title.png"})],-1),u={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=s("p",{class:"custom-block-title"},"WARNING",-1),v=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t(`<h4 id="其他说明" tabindex="-1">其他说明: <a class="header-anchor" href="#其他说明" aria-label="Permalink to "其他说明:""></a></h4><p>有关于MarkDown的其他书写格式,请参考MD书写规范<br><a href="https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax" target="_blank" rel="noreferrer">MD文档参考--点我立刻学习</a></p><h4 id="附加说明" tabindex="-1">附加说明: <a class="header-anchor" href="#附加说明" aria-label="Permalink to "附加说明:""></a></h4><div class="language-txt"><button title="Copy Code" class="copy"></button><span class="lang">txt</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">由于插件众多,为避免MD格式冲突,换行建议最好使用<br>进行换行,</span></span>
|
||||
import{_ as e,H as p,o as c,c as r,C as s,a,J as n,E as o,V as t}from"./chunks/framework.2b043b9b.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),h=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rwapi-code.netlify.app/images/title.png"})],-1),u={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=s("p",{class:"custom-block-title"},"WARNING",-1),v=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t(`<h4 id="其他说明" tabindex="-1">其他说明: <a class="header-anchor" href="#其他说明" aria-label="Permalink to "其他说明:""></a></h4><p>有关于MarkDown的其他书写格式,请参考MD书写规范<br><a href="https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax" target="_blank" rel="noreferrer">MD文档参考--点我立刻学习</a></p><h4 id="附加说明" tabindex="-1">附加说明: <a class="header-anchor" href="#附加说明" aria-label="Permalink to "附加说明:""></a></h4><div class="language-txt"><button title="Copy Code" class="copy"></button><span class="lang">txt</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">由于插件众多,为避免MD格式冲突,换行建议最好使用<br>进行换行,</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">如果要在一些扩展格式渲染演示,请使用<font>标签,</span></span></code></pre></div><h4 id="部署策略" tabindex="-1">部署策略: <a class="header-anchor" href="#部署策略" aria-label="Permalink to "部署策略:""></a></h4><div class="info custom-block"><p class="custom-block-title">INFO</p><p>1.本地部署</p></div>`,6),w={class:"tip custom-block"},x=s("p",{class:"custom-block-title"},"TIP",-1),I=s("br",null,null,-1),N=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),E=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),S={class:"tip custom-block"},R=s("p",{class:"custom-block-title"},"TIP",-1),V=s("br",null,null,-1),M=s("br",null,null,-1),O=s("br",null,null,-1),G=t(`<h4 id="_1-md扩展格式" tabindex="-1">1.MD扩展格式: <a class="header-anchor" href="#_1-md扩展格式" aria-label="Permalink to "1.MD扩展格式:""></a></h4><div class="language-"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">::: info</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">信息文本</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
|
@ -1,2 +1,2 @@
|
|||
import{_ as e,H as p,o as c,c as r,C as s,a,J as n,E as o,V as t}from"./chunks/framework.ba757cb9.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),h=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rwapi-code.netlify.app/images/title.png"})],-1),u={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=s("p",{class:"custom-block-title"},"WARNING",-1),v=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t("",6),w={class:"tip custom-block"},x=s("p",{class:"custom-block-title"},"TIP",-1),I=s("br",null,null,-1),N=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),E=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),S={class:"tip custom-block"},R=s("p",{class:"custom-block-title"},"TIP",-1),V=s("br",null,null,-1),M=s("br",null,null,-1),O=s("br",null,null,-1),G=t("",12),B=s("iframe",{src:"https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4",scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true",width:"100%",height:"400"},`
|
||||
import{_ as e,H as p,o as c,c as r,C as s,a,J as n,E as o,V as t}from"./chunks/framework.2b043b9b.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),h=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rwapi-code.netlify.app/images/title.png"})],-1),u={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=s("p",{class:"custom-block-title"},"WARNING",-1),v=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t("",6),w={class:"tip custom-block"},x=s("p",{class:"custom-block-title"},"TIP",-1),I=s("br",null,null,-1),N=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),E=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),S={class:"tip custom-block"},R=s("p",{class:"custom-block-title"},"TIP",-1),V=s("br",null,null,-1),M=s("br",null,null,-1),O=s("br",null,null,-1),G=t("",12),B=s("iframe",{src:"https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4",scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true",width:"100%",height:"400"},`
|
||||
`,-1),H=t("",12);function $(j,W,z,J,X,K){const l=p("font");return c(),r("div",null,[d,h,s("div",u,[D,s("p",null,[a("0.如果你确定你想"),n(l,{color:"orange"},{default:o(()=>[a("帮忙开发此站点")]),_:1}),a(","),_,a(" 就可以点击右上角的Github按钮,"),n(l,{color:"orange"},{default:o(()=>[a("Clone我们的库")]),_:1}),a(","),y,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),C]),b,A]),s("div",m,[F,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),g,a(" 否则在"),n(l,{color:"orange"},{default:o(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",f,[k,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),n(l,{color:"green"},{default:o(()=>[a("PR审核")]),_:1})])]),v,s("div",q,[P,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),n(l,{color:"green"},{default:o(()=>[a("扩展MD格式供各位书写")]),_:1})])]),T,s("div",w,[x,s("p",null,[a("如果要本地测试,请确保设备有"),n(l,{color:"green"},{default:o(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),I]),N]),E,s("div",S,[R,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),V,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),M,a(" 点击"),s("b",null,[n(l,{color:"orange"},{default:o(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),O,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),G,B,H])}const U=e(i,[["render",$]]);export{Q as __pageData,U as default};
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as tn,o as nn,D as rn,E as an,b as sn,S as on,U as cn,C as T,Q as le,a5 as ln,a6 as un,a7 as dn,a8 as fn,a9 as hn,aa as pn,ab as mn,ac as gn,ad as bn,ae as _n,M as In,d as yn,u as En,q as wn,k as Tn,af as vn,ag as An,ah as Sn,ai as Cn}from"./chunks/framework.ba757cb9.js";import{t as rt}from"./chunks/theme.aba0bfcf.js";/**
|
||||
import{_ as tn,o as nn,D as rn,E as an,b as sn,S as on,U as cn,C as T,Q as le,a5 as ln,a6 as un,a7 as dn,a8 as fn,a9 as hn,aa as pn,ab as mn,ac as gn,ad as bn,ae as _n,M as In,d as yn,u as En,q as wn,k as Tn,af as vn,ag as An,ah as Sn,ai as Cn}from"./chunks/framework.2b043b9b.js";import{t as rt}from"./chunks/theme.befd5372.js";/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
*
|
1
assets/chunks/@localSearchIndexroot.22bb9a70.js
Normal file
1
assets/chunks/@localSearchIndexroot.22bb9a70.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
assets/chunks/VPLocalSearchBox.909191e6.js
Normal file
7
assets/chunks/VPLocalSearchBox.909191e6.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
assets/chunks/theme.befd5372.js
Normal file
7
assets/chunks/theme.befd5372.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{_ as e,o as t,c as i}from"./chunks/framework.ba757cb9.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rwapi-code.netlify.app/images/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"编写指南","link":"/api-dev"},{"theme":"brand","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),a={name:"index.md"};function n(o,d,l,r,s,c){return t(),i("div")}const x=e(a,[["render",n]]);export{m as __pageData,x as default};
|
||||
import{_ as e,o as t,c as i}from"./chunks/framework.2b043b9b.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rwapi-code.netlify.app/images/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"编写指南","link":"/api-dev"},{"theme":"brand","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),a={name:"index.md"};function n(o,d,l,r,s,c){return t(),i("div")}const x=e(a,[["render",n]]);export{m as __pageData,x as default};
|
|
@ -1 +1 @@
|
|||
import{_ as e,o as t,c as i}from"./chunks/framework.ba757cb9.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rwapi-code.netlify.app/images/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"编写指南","link":"/api-dev"},{"theme":"brand","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),a={name:"index.md"};function n(o,d,l,r,s,c){return t(),i("div")}const x=e(a,[["render",n]]);export{m as __pageData,x as default};
|
||||
import{_ as e,o as t,c as i}from"./chunks/framework.2b043b9b.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rwapi-code.netlify.app/images/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"编写指南","link":"/api-dev"},{"theme":"brand","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),a={name:"index.md"};function n(o,d,l,r,s,c){return t(),i("div")}const x=e(a,[["render",n]]);export{m as __pageData,x as default};
|
|
@ -1 +1 @@
|
|||
import{_ as e,o as t,c as s,C as a}from"./chunks/framework.ba757cb9.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Debug/test.md","filePath":"src/Debug/test.md"}'),o={name:"src/Debug/test.md"},r=a("p",null,"fasa",-1),c=[r];function n(_,d,i,p,l,f){return t(),s("div",null,c)}const h=e(o,[["render",n]]);export{u as __pageData,h as default};
|
||||
import{_ as e,o as t,c as s,C as a}from"./chunks/framework.2b043b9b.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Debug/test.md","filePath":"src/Debug/test.md"}'),o={name:"src/Debug/test.md"},r=a("p",null,"fasa",-1),c=[r];function n(_,d,i,p,l,f){return t(),s("div",null,c)}const h=e(o,[["render",n]]);export{u as __pageData,h as default};
|
|
@ -1 +1 @@
|
|||
import{_ as e,o as t,c as s,C as a}from"./chunks/framework.ba757cb9.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Debug/test.md","filePath":"src/Debug/test.md"}'),o={name:"src/Debug/test.md"},r=a("p",null,"fasa",-1),c=[r];function n(_,d,i,p,l,f){return t(),s("div",null,c)}const h=e(o,[["render",n]]);export{u as __pageData,h as default};
|
||||
import{_ as e,o as t,c as s,C as a}from"./chunks/framework.2b043b9b.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Debug/test.md","filePath":"src/Debug/test.md"}'),o={name:"src/Debug/test.md"},r=a("p",null,"fasa",-1),c=[r];function n(_,d,i,p,l,f){return t(),s("div",null,c)}const h=e(o,[["render",n]]);export{u as __pageData,h as default};
|
|
@ -1 +1 @@
|
|||
import{_ as a,o as t,c as e}from"./chunks/framework.ba757cb9.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Map/tsada.md","filePath":"src/Map/tsada.md"}'),s={name:"src/Map/tsada.md"};function r(c,o,n,d,p,_){return t(),e("div")}const f=a(s,[["render",r]]);export{m as __pageData,f as default};
|
||||
import{_ as a,o as t,c as e}from"./chunks/framework.2b043b9b.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Map/tsada.md","filePath":"src/Map/tsada.md"}'),s={name:"src/Map/tsada.md"};function r(c,o,n,d,p,_){return t(),e("div")}const f=a(s,[["render",r]]);export{m as __pageData,f as default};
|
|
@ -1 +1 @@
|
|||
import{_ as a,o as t,c as e}from"./chunks/framework.ba757cb9.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Map/tsada.md","filePath":"src/Map/tsada.md"}'),s={name:"src/Map/tsada.md"};function r(c,o,n,d,p,_){return t(),e("div")}const f=a(s,[["render",r]]);export{m as __pageData,f as default};
|
||||
import{_ as a,o as t,c as e}from"./chunks/framework.2b043b9b.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Map/tsada.md","filePath":"src/Map/tsada.md"}'),s={name:"src/Map/tsada.md"};function r(c,o,n,d,p,_){return t(),e("div")}const f=a(s,[["render",r]]);export{m as __pageData,f as default};
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as n,H as i,o,c,C as s,a,J as t,E as p,V as e}from"./chunks/framework.ba757cb9.js";const _=JSON.parse('{"title":"[canBuild]建造组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/canbuild.md","filePath":"src/Unit/canbuild.md"}'),r={name:"src/Unit/canbuild.md"},d=e(`<h1 id="canbuild-建造组" tabindex="-1"><strong>[canBuild]建造组</strong> <a class="header-anchor" href="#canbuild-建造组" aria-label="Permalink to "**[canBuild]建造组**""></a></h1><h3 id="canbuild-name" tabindex="-1">[canBuild_NAME] <a class="header-anchor" href="#canbuild-name" aria-label="Permalink to "[canBuild_NAME]""></a></h3><h4 id="canbuild-name-代码简介" tabindex="-1">[canBuild_NAME]-代码简介 <a class="header-anchor" href="#canbuild-name-代码简介" aria-label="Permalink to "[canBuild_NAME]-代码简介""></a></h4><p>代码: [canBuild_NAME] 中文释义:可建造_名字 类型:字符型 canBuild_NAME = 组名 如果不填写此组名 将默认拥有一个命名为空格的组名。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>建议将NAME命名为此组的描述或可建造单位的昵称。<br> 以便于阅读代码。</p></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-IvXHe" id="tab-FgffH_-" checked="checked"><label for="tab-FgffH_-">allureluoli</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_造小坦</span><span style="color:#89DDFF;">]</span></span>
|
||||
import{_ as n,H as i,o,c,C as s,a,J as t,E as p,V as e}from"./chunks/framework.2b043b9b.js";const _=JSON.parse('{"title":"[canBuild]建造组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/canbuild.md","filePath":"src/Unit/canbuild.md"}'),r={name:"src/Unit/canbuild.md"},d=e(`<h1 id="canbuild-建造组" tabindex="-1"><strong>[canBuild]建造组</strong> <a class="header-anchor" href="#canbuild-建造组" aria-label="Permalink to "**[canBuild]建造组**""></a></h1><h3 id="canbuild-name" tabindex="-1">[canBuild_NAME] <a class="header-anchor" href="#canbuild-name" aria-label="Permalink to "[canBuild_NAME]""></a></h3><h4 id="canbuild-name-代码简介" tabindex="-1">[canBuild_NAME]-代码简介 <a class="header-anchor" href="#canbuild-name-代码简介" aria-label="Permalink to "[canBuild_NAME]-代码简介""></a></h4><p>代码: [canBuild_NAME] 中文释义:可建造_名字 类型:字符型 canBuild_NAME = 组名 如果不填写此组名 将默认拥有一个命名为空格的组名。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>建议将NAME命名为此组的描述或可建造单位的昵称。<br> 以便于阅读代码。</p></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-txnc9" id="tab-6dU6sbv" checked="checked"><label for="tab-6dU6sbv">allureluoli</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_造小坦</span><span style="color:#89DDFF;">]</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_SmallTank</span><span style="color:#89DDFF;">]</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_建造科技</span><span style="color:#89DDFF;">]</span></span></code></pre></div></div></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>[canBuild_NAME] 中的NAME命名禁止重复,否则会引发报错。<br> 其中下划线作为分隔符也是重要的,如果没有将引发报错。</p></div><h4 id="canbuild-name-演示例子" tabindex="-1">[canBuild_NAME]-演示例子 <a class="header-anchor" href="#canbuild-name-演示例子" aria-label="Permalink to "[canBuild_NAME]-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[canBuild_SmallTank]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#英文命名</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_小坦克]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#中文命名</span></span>
|
|
@ -1 +1 @@
|
|||
import{_ as n,H as i,o,c,C as s,a,J as t,E as p,V as e}from"./chunks/framework.ba757cb9.js";const _=JSON.parse('{"title":"[canBuild]建造组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/canbuild.md","filePath":"src/Unit/canbuild.md"}'),r={name:"src/Unit/canbuild.md"},d=e("",64),h={class:"tip custom-block"},u=s("p",{class:"custom-block-title"},"TIP",-1),k=s("br",null,null,-1),b=e("",59);function m(g,A,y,C,q,D){const l=i("font");return o(),c("div",null,[d,s("div",h,[u,s("p",null,[a("可以用来告知玩家被锁定原因。"),k,a(" 能够通过转义字符 "),t(l,{color:"red"},{default:p(()=>[a("\\n")]),_:1}),a(" 实现文本换行。")])]),b])}const v=n(r,[["render",m]]);export{_ as __pageData,v as default};
|
||||
import{_ as n,H as i,o,c,C as s,a,J as t,E as p,V as e}from"./chunks/framework.2b043b9b.js";const _=JSON.parse('{"title":"[canBuild]建造组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/canbuild.md","filePath":"src/Unit/canbuild.md"}'),r={name:"src/Unit/canbuild.md"},d=e("",64),h={class:"tip custom-block"},u=s("p",{class:"custom-block-title"},"TIP",-1),k=s("br",null,null,-1),b=e("",59);function m(g,A,y,C,q,D){const l=i("font");return o(),c("div",null,[d,s("div",h,[u,s("p",null,[a("可以用来告知玩家被锁定原因。"),k,a(" 能够通过转义字符 "),t(l,{color:"red"},{default:p(()=>[a("\\n")]),_:1}),a(" 实现文本换行。")])]),b])}const v=n(r,[["render",m]]);export{_ as __pageData,v as default};
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as t,H as o,o as r,c,C as e,a,J as n,E as l,V as i}from"./chunks/framework.ba757cb9.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i(`<h1 id="core-组" tabindex="-1"><strong>[core]组</strong> <a class="header-anchor" href="#core-组" aria-label="Permalink to "**[core]组**""></a></h1><h2 id="第一类-通用代码组" tabindex="-1">第一类-通用代码组 <a class="header-anchor" href="#第一类-通用代码组" aria-label="Permalink to "第一类-通用代码组""></a></h2><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>以下的代码为<code>通用代码</code>,多半是必要的代码,如果不包括这些,可能在<code>绝大多数情况下导致错误</code>。</p></div><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h3><h4 id="name-代码简介" tabindex="-1">name-代码简介 <a class="header-anchor" href="#name-代码简介" aria-label="Permalink to "name-代码简介""></a></h4><p>代码:name 中文释义:名字 类型:字符型 隶属于:通用代码组</p><h4 id="name-要点指示" tabindex="-1">name-要点指示 <a class="header-anchor" href="#name-要点指示" aria-label="Permalink to "name-要点指示""></a></h4><hr><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-tcjiB" id="tab-DfgSRlE" checked="checked"><label for="tab-DfgSRlE">JDSALing</label><input type="radio" name="group-tcjiB" id="tab-haY99vq"><label for="tab-haY99vq">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">定义单位原始名称,可以是中文。</span></span>
|
||||
import{_ as t,H as o,o as r,c,C as e,a,J as n,E as l,V as i}from"./chunks/framework.2b043b9b.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i(`<h1 id="core-组" tabindex="-1"><strong>[core]组</strong> <a class="header-anchor" href="#core-组" aria-label="Permalink to "**[core]组**""></a></h1><h2 id="第一类-通用代码组" tabindex="-1">第一类-通用代码组 <a class="header-anchor" href="#第一类-通用代码组" aria-label="Permalink to "第一类-通用代码组""></a></h2><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>以下的代码为<code>通用代码</code>,多半是必要的代码,如果不包括这些,可能在<code>绝大多数情况下导致错误</code>。</p></div><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h3><h4 id="name-代码简介" tabindex="-1">name-代码简介 <a class="header-anchor" href="#name-代码简介" aria-label="Permalink to "name-代码简介""></a></h4><p>代码:name 中文释义:名字 类型:字符型 隶属于:通用代码组</p><h4 id="name-要点指示" tabindex="-1">name-要点指示 <a class="header-anchor" href="#name-要点指示" aria-label="Permalink to "name-要点指示""></a></h4><hr><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-2qJhE" id="tab-Sb-3cWk" checked="checked"><label for="tab-Sb-3cWk">JDSALing</label><input type="radio" name="group-2qJhE" id="tab-ODXdfXW"><label for="tab-ODXdfXW">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">定义单位原始名称,可以是中文。</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">游戏使用它区分其它单位。</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">如果没有在[displayText或者语言文件设置显示名称],</span></span>
|
||||
|
@ -16,13 +16,13 @@ import{_ as t,H as o,o as r,c,C as e,a,J as n,E as l,V as i}from"./chunks/framew
|
|||
<span class="line"><span style="color:#A6ACCD;">displayText_zh:中文标题</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription: -English Description</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription_zh:-中文描述</span></span></code></pre></div><hr><h3 id="price" tabindex="-1">price <a class="header-anchor" href="#price" aria-label="Permalink to "price""></a></h3><h4 id="price-代码简介" tabindex="-1">price-代码简介 <a class="header-anchor" href="#price-代码简介" aria-label="Permalink to "price-代码简介""></a></h4><p>代码:price 中文释义:价格 类型:整数 隶属于:通用代码组</p><h4 id="price-要点指示" tabindex="-1">price-要点指示 <a class="header-anchor" href="#price-要点指示" aria-label="Permalink to "price-要点指示""></a></h4><p>定义单位的价格,显示在单位信息中,建造时也以此价格为准。</p><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-L5vPj" id="tab-TznU_iO" checked="checked"><label for="tab-TznU_iO">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">默认情况下,price只需要填写一个整数,此时使用的是游戏内自带的资金credit;</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription_zh:-中文描述</span></span></code></pre></div><hr><h3 id="price" tabindex="-1">price <a class="header-anchor" href="#price" aria-label="Permalink to "price""></a></h3><h4 id="price-代码简介" tabindex="-1">price-代码简介 <a class="header-anchor" href="#price-代码简介" aria-label="Permalink to "price-代码简介""></a></h4><p>代码:price 中文释义:价格 类型:整数 隶属于:通用代码组</p><h4 id="price-要点指示" tabindex="-1">price-要点指示 <a class="header-anchor" href="#price-要点指示" aria-label="Permalink to "price-要点指示""></a></h4><p>定义单位的价格,显示在单位信息中,建造时也以此价格为准。</p><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-WZL2q" id="tab-_G-eS36" checked="checked"><label for="tab-_G-eS36">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">默认情况下,price只需要填写一个整数,此时使用的是游戏内自带的资金credit;</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">想要更改资源类型,可以使用:</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">\`</span><span style="color:#FFCB6B;">price:资源1</span><span style="color:#C3E88D;">=数值1,资源2=数值2,资源3=数值3,……</span><span style="color:#89DDFF;">\`</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">的格式</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">(前提是此资源要在使用的单位进行定义)。</span></span></code></pre></div></div></div><h4 id="price-演示例子" tabindex="-1">price-演示例子 <a class="header-anchor" href="#price-演示例子" aria-label="Permalink to "price-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">price:120,石油=80,铁=60</span></span></code></pre></div><hr><h3 id="radius" tabindex="-1">radius <a class="header-anchor" href="#radius" aria-label="Permalink to "radius""></a></h3><h4 id="radius-代码简介" tabindex="-1">radius-代码简介 <a class="header-anchor" href="#radius-代码简介" aria-label="Permalink to "radius-代码简介""></a></h4><p>代码:radius 中文释义:半径 类型:整数 隶属于:通用代码组</p><h4 id="radius-要点指示" tabindex="-1">radius-要点指示 <a class="header-anchor" href="#radius-要点指示" aria-label="Permalink to "radius-要点指示""></a></h4><p>半径定义单位的<code>实际碰撞体积和显示范围</code>,在未设置<code>选择框大小</code>时,半径决定是单位选择框的大小。 半径的单位是像素(px)。</p><h4 id="radius-演示例子" tabindex="-1">radius-演示例子 <a class="header-anchor" href="#radius-演示例子" aria-label="Permalink to "radius-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">radius:20</span></span></code></pre></div><hr><h3 id="mass" tabindex="-1">mass <a class="header-anchor" href="#mass" aria-label="Permalink to "mass""></a></h3><h4 id="mass-代码简介" tabindex="-1">mass-代码简介 <a class="header-anchor" href="#mass-代码简介" aria-label="Permalink to "mass-代码简介""></a></h4><p>代码:mass 中文释义:质量 类型:整数 隶属于:通用代码组</p><h4 id="mass-要点指示" tabindex="-1">mass-要点指示 <a class="header-anchor" href="#mass-要点指示" aria-label="Permalink to "mass-要点指示""></a></h4><p>质量决定单位在各种碰撞时的效果。<code>质量越大,其他单位越难推动</code>。</p><h4 id="mass-演示例子" tabindex="-1">mass-演示例子 <a class="header-anchor" href="#mass-演示例子" aria-label="Permalink to "mass-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">mass:2000</span></span></code></pre></div><hr><h3 id="maxhp" tabindex="-1">maxHp <a class="header-anchor" href="#maxhp" aria-label="Permalink to "maxHp""></a></h3><h4 id="maxhp-代码简介" tabindex="-1">maxHp-代码简介 <a class="header-anchor" href="#maxhp-代码简介" aria-label="Permalink to "maxHp-代码简介""></a></h4><p>代码:maxHp 中文释义:最大生命值 类型:整数 隶属于:通用代码组</p><h4 id="maxhp-要点指示" tabindex="-1">maxHp-要点指示 <a class="header-anchor" href="#maxhp-要点指示" aria-label="Permalink to "maxHp-要点指示""></a></h4><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-u7y1m" id="tab-T8b09CO" checked="checked"><label for="tab-T8b09CO">tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">最大生命值定义单位在不修改它时最多能够有多少血量,</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">mass:2000</span></span></code></pre></div><hr><h3 id="maxhp" tabindex="-1">maxHp <a class="header-anchor" href="#maxhp" aria-label="Permalink to "maxHp""></a></h3><h4 id="maxhp-代码简介" tabindex="-1">maxHp-代码简介 <a class="header-anchor" href="#maxhp-代码简介" aria-label="Permalink to "maxHp-代码简介""></a></h4><p>代码:maxHp 中文释义:最大生命值 类型:整数 隶属于:通用代码组</p><h4 id="maxhp-要点指示" tabindex="-1">maxHp-要点指示 <a class="header-anchor" href="#maxhp-要点指示" aria-label="Permalink to "maxHp-要点指示""></a></h4><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-EAFcj" id="tab--a1koH-" checked="checked"><label for="tab--a1koH-">tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">最大生命值定义单位在不修改它时最多能够有多少血量,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">单位默认生成时即是这个血量。</span></span>
|
||||
<span class="line"><span style="color:#82AAFF;">maxHp可以通过单位参考.maxHp</span><span style="color:#89DDFF;">()</span><span style="color:#A6ACCD;">来获取,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">也可以通过[action]进行修改。</span></span></code></pre></div></div></div><h4 id="maxhp-演示例子" tabindex="-1">maxHp-演示例子 <a class="header-anchor" href="#maxhp-演示例子" aria-label="Permalink to "maxHp-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
|
@ -61,7 +61,7 @@ import{_ as t,H as o,o as r,c,C as e,a,J as n,E as l,V as i}from"./chunks/framew
|
|||
<span class="line"><span style="color:#676E95;font-style:italic;">#如果受到40以下的常规攻击,则进行最低伤害判定</span></span></code></pre></div><hr><h3 id="borrowresourceswhilealive" tabindex="-1">borrowResourcesWhileAlive <a class="header-anchor" href="#borrowresourceswhilealive" aria-label="Permalink to "borrowResourcesWhileAlive""></a></h3><h4 id="borrowresourceswhilealive-代码简介" tabindex="-1">borrowResourcesWhileAlive-代码简介 <a class="header-anchor" href="#borrowresourceswhilealive-代码简介" aria-label="Permalink to "borrowResourcesWhileAlive-代码简介""></a></h4><p>代码:armour 中文释义:资源活着时借用 类型:Price型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>创建时获取这些资源,删除或销毁时将其返回。 例如用于电力逻辑,负数供电和正数耗电。</p></div><h4 id="borrowresourceswhilealive-演示例子" tabindex="-1">borrowResourcesWhileAlive-演示例子 <a class="header-anchor" href="#borrowresourceswhilealive-演示例子" aria-label="Permalink to "borrowResourcesWhileAlive-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">borrowResourcesWhileAlive:5000</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#单位活着的时候给予5000金币,死亡扣除5000金币</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#一个小型贷款系统,</span></span></code></pre></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-B8_Vs" id="tab-7Kkp7vS" checked="checked"><label for="tab-7Kkp7vS">考考你</label><input type="radio" name="group-B8_Vs" id="tab-50ayUmh"><label for="tab-50ayUmh">显示答案</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">如果这里要通过这个代码做一个小的贷款系统,</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#一个小型贷款系统,</span></span></code></pre></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-VvTu5" id="tab-ejTzIRg" checked="checked"><label for="tab-ejTzIRg">考考你</label><input type="radio" name="group-VvTu5" id="tab-3S5ev8K"><label for="tab-3S5ev8K">显示答案</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">如果这里要通过这个代码做一个小的贷款系统,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">并经过一段时间让单位死亡。</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">只需要4行代码即可实现,试试看。</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">提示:dieOnZeroEnergy:true</span></span>
|
|
@ -1 +1 @@
|
|||
import{_ as t,H as o,o as r,c,C as e,a,J as n,E as l,V as i}from"./chunks/framework.ba757cb9.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i("",51),h=e("br",null,null,-1),u=i("",20),b={class:"tip custom-block"},g=e("p",{class:"custom-block-title"},"TIP",-1),m=e("br",null,null,-1),y=e("br",null,null,-1),C=i("",13),k={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),q=e("br",null,null,-1),v=e("br",null,null,-1),x=i("",77),D={class:"tip custom-block"},A=e("p",{class:"custom-block-title"},"TIP",-1),P=i("",183);function F(_,T,R,w,B,I){const s=o("font");return r(),c("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[g,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),m,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),v,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
||||
import{_ as t,H as o,o as r,c,C as e,a,J as n,E as l,V as i}from"./chunks/framework.2b043b9b.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i("",51),h=e("br",null,null,-1),u=i("",20),b={class:"tip custom-block"},g=e("p",{class:"custom-block-title"},"TIP",-1),m=e("br",null,null,-1),y=e("br",null,null,-1),C=i("",13),k={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),q=e("br",null,null,-1),v=e("br",null,null,-1),x=i("",77),D={class:"tip custom-block"},A=e("p",{class:"custom-block-title"},"TIP",-1),P=i("",183);function F(_,T,R,w,B,I){const s=o("font");return r(),c("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[g,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),m,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),v,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
170
assets/src_Unit_graphics.md.63a0d5e4.js
Normal file
170
assets/src_Unit_graphics.md.63a0d5e4.js
Normal file
|
@ -0,0 +1,170 @@
|
|||
import{_ as a,o as e,c as s,V as n}from"./chunks/framework.2b043b9b.js";const f=JSON.parse('{"title":"[graphics]图像组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/graphics.md","filePath":"src/Unit/graphics.md"}'),l={name:"src/Unit/graphics.md"},t=n(`<h1 id="graphics-图像组" tabindex="-1"><strong>[graphics]图像组</strong> <a class="header-anchor" href="#graphics-图像组" aria-label="Permalink to "**[graphics]图像组**""></a></h1><h3 id="image" tabindex="-1">image <a class="header-anchor" href="#image" aria-label="Permalink to "image""></a></h3><h4 id="image-代码简介" tabindex="-1">image-代码简介 <a class="header-anchor" href="#image-代码简介" aria-label="Permalink to "image-代码简介""></a></h4><p>代码:image 中文释义:图像 类型:字符型</p><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>如果需要隐藏单位的图像请使用空白透明的图像替代。<br> 请勿直接忽略此项,会直接报错导致此单位代码无法加载。</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>铁锈战争支持多种图片格式,如:jpg,png,bmp...等,但也有一部分的格式并不支持,如webp这种的。<br> 尽量使用png格式的图片也许不失为一个好的选择。</p></div><h4 id="image-用法" tabindex="-1">image-用法 <a class="header-anchor" href="#image-用法" aria-label="Permalink to "image-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的主体图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>路径可使用相对路径或绝对路径。<br> 绝对路径中的根目录是以模组包内的首层目录为根目录的。<br> 相对路径则是以ini代码文件的目录为起始目录。<br> 图片和代码在同一目录下直接填写路径的用法相当于使用了相对路径。<br> 此方法基本适用于[graphics]组内所有需要引用图像文件的地方。</p></div><h4 id="image-示例" tabindex="-1">image-示例 <a class="header-anchor" href="#image-示例" aria-label="Permalink to "image-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image: ROOT:\\124\\255\\tank.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image: \\124\\255\\tank.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="image-back" tabindex="-1">image_back <a class="header-anchor" href="#image-back" aria-label="Permalink to "image_back""></a></h3><h4 id="image-back-代码简介" tabindex="-1">image_back-代码简介 <a class="header-anchor" href="#image-back-代码简介" aria-label="Permalink to "image_back-代码简介""></a></h4><p>代码:image_back 中文释义:背景图像 类型:字符型</p><h4 id="image-back-用法" tabindex="-1">image_back-用法 <a class="header-anchor" href="#image-back-用法" aria-label="Permalink to "image_back-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的背景图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>在单位后面后面绘制的图像,不随单位转动。<br> 如无需要可以选择不填,可以作为单位角标和工厂底图使用。</p></div><h4 id="image-back-示例" tabindex="-1">image_back-示例 <a class="header-anchor" href="#image-back-示例" aria-label="Permalink to "image_back-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_back: ROOT:\\124\\255\\background.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_back: \\124\\255\\background.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="image-wreak" tabindex="-1">image_wreak <a class="header-anchor" href="#image-wreak" aria-label="Permalink to "image_wreak""></a></h3><h4 id="image-wreak-代码简介" tabindex="-1">image_wreak-代码简介 <a class="header-anchor" href="#image-wreak-代码简介" aria-label="Permalink to "image_wreak-代码简介""></a></h4><p>代码:image_wreak 中文释义:死亡图像 类型:字符型</p><h4 id="image-wreak-用法" tabindex="-1">image_wreak-用法 <a class="header-anchor" href="#image-wreak-用法" aria-label="Permalink to "image_wreak-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的死亡图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>作为在单位后面死亡后绘制的图像。<br> 不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>如果不填死亡图像,默认将以单位的主体图像作为死亡图像使用。</p></div><h4 id="image-wreak-示例" tabindex="-1">image_wreak-示例 <a class="header-anchor" href="#image-wreak-示例" aria-label="Permalink to "image_wreak-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: ROOT:\\124\\255\\image_wreak.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: \\124\\255\\image_wreak.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: NONE</span></span></code></pre></div><h3 id="image-shield" tabindex="-1">image_shield <a class="header-anchor" href="#image-shield" aria-label="Permalink to "image_shield""></a></h3><h4 id="image-shield-代码简介" tabindex="-1">image_shield-代码简介 <a class="header-anchor" href="#image-shield-代码简介" aria-label="Permalink to "image_shield-代码简介""></a></h4><p>代码:image_shield 中文释义:护盾图像 类型:字符型</p><h4 id="image-shield-用法" tabindex="-1">image_shield-用法 <a class="header-anchor" href="#image-shield-用法" aria-label="Permalink to "image_shield-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的护盾图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>作为在单位的护盾所绘制的图像。<br> 本项仅作为自定义护盾图像使用,如设置护盾且未填此项时将使用默认护盾。<br> 不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。</p></div><h4 id="image-shield-示例" tabindex="-1">image_shield-示例 <a class="header-anchor" href="#image-shield-示例" aria-label="Permalink to "image_shield-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: ROOT:\\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: \\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: NONE</span></span></code></pre></div><h3 id="image-offsetx" tabindex="-1">image_offsetX <a class="header-anchor" href="#image-offsetx" aria-label="Permalink to "image_offsetX""></a></h3><h4 id="image-offsetx-代码简介" tabindex="-1">image_offsetX-代码简介 <a class="header-anchor" href="#image-offsetx-代码简介" aria-label="Permalink to "image_offsetX-代码简介""></a></h4><p>代码:image_offsetX 中文释义:图像X轴偏移 类型:整数</p><h4 id="image-offsetx-用法" tabindex="-1">image_offsetX-用法 <a class="header-anchor" href="#image-offsetx-用法" aria-label="Permalink to "image_offsetX-用法""></a></h4><p>作用于主体图像,填写的数值会作为偏移的像素大小,可以为负。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>偏移的方向依据X的数值而定。<br> X轴以单位中心点为坐标,X增大则图像向右偏移。</p></div><h4 id="image-offsetx-示例" tabindex="-1">image_offsetX-示例 <a class="header-anchor" href="#image-offsetx-示例" aria-label="Permalink to "image_offsetX-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_offsetX:1 </span><span style="color:#676E95;font-style:italic;"># 偏移量为 1</span></span></code></pre></div><h3 id="image-offsety" tabindex="-1">image_offsetY <a class="header-anchor" href="#image-offsety" aria-label="Permalink to "image_offsetY""></a></h3><h4 id="image-offsety-代码简介" tabindex="-1">image_offsetY-代码简介 <a class="header-anchor" href="#image-offsety-代码简介" aria-label="Permalink to "image_offsetY-代码简介""></a></h4><p>代码:image_offsetY 中文释义:图像Y轴偏移 类型:整数</p><h4 id="image-offsety-用法" tabindex="-1">image_offsetY-用法 <a class="header-anchor" href="#image-offsety-用法" aria-label="Permalink to "image_offsetY-用法""></a></h4><p>作用于主体图像,填写的数值会作为偏移的像素大小,可以为负。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>偏移的方向依据Y的数值而定。<br> X轴以单位中心点为坐标,Y增大则图像向下偏移。</p></div><h4 id="image-offsety-示例" tabindex="-1">image_offsetY-示例 <a class="header-anchor" href="#image-offsety-示例" aria-label="Permalink to "image_offsetY-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_offsetY:1 </span><span style="color:#676E95;font-style:italic;"># 偏移量为 1</span></span></code></pre></div><h3 id="isvisible" tabindex="-1">isVisible <a class="header-anchor" href="#isvisible" aria-label="Permalink to "isVisible""></a></h3><h4 id="isvisible-代码简介" tabindex="-1">isVisible-代码简介 <a class="header-anchor" href="#isvisible-代码简介" aria-label="Permalink to "isVisible-代码简介""></a></h4><p>代码:isVisible 中文释义:可见 类型:逻辑布尔值</p><h4 id="isvisible-用法" tabindex="-1">isVisible-用法 <a class="header-anchor" href="#isvisible-用法" aria-label="Permalink to "isVisible-用法""></a></h4><p>填写布尔值或逻辑判断语句,作用于全部图像,会决定单位图像是否可见。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认值为true。<br> 即使图像隐藏,在小地图上还是可以看见的。</p></div><h4 id="isvisible-示例" tabindex="-1">isVisible-示例 <a class="header-anchor" href="#isvisible-示例" aria-label="Permalink to "isVisible-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisible:false </span><span style="color:#676E95;font-style:italic;"># 使用布尔值</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisible:if self.hp() > 200 </span><span style="color:#676E95;font-style:italic;"># 使用逻辑语句</span></span></code></pre></div><h3 id="isvisibletoenemies" tabindex="-1">isVisibleToEnemies <a class="header-anchor" href="#isvisibletoenemies" aria-label="Permalink to "isVisibleToEnemies""></a></h3><h4 id="isvisibletoenemies-代码简介" tabindex="-1">isVisibleToEnemies-代码简介 <a class="header-anchor" href="#isvisibletoenemies-代码简介" aria-label="Permalink to "isVisibleToEnemies-代码简介""></a></h4><p>代码:isVisibleToEnemies 中文释义:对敌人可见 类型:逻辑布尔值</p><h4 id="isvisibletoenemies-用法" tabindex="-1">isVisibleToEnemies-用法 <a class="header-anchor" href="#isvisibletoenemies-用法" aria-label="Permalink to "isVisibleToEnemies-用法""></a></h4><p>填写布尔值或逻辑判断语句,作用于全部图像,会决定单位图像是否被敌人可见。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>与showOnMinimapToEnemies,canOnlyBeAttackedByUnitsWithTags一起使用时,可以创建隐形系统。<br> (抄自HX代码表)</p></div><h4 id="isvisibletoenemies-示例" tabindex="-1">isVisibleToEnemies-示例 <a class="header-anchor" href="#isvisibletoenemies-示例" aria-label="Permalink to "isVisibleToEnemies-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisibleToEnemies:false </span><span style="color:#676E95;font-style:italic;"># 使用布尔值</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisibleToEnemies:if self.hp() > 200 </span><span style="color:#676E95;font-style:italic;"># 使用逻辑语句</span></span></code></pre></div><h3 id="teamcolorsusehue" tabindex="-1">teamColorsUseHue <a class="header-anchor" href="#teamcolorsusehue" aria-label="Permalink to "teamColorsUseHue""></a></h3><h4 id="teamcolorsusehue-代码简介" tabindex="-1">teamColorsUseHue-代码简介 <a class="header-anchor" href="#teamcolorsusehue-代码简介" aria-label="Permalink to "teamColorsUseHue-代码简介""></a></h4><p>代码:teamColorsUseHue 中文释义:阵营色色相 类型:布尔值</p><h4 id="teamcolorsusehue-用法" tabindex="-1">teamColorsUseHue-用法 <a class="header-anchor" href="#teamcolorsusehue-用法" aria-label="Permalink to "teamColorsUseHue-用法""></a></h4><p>填写布尔值决定如何使用,大概就是在单位主体图像上附着一层半透明的阵营色滤镜。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="teamcolorsusehue-示例" tabindex="-1">teamColorsUseHue-示例 <a class="header-anchor" href="#teamcolorsusehue-示例" aria-label="Permalink to "teamColorsUseHue-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColorsUseHue:true </span><span style="color:#676E95;font-style:italic;"># 使用布尔值</span></span></code></pre></div><h3 id="teamcoloringmode" tabindex="-1">teamColoringMode <a class="header-anchor" href="#teamcoloringmode" aria-label="Permalink to "teamColoringMode""></a></h3><h4 id="teamcoloringmode-代码简介" tabindex="-1">teamColoringMode-代码简介 <a class="header-anchor" href="#teamcoloringmode-代码简介" aria-label="Permalink to "teamColoringMode-代码简介""></a></h4><p>代码:teamColoringMode 中文释义:阵营色模式 类型:字符串</p><h4 id="teamcolorsusehue-用法-1" tabindex="-1">teamColorsUseHue-用法 <a class="header-anchor" href="#teamcolorsusehue-用法-1" aria-label="Permalink to "teamColorsUseHue-用法""></a></h4><p>填写对应的字符串选择图像的着色逻辑。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>默认是纯绿,即pureGreen。<br> 一共有disabled、hueShift、hueAdd、pureGreen,四种模式。<br> 中文便是,禁用,色相偏移,色相添加,纯绿。</p></div><h4 id="teamcoloringmode-示例" tabindex="-1">teamColoringMode-示例 <a class="header-anchor" href="#teamcoloringmode-示例" aria-label="Permalink to "teamColoringMode-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:disabled </span><span style="color:#676E95;font-style:italic;"># 禁用 会使单位不使用阵营色</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:hueShift </span><span style="color:#676E95;font-style:italic;"># 色相偏移 颜色会影响周围其他像素的着色</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:hueShift </span><span style="color:#676E95;font-style:italic;"># 色相添加 像极了使用teamColorsUseHue,加了一层颜色滤镜</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:pureGreen </span><span style="color:#676E95;font-style:italic;"># 纯绿 默认就是这个</span></span></code></pre></div><h3 id="scaleimagesto" tabindex="-1">scaleImagesTo <a class="header-anchor" href="#scaleimagesto" aria-label="Permalink to "scaleImagesTo""></a></h3><h4 id="scaleimagesto-代码简介" tabindex="-1">scaleImagesTo-代码简介 <a class="header-anchor" href="#scaleimagesto-代码简介" aria-label="Permalink to "scaleImagesTo-代码简介""></a></h4><p>代码:scaleImagesTo 中文释义:图像缩放到 类型:浮点数</p><h4 id="scaleimagesto-用法" tabindex="-1">scaleImagesTo-用法 <a class="header-anchor" href="#scaleimagesto-用法" aria-label="Permalink to "scaleImagesTo-用法""></a></h4><p>填写单位像素以缩放图像,同时影响腿部和阴影图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>这里的像素大小指的是每帧图像宽度的像素大小。<br> 例如图像原每帧宽度12,这里填24,图像将被等比例放大2倍。</p></div><h4 id="scaleimagesto-示例" tabindex="-1">scaleImagesTo-示例 <a class="header-anchor" href="#scaleimagesto-示例" aria-label="Permalink to "scaleImagesTo-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">scaleImagesTo:12.5</span></span></code></pre></div><h3 id="imagescale" tabindex="-1">imageScale <a class="header-anchor" href="#imagescale" aria-label="Permalink to "imageScale""></a></h3><h4 id="imagescale-代码简介" tabindex="-1">imageScale-代码简介 <a class="header-anchor" href="#imagescale-代码简介" aria-label="Permalink to "imageScale-代码简介""></a></h4><p>代码:imageScale 中文释义:图像缩放比例 类型:浮点数</p><h4 id="imagescale-用法" tabindex="-1">imageScale-用法 <a class="header-anchor" href="#imagescale-用法" aria-label="Permalink to "imageScale-用法""></a></h4><p>填写需要缩放的百分比,缩放单位主体图像的大小。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>效果基本与scaleImagesTo相同,但百分比更为直观。<br> 默认值为1,也就是100%。</p></div><h4 id="imagescale-示例" tabindex="-1">imageScale-示例 <a class="header-anchor" href="#imagescale-示例" aria-label="Permalink to "imageScale-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">imageScale:12.5</span></span></code></pre></div><h3 id="drawlayer" tabindex="-1">drawLayer <a class="header-anchor" href="#drawlayer" aria-label="Permalink to "drawLayer""></a></h3><h4 id="drawlayer-代码简介" tabindex="-1">drawLayer-代码简介 <a class="header-anchor" href="#drawlayer-代码简介" aria-label="Permalink to "drawLayer-代码简介""></a></h4><p>代码:drawLayer 中文释义:绘制图层 类型:字符串</p><h4 id="drawlayer-用法" tabindex="-1">drawLayer-用法 <a class="header-anchor" href="#drawlayer-用法" aria-label="Permalink to "drawLayer-用法""></a></h4><p>填写希望图像所在的图层,以影响单位图像的绘制。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>官方给出了8种可填写的图层样式,具体可见示例。<br> 陆上单位默认图层便是ground或ground2,运输船这类便是ground2。</p></div><h4 id="drawlayer-示例" tabindex="-1">drawLayer-示例 <a class="header-anchor" href="#drawlayer-示例" aria-label="Permalink to "drawLayer-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:ground</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:ground2</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:wreaks</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:underwater</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:bottom</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:experimentals</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:air</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:top</span></span></code></pre></div><h3 id="whenbeingbuiltmaketransparenttill" tabindex="-1">whenBeingBuiltMakeTransparentTill <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill""></a></h3><h4 id="whenbeingbuiltmaketransparenttill-代码简介" tabindex="-1">whenBeingBuiltMakeTransparentTill-代码简介 <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill-代码简介" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill-代码简介""></a></h4><p>代码:whenBeingBuiltMakeTransparentTill 中文释义:建造时透明度 类型:浮点数</p><h4 id="whenbeingbuiltmaketransparenttill-用法" tabindex="-1">whenBeingBuiltMakeTransparentTill-用法 <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill-用法" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill-用法""></a></h4><p>填写0-1之间的小数,以影响建造时的透明度情况。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>若设为0则表示透明度为0,建造一开始就不透明。<br> 设为1则将完全建造时才会不透明。<br> 所谓透明到不透明,也就是从虚影到实体的转变。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>0-1可以理解为0%和100%,取超过100%的数字不会报错但也并没有什么意义。</p></div><h4 id="whenbeingbuiltmaketransparenttill-示例" tabindex="-1">whenBeingBuiltMakeTransparentTill-示例 <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill-示例" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">whenBeingBuiltMakeTransparentTill:0</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">whenBeingBuiltMakeTransparentTill:0.5</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">whenBeingBuiltMakeTransparentTill:1</span></span></code></pre></div><h3 id="icon-zoomed-out" tabindex="-1">icon_zoomed_out <a class="header-anchor" href="#icon-zoomed-out" aria-label="Permalink to "icon_zoomed_out""></a></h3><h4 id="icon-zoomed-out-代码简介" tabindex="-1">icon_zoomed_out-代码简介 <a class="header-anchor" href="#icon-zoomed-out-代码简介" aria-label="Permalink to "icon_zoomed_out-代码简介""></a></h4><p>代码:icon_zoomed_out 中文释义:缩放图标 类型:字符串</p><h4 id="icon-zoomed-out-用法" tabindex="-1">icon_zoomed_out-用法 <a class="header-anchor" href="#icon-zoomed-out-用法" aria-label="Permalink to "icon_zoomed_out-用法""></a></h4><p>填写缩放图标的文件路径,改变单位缩放时显示的图标。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>路径引用规则和文件格式与image相同。<br> 默认图标将根据运动类型或单位类型使用内置的图标。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>绘制图标时请注意图标的大小。<br> 具体可以参考默认图标。<br> 资源文件在游戏根目录\\res\\drawable\\中,安卓安装包同理。</p></div><h4 id="icon-zoomed-out-示例" tabindex="-1">icon_zoomed_out-示例 <a class="header-anchor" href="#icon-zoomed-out-示例" aria-label="Permalink to "icon_zoomed_out-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out:mytubiao.png</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out:tank_icon.png</span></span></code></pre></div><h3 id="icon-zoomed-out-nevershow" tabindex="-1">icon_zoomed_out_neverShow <a class="header-anchor" href="#icon-zoomed-out-nevershow" aria-label="Permalink to "icon_zoomed_out_neverShow""></a></h3><h4 id="icon-zoomed-out-nevershow-代码简介" tabindex="-1">icon_zoomed_out_neverShow-代码简介 <a class="header-anchor" href="#icon-zoomed-out-nevershow-代码简介" aria-label="Permalink to "icon_zoomed_out_neverShow-代码简介""></a></h4><p>代码:icon_zoomed_out_neverShow 中文释义:缩放图标不显示 类型:布尔值</p><h4 id="icon-zoomed-out-nevershow-用法" tabindex="-1">icon_zoomed_out_neverShow-用法 <a class="header-anchor" href="#icon-zoomed-out-nevershow-用法" aria-label="Permalink to "icon_zoomed_out_neverShow-用法""></a></h4><p>填写布尔值决定缩放图标是否显示。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="icon-zoomed-out-nevershow-示例" tabindex="-1">icon_zoomed_out_neverShow-示例 <a class="header-anchor" href="#icon-zoomed-out-nevershow-示例" aria-label="Permalink to "icon_zoomed_out_neverShow-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out_neverShow:false</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out_neverShow:true</span></span></code></pre></div><h3 id="icon-zoomed-out-nevershow-1" tabindex="-1">icon_zoomed_out_neverShow <a class="header-anchor" href="#icon-zoomed-out-nevershow-1" aria-label="Permalink to "icon_zoomed_out_neverShow""></a></h3><h4 id="icon-zoomed-out-nevershow-代码简介-1" tabindex="-1">icon_zoomed_out_neverShow-代码简介 <a class="header-anchor" href="#icon-zoomed-out-nevershow-代码简介-1" aria-label="Permalink to "icon_zoomed_out_neverShow-代码简介""></a></h4><p>代码:icon_zoomed_out_neverShow 中文释义:缩放图标不显示 类型:布尔值</p><h4 id="icon-zoomed-out-nevershow-用法-1" tabindex="-1">icon_zoomed_out_neverShow-用法 <a class="header-anchor" href="#icon-zoomed-out-nevershow-用法-1" aria-label="Permalink to "icon_zoomed_out_neverShow-用法""></a></h4><p>填写布尔值决定缩放图标是否显示。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="icon-zoomed-out-nevershow-示例-1" tabindex="-1">icon_zoomed_out_neverShow-示例 <a class="header-anchor" href="#icon-zoomed-out-nevershow-示例-1" aria-label="Permalink to "icon_zoomed_out_neverShow-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out_neverShow:false</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out_neverShow:true</span></span></code></pre></div><h3 id="showselectionindicator" tabindex="-1">showSelectionIndicator <a class="header-anchor" href="#showselectionindicator" aria-label="Permalink to "showSelectionIndicator""></a></h3><h4 id="showselectionindicator-代码简介" tabindex="-1">showSelectionIndicator-代码简介 <a class="header-anchor" href="#showselectionindicator-代码简介" aria-label="Permalink to "showSelectionIndicator-代码简介""></a></h4><p>代码:showSelectionIndicator 中文释义:显示选择指示 类型:布尔值</p><h4 id="showselectionindicator-用法" tabindex="-1">showSelectionIndicator-用法 <a class="header-anchor" href="#showselectionindicator-用法" aria-label="Permalink to "showSelectionIndicator-用法""></a></h4><p>填写布尔值决定选择框是否显示。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为true。</p></div><h4 id="showselectionindicator-示例" tabindex="-1">showSelectionIndicator-示例 <a class="header-anchor" href="#showselectionindicator-示例" aria-label="Permalink to "showSelectionIndicator-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">showSelectionIndicator:false</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">showSelectionIndicator:true</span></span></code></pre></div><h3 id="image-offseth" tabindex="-1">image_offsetH <a class="header-anchor" href="#image-offseth" aria-label="Permalink to "image_offsetH""></a></h3><h4 id="image-offseth-代码简介" tabindex="-1">image_offsetH-代码简介 <a class="header-anchor" href="#image-offseth-代码简介" aria-label="Permalink to "image_offsetH-代码简介""></a></h4><p>代码:image_offsetH 中文释义:高度绘制偏移 类型:浮点数</p><h4 id="image-offseth-用法" tabindex="-1">image_offsetH-用法 <a class="header-anchor" href="#image-offseth-用法" aria-label="Permalink to "image_offsetH-用法""></a></h4><p>填写浮点数决定高度的偏移大小。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为true。</p></div><h4 id="image-offseth-示例" tabindex="-1">image_offsetH-示例 <a class="header-anchor" href="#image-offseth-示例" aria-label="Permalink to "image_offsetH-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_offsetH:1</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_offsetH:1.2</span></span></code></pre></div><h3 id="image-turret" tabindex="-1">image_turret <a class="header-anchor" href="#image-turret" aria-label="Permalink to "image_turret""></a></h3><h4 id="image-turret-代码简介" tabindex="-1">image_turret-代码简介 <a class="header-anchor" href="#image-turret-代码简介" aria-label="Permalink to "image_turret-代码简介""></a></h4><p>代码:image_turret 中文释义:炮塔图像 类型:字符串</p><h4 id="image-turret-用法" tabindex="-1">image_turret-用法 <a class="header-anchor" href="#image-turret-用法" aria-label="Permalink to "image_turret-用法""></a></h4><p>填写图像路径,用于给炮塔设置图像文件,也可以在每个炮塔上单独设置。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>设置的炮塔图像会默认应用于所有未设置图像的炮塔上。</p></div><h4 id="image-turret-示例" tabindex="-1">image_turret-示例 <a class="header-anchor" href="#image-turret-示例" aria-label="Permalink to "image_turret-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_turret:ROOT:\\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_turret:\\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="turretimagescale" tabindex="-1">turretImageScale <a class="header-anchor" href="#turretimagescale" aria-label="Permalink to "turretImageScale""></a></h3><h4 id="turretimagescale-代码简介" tabindex="-1">turretImageScale-代码简介 <a class="header-anchor" href="#turretimagescale-代码简介" aria-label="Permalink to "turretImageScale-代码简介""></a></h4><p>代码:turretImageScale 中文释义:炮塔图像比例 类型:浮点数</p><h4 id="turretimagescale-用法" tabindex="-1">turretImageScale-用法 <a class="header-anchor" href="#turretimagescale-用法" aria-label="Permalink to "turretImageScale-用法""></a></h4><p>填写百分比以缩放图像,仅影响炮塔。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>和imageScale用法一致。</p></div><h4 id="turretimagescale-示例" tabindex="-1">turretImageScale-示例 <a class="header-anchor" href="#turretimagescale-示例" aria-label="Permalink to "turretImageScale-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turretImageScale:0.1</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turretImageScale:2</span></span></code></pre></div><h3 id="scaleturretimagesto" tabindex="-1">scaleTurretImagesTo <a class="header-anchor" href="#scaleturretimagesto" aria-label="Permalink to "scaleTurretImagesTo""></a></h3><h4 id="scaleturretimagesto-代码简介" tabindex="-1">scaleTurretImagesTo-代码简介 <a class="header-anchor" href="#scaleturretimagesto-代码简介" aria-label="Permalink to "scaleTurretImagesTo-代码简介""></a></h4><p>代码:scaleTurretImagesTo 中文释义:将炮塔图像缩放到 类型:浮点数</p><h4 id="scaleturretimagesto-用法" tabindex="-1">scaleTurretImagesTo-用法 <a class="header-anchor" href="#scaleturretimagesto-用法" aria-label="Permalink to "scaleTurretImagesTo-用法""></a></h4><p>填写像素将炮塔图像大小缩放到指定像素。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>仅用填写宽度。</p></div><h4 id="scaleturretimagesto-示例" tabindex="-1">scaleTurretImagesTo-示例 <a class="header-anchor" href="#scaleturretimagesto-示例" aria-label="Permalink to "scaleTurretImagesTo-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">scaleTurretImagesTo:11.2</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">scaleTurretImagesTo:33</span></span></code></pre></div><h3 id="teamcolorsonturret" tabindex="-1">teamColorsOnTurret <a class="header-anchor" href="#teamcolorsonturret" aria-label="Permalink to "teamColorsOnTurret""></a></h3><h4 id="teamcolorsonturret-代码简介" tabindex="-1">teamColorsOnTurret-代码简介 <a class="header-anchor" href="#teamcolorsonturret-代码简介" aria-label="Permalink to "teamColorsOnTurret-代码简介""></a></h4><p>代码:teamColorsOnTurret 中文释义:炮塔图像使用阵营色 类型:布尔值</p><h4 id="teamcolorsonturret-用法" tabindex="-1">teamColorsOnTurret-用法 <a class="header-anchor" href="#teamcolorsonturret-用法" aria-label="Permalink to "teamColorsOnTurret-用法""></a></h4><p>填写布尔值决定炮塔图像是否使用阵营色。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="teamcolorsonturret-示例" tabindex="-1">teamColorsOnTurret-示例 <a class="header-anchor" href="#teamcolorsonturret-示例" aria-label="Permalink to "teamColorsOnTurret-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColorsOnTurret:true </span><span style="color:#676E95;font-style:italic;">#使用</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColorsOnTurret:false </span><span style="color:#676E95;font-style:italic;">#默认就是不用,可省略</span></span></code></pre></div><h3 id="lock-body-rotation-with-main-turret" tabindex="-1">lock_body_rotation_with_main_turret <a class="header-anchor" href="#lock-body-rotation-with-main-turret" aria-label="Permalink to "lock_body_rotation_with_main_turret""></a></h3><h4 id="lock-body-rotation-with-main-turret-代码简介" tabindex="-1">lock_body_rotation_with_main_turret-代码简介 <a class="header-anchor" href="#lock-body-rotation-with-main-turret-代码简介" aria-label="Permalink to "lock_body_rotation_with_main_turret-代码简介""></a></h4><p>代码:lock_body_rotation_with_main_turret 中文释义:锁定主体旋转随主炮塔 类型:布尔值</p><h4 id="lock-body-rotation-with-main-turret-用法" tabindex="-1">lock_body_rotation_with_main_turret-用法 <a class="header-anchor" href="#lock-body-rotation-with-main-turret-用法" aria-label="Permalink to "lock_body_rotation_with_main_turret-用法""></a></h4><p>填写布尔值决定锁定主体图像是否旋转追随主炮塔图像。</p><h4 id="lock-body-rotation-with-main-turret-示例" tabindex="-1">lock_body_rotation_with_main_turret-示例 <a class="header-anchor" href="#lock-body-rotation-with-main-turret-示例" aria-label="Permalink to "lock_body_rotation_with_main_turret-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lock_body_rotation_with_main_turret:true </span><span style="color:#676E95;font-style:italic;">#使用</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lock_body_rotation_with_main_turret:false </span><span style="color:#676E95;font-style:italic;">#默认就是不用,可省略</span></span></code></pre></div><h3 id="lock-leg-rotation-with-main-turret" tabindex="-1">lock_leg_rotation_with_main_turret <a class="header-anchor" href="#lock-leg-rotation-with-main-turret" aria-label="Permalink to "lock_leg_rotation_with_main_turret""></a></h3><h4 id="lock-leg-rotation-with-main-turret-代码简介" tabindex="-1">lock_leg_rotation_with_main_turret-代码简介 <a class="header-anchor" href="#lock-leg-rotation-with-main-turret-代码简介" aria-label="Permalink to "lock_leg_rotation_with_main_turret-代码简介""></a></h4><p>代码:lock_leg_rotation_with_main_turret 中文释义:锁定腿脚旋转随主炮塔 类型:布尔值</p><h4 id="lock-leg-rotation-with-main-turret-用法" tabindex="-1">lock_leg_rotation_with_main_turret-用法 <a class="header-anchor" href="#lock-leg-rotation-with-main-turret-用法" aria-label="Permalink to "lock_leg_rotation_with_main_turret-用法""></a></h4><p>填写布尔值决定锁定腿脚图像是否旋转追随主炮塔图像。</p><h4 id="lock-leg-rotation-with-main-turret-示例" tabindex="-1">lock_leg_rotation_with_main_turret-示例 <a class="header-anchor" href="#lock-leg-rotation-with-main-turret-示例" aria-label="Permalink to "lock_leg_rotation_with_main_turret-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lock_leg_rotation_with_main_turret:true </span><span style="color:#676E95;font-style:italic;">#使用</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lock_leg_rotation_with_main_turret:false </span><span style="color:#676E95;font-style:italic;">#默认就是不用,可省略</span></span></code></pre></div><h3 id="image-shadow" tabindex="-1">image_shadow <a class="header-anchor" href="#image-shadow" aria-label="Permalink to "image_shadow""></a></h3><h4 id="image-shadow-代码简介" tabindex="-1">image_shadow-代码简介 <a class="header-anchor" href="#image-shadow-代码简介" aria-label="Permalink to "image_shadow-代码简介""></a></h4><p>代码:image_shadow 中文释义:阴影图像 类型:字符串</p><h4 id="image-shadow-用法" tabindex="-1">image_shadow-用法 <a class="header-anchor" href="#image-shadow-用法" aria-label="Permalink to "image_shadow-用法""></a></h4><p>填写填NONE或AUTO,或图像文件的路径,决定该单位使用哪种阴影图像。</p><h4 id="image-shadow-示例" tabindex="-1">image_shadow-示例 <a class="header-anchor" href="#image-shadow-示例" aria-label="Permalink to "image_shadow-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shadow:NONE </span><span style="color:#676E95;font-style:italic;">#不使用阴影图像</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shadow:AUTO </span><span style="color:#676E95;font-style:italic;">#使用自动生成的阴影图像</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shadow:./shadow/shadowA.png </span><span style="color:#676E95;font-style:italic;">#使用自定义的阴影图像</span></span></code></pre></div><h3 id="shadowoffsetx" tabindex="-1">shadowOffsetX <a class="header-anchor" href="#shadowoffsetx" aria-label="Permalink to "shadowOffsetX""></a></h3><h4 id="shadowoffsetx-代码简介" tabindex="-1">shadowOffsetX-代码简介 <a class="header-anchor" href="#shadowoffsetx-代码简介" aria-label="Permalink to "shadowOffsetX-代码简介""></a></h4><p>代码:shadowOffsetX 中文释义:阴影图像偏移X轴 类型:浮点数</p><h4 id="shadowoffsetx-用法" tabindex="-1">shadowOffsetX-用法 <a class="header-anchor" href="#shadowoffsetx-用法" aria-label="Permalink to "shadowOffsetX-用法""></a></h4><p>作用于阴影图像,填写的数值会作为偏移的像素大小,可以为负。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>偏移的方向依据X的数值而定。<br> X轴以阴影图像中心点为坐标,X增大则图像向右偏移。</p></div><h4 id="shadowoffsetx-示例" tabindex="-1">shadowOffsetX-示例 <a class="header-anchor" href="#shadowoffsetx-示例" aria-label="Permalink to "shadowOffsetX-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shadowOffsetX:14</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shadowOffsetX:-14.5</span></span></code></pre></div><h3 id="shadowoffsety" tabindex="-1">shadowOffsetY <a class="header-anchor" href="#shadowoffsety" aria-label="Permalink to "shadowOffsetY""></a></h3><h4 id="shadowoffsety-代码简介" tabindex="-1">shadowOffsetY-代码简介 <a class="header-anchor" href="#shadowoffsety-代码简介" aria-label="Permalink to "shadowOffsetY-代码简介""></a></h4><p>代码:shadowOffsetY 中文释义:阴影图像偏移Y轴 类型:浮点数</p><h4 id="shadowoffsety-用法" tabindex="-1">shadowOffsetY-用法 <a class="header-anchor" href="#shadowoffsety-用法" aria-label="Permalink to "shadowOffsetY-用法""></a></h4><p>作用于阴影图像,填写的数值会作为偏移的像素大小,可以为负。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>偏移的方向依据Y的数值而定。<br> Y轴以阴影图像中心点为坐标,Y增大则图像向右偏移。</p></div><h4 id="shadowoffsety-示例" tabindex="-1">shadowOffsetY-示例 <a class="header-anchor" href="#shadowoffsety-示例" aria-label="Permalink to "shadowOffsetY-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shadowOffsetY:14</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shadowOffsetY:-14.5</span></span></code></pre></div><h3 id="image-shadow-frames" tabindex="-1">image_shadow_frames <a class="header-anchor" href="#image-shadow-frames" aria-label="Permalink to "image_shadow_frames""></a></h3><h4 id="image-shadow-frames-代码简介" tabindex="-1">image_shadow_frames-代码简介 <a class="header-anchor" href="#image-shadow-frames-代码简介" aria-label="Permalink to "image_shadow_frames-代码简介""></a></h4><p>代码:image_shadow_frames 中文释义:阴影图像指定 类型:布尔值</p><h4 id="image-shadow-frames-用法" tabindex="-1">image_shadow_frames-用法 <a class="header-anchor" href="#image-shadow-frames-用法" aria-label="Permalink to "image_shadow_frames-用法""></a></h4><p>填写布尔值,决定阴影是否随单位移动而改变方向。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>填写为true则不改变。</p></div><h4 id="image-shadow-frames-示例" tabindex="-1">image_shadow_frames-示例 <a class="header-anchor" href="#image-shadow-frames-示例" aria-label="Permalink to "image_shadow_frames-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shadow_frames:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shadow_frames:false</span></span></code></pre></div><h3 id="lock-shadow-rotation-with-main-turret" tabindex="-1">lock_shadow_rotation_with_main_turret <a class="header-anchor" href="#lock-shadow-rotation-with-main-turret" aria-label="Permalink to "lock_shadow_rotation_with_main_turret""></a></h3><h4 id="lock-shadow-rotation-with-main-turret-代码简介" tabindex="-1">lock_shadow_rotation_with_main_turret-代码简介 <a class="header-anchor" href="#lock-shadow-rotation-with-main-turret-代码简介" aria-label="Permalink to "lock_shadow_rotation_with_main_turret-代码简介""></a></h4><p>代码:lock_shadow_rotation_with_main_turret 中文释义:阴影锁定为主炮塔方向 类型:布尔值</p><h4 id="lock-shadow-rotation-with-main-turret-用法" tabindex="-1">lock_shadow_rotation_with_main_turret-用法 <a class="header-anchor" href="#lock-shadow-rotation-with-main-turret-用法" aria-label="Permalink to "lock_shadow_rotation_with_main_turret-用法""></a></h4><p>填写布尔值,决定是否将身体图像阴影锁定到主炮塔的方向。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>填写为true则锁定。</p></div><h4 id="lock-shadow-rotation-with-main-turret-示例" tabindex="-1">lock_shadow_rotation_with_main_turret-示例 <a class="header-anchor" href="#lock-shadow-rotation-with-main-turret-示例" aria-label="Permalink to "lock_shadow_rotation_with_main_turret-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lock_shadow_rotation_with_main_turret:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lock_shadow_rotation_with_main_turret:false</span></span></code></pre></div><h3 id="total-frames" tabindex="-1">total_frames <a class="header-anchor" href="#total-frames" aria-label="Permalink to "total_frames""></a></h3><h4 id="total-frames-代码简介" tabindex="-1">total_frames-代码简介 <a class="header-anchor" href="#total-frames-代码简介" aria-label="Permalink to "total_frames-代码简介""></a></h4><p>代码:total_frames 中文释义:图像帧数 类型:正整数</p><h4 id="total-frames-用法" tabindex="-1">total_frames-用法 <a class="header-anchor" href="#total-frames-用法" aria-label="Permalink to "total_frames-用法""></a></h4><p>填写数字,将图像分割为指定份数,用于动画。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认值为1,第一帧编号为0。</p></div><h4 id="total-frames-示例" tabindex="-1">total_frames-示例 <a class="header-anchor" href="#total-frames-示例" aria-label="Permalink to "total_frames-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">total_frames:5</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">total_frames:3</span></span></code></pre></div><h3 id="frame-width" tabindex="-1">frame_width <a class="header-anchor" href="#frame-width" aria-label="Permalink to "frame_width""></a></h3><h4 id="frame-width-代码简介" tabindex="-1">frame_width-代码简介 <a class="header-anchor" href="#frame-width-代码简介" aria-label="Permalink to "frame_width-代码简介""></a></h4><p>代码:frame_width 中文释义:图像宽度 类型:正整数</p><h4 id="frame-width-用法" tabindex="-1">frame_width-用法 <a class="header-anchor" href="#frame-width-用法" aria-label="Permalink to "frame_width-用法""></a></h4><p>填写像素大小,作为图像的帧宽度。将自动根据图像的帧宽度将图像分割为不同的帧,并覆盖总帧数。</p><h4 id="frame-width-示例" tabindex="-1">frame_width-示例 <a class="header-anchor" href="#frame-width-示例" aria-label="Permalink to "frame_width-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">frame_width:23</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">frame_width:23</span></span></code></pre></div><h3 id="frame-height" tabindex="-1">frame_height <a class="header-anchor" href="#frame-height" aria-label="Permalink to "frame_height""></a></h3><h4 id="frame-height-代码简介" tabindex="-1">frame_height-代码简介 <a class="header-anchor" href="#frame-height-代码简介" aria-label="Permalink to "frame_height-代码简介""></a></h4><p>代码:frame_height 中文释义:图像高度 类型:正整数</p><h4 id="frame-height-用法" tabindex="-1">frame_height-用法 <a class="header-anchor" href="#frame-height-用法" aria-label="Permalink to "frame_height-用法""></a></h4><p>填写像素大小,作为图像帧的高度。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为图像的高度。</p></div><h4 id="frame-height-示例" tabindex="-1">frame_height-示例 <a class="header-anchor" href="#frame-height-示例" aria-label="Permalink to "frame_height-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">frame_height:23</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">frame_height:23</span></span></code></pre></div><h3 id="splasteffect" tabindex="-1">splastEffect <a class="header-anchor" href="#splasteffect" aria-label="Permalink to "splastEffect""></a></h3><h4 id="splasteffect-代码简介" tabindex="-1">splastEffect-代码简介 <a class="header-anchor" href="#splasteffect-代码简介" aria-label="Permalink to "splastEffect-代码简介""></a></h4><p>代码:splastEffect 中文释义:水波效果 类型:布尔值</p><h4 id="splasteffect-用法" tabindex="-1">splastEffect-用法 <a class="header-anchor" href="#splasteffect-用法" aria-label="Permalink to "splastEffect-用法""></a></h4><p>填写布尔值,决定在水上时是否创建水波效果。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>效果为内置的,默认为false。</p></div><h4 id="splasteffect-示例" tabindex="-1">splastEffect-示例 <a class="header-anchor" href="#splasteffect-示例" aria-label="Permalink to "splastEffect-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">splastEffect:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">splastEffect:false</span></span></code></pre></div><h3 id="dusteffect" tabindex="-1">dustEffect <a class="header-anchor" href="#dusteffect" aria-label="Permalink to "dustEffect""></a></h3><h4 id="dusteffect-代码简介" tabindex="-1">dustEffect-代码简介 <a class="header-anchor" href="#dusteffect-代码简介" aria-label="Permalink to "dustEffect-代码简介""></a></h4><p>代码:dustEffect 中文释义:灰尘效果 类型:布尔值</p><h4 id="dusteffect-用法" tabindex="-1">dustEffect-用法 <a class="header-anchor" href="#dusteffect-用法" aria-label="Permalink to "dustEffect-用法""></a></h4><p>填写布尔值,决定在水上时是否创建灰尘效果。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>效果为内置的,默认为false。</p></div><h4 id="dusteffect-示例" tabindex="-1">dustEffect-示例 <a class="header-anchor" href="#dusteffect-示例" aria-label="Permalink to "dustEffect-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">dustEffect:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">dustEffect:false</span></span></code></pre></div><h3 id="splasteffectreverse" tabindex="-1">splastEffectReverse <a class="header-anchor" href="#splasteffectreverse" aria-label="Permalink to "splastEffectReverse""></a></h3><h4 id="splasteffectreverse-代码简介" tabindex="-1">splastEffectReverse-代码简介 <a class="header-anchor" href="#splasteffectreverse-代码简介" aria-label="Permalink to "splastEffectReverse-代码简介""></a></h4><p>代码:splastEffectReverse 中文释义:逆向水波效果 类型:布尔值</p><h4 id="splasteffectreverse-用法" tabindex="-1">splastEffectReverse-用法 <a class="header-anchor" href="#splasteffectreverse-用法" aria-label="Permalink to "splastEffectReverse-用法""></a></h4><p>填写布尔值,决定在水上时倒车时是否产生水波效果。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>效果为内置的,默认为false。</p></div><h4 id="splasteffectreverse-示例" tabindex="-1">splastEffectReverse-示例 <a class="header-anchor" href="#splasteffectreverse-示例" aria-label="Permalink to "splastEffectReverse-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">splastEffectReverse:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">splastEffectReverse:false</span></span></code></pre></div><h3 id="dusteffectreverse" tabindex="-1">dustEffectReverse <a class="header-anchor" href="#dusteffectreverse" aria-label="Permalink to "dustEffectReverse""></a></h3><h4 id="dusteffectreverse-代码简介" tabindex="-1">dustEffectReverse-代码简介 <a class="header-anchor" href="#dusteffectreverse-代码简介" aria-label="Permalink to "dustEffectReverse-代码简介""></a></h4><p>代码:dustEffectReverse 中文释义:逆向灰尘效果 类型:布尔值</p><h4 id="dusteffectreverse-用法" tabindex="-1">dustEffectReverse-用法 <a class="header-anchor" href="#dusteffectreverse-用法" aria-label="Permalink to "dustEffectReverse-用法""></a></h4><p>填写布尔值,决定在水上时倒车时是否产生水波效果。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>效果为内置的,默认为false。</p></div><h4 id="dusteffectreverse-示例" tabindex="-1">dustEffectReverse-示例 <a class="header-anchor" href="#dusteffectreverse-示例" aria-label="Permalink to "dustEffectReverse-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">dustEffectReverse:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">dustEffectReverse:false</span></span></code></pre></div>`,298),o=[t];function i(r,c,p,h,d,m){return e(),s("div",null,o)}const g=a(l,[["render",i]]);export{f as __pageData,g as default};
|
1
assets/src_Unit_graphics.md.63a0d5e4.lean.js
Normal file
1
assets/src_Unit_graphics.md.63a0d5e4.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as a,o as e,c as s,V as n}from"./chunks/framework.2b043b9b.js";const f=JSON.parse('{"title":"[graphics]图像组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/graphics.md","filePath":"src/Unit/graphics.md"}'),l={name:"src/Unit/graphics.md"},t=n("",298),o=[t];function i(r,c,p,h,d,m){return e(),s("div",null,o)}const g=a(l,[["render",i]]);export{f as __pageData,g as default};
|
|
@ -1,83 +0,0 @@
|
|||
import{_ as a,o as e,c as s,V as n}from"./chunks/framework.ba757cb9.js";const g=JSON.parse('{"title":"[graphics]图像组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/graphics.md","filePath":"src/Unit/graphics.md"}'),l={name:"src/Unit/graphics.md"},i=n(`<h1 id="graphics-图像组" tabindex="-1"><strong>[graphics]图像组</strong> <a class="header-anchor" href="#graphics-图像组" aria-label="Permalink to "**[graphics]图像组**""></a></h1><h3 id="image" tabindex="-1">image <a class="header-anchor" href="#image" aria-label="Permalink to "image""></a></h3><h4 id="image-代码简介" tabindex="-1">image-代码简介 <a class="header-anchor" href="#image-代码简介" aria-label="Permalink to "image-代码简介""></a></h4><p>代码:image 中文释义:图像 类型:字符型</p><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>如果需要隐藏单位的图像请使用空白透明的图像替代。<br> 请勿直接忽略此项,会直接报错导致此单位代码无法加载。</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>铁锈战争支持多种图片格式,如:jpg,png,bmp...等,但也有一部分的格式并不支持,如webp这种的。<br> 尽量使用png格式的图片也许不失为一个好的选择。</p></div><h4 id="image-用法" tabindex="-1">image-用法 <a class="header-anchor" href="#image-用法" aria-label="Permalink to "image-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的主体图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>路径可使用相对路径或绝对路径。<br> 绝对路径中的根目录是以模组包内的首层目录为根目录的。<br> 相对路径则是以ini代码文件的目录为起始目录。<br> 图片和代码在同一目录下直接填写路径的用法相当于使用了相对路径。<br> 此方法基本适用于[graphics]组内所有需要引用图像文件的地方。</p></div><h4 id="image-示例" tabindex="-1">image-示例 <a class="header-anchor" href="#image-示例" aria-label="Permalink to "image-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image: ROOT:\\124\\255\\tank.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image: \\124\\255\\tank.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="image-back" tabindex="-1">image_back <a class="header-anchor" href="#image-back" aria-label="Permalink to "image_back""></a></h3><h4 id="image-back-代码简介" tabindex="-1">image_back-代码简介 <a class="header-anchor" href="#image-back-代码简介" aria-label="Permalink to "image_back-代码简介""></a></h4><p>代码:image_back 中文释义:背景图像 类型:字符型</p><h4 id="image-back-用法" tabindex="-1">image_back-用法 <a class="header-anchor" href="#image-back-用法" aria-label="Permalink to "image_back-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的背景图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>在单位后面后面绘制的图像,不随单位转动。<br> 如无需要可以选择不填,可以作为单位角标和工厂底图使用。</p></div><h4 id="image-back-示例" tabindex="-1">image_back-示例 <a class="header-anchor" href="#image-back-示例" aria-label="Permalink to "image_back-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_back: ROOT:\\124\\255\\background.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_back: \\124\\255\\background.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="image-wreak" tabindex="-1">image_wreak <a class="header-anchor" href="#image-wreak" aria-label="Permalink to "image_wreak""></a></h3><h4 id="image-wreak-代码简介" tabindex="-1">image_wreak-代码简介 <a class="header-anchor" href="#image-wreak-代码简介" aria-label="Permalink to "image_wreak-代码简介""></a></h4><p>代码:image_wreak 中文释义:死亡图像 类型:字符型</p><h4 id="image-wreak-用法" tabindex="-1">image_wreak-用法 <a class="header-anchor" href="#image-wreak-用法" aria-label="Permalink to "image_wreak-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的死亡图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>作为在单位后面死亡后绘制的图像。<br> 不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>如果不填死亡图像,默认将以单位的主体图像作为死亡图像使用。</p></div><h4 id="image-wreak-示例" tabindex="-1">image_wreak-示例 <a class="header-anchor" href="#image-wreak-示例" aria-label="Permalink to "image_wreak-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: ROOT:\\124\\255\\image_wreak.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: \\124\\255\\image_wreak.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: NONE</span></span></code></pre></div><h3 id="image-shield" tabindex="-1">image_shield <a class="header-anchor" href="#image-shield" aria-label="Permalink to "image_shield""></a></h3><h4 id="image-shield-代码简介" tabindex="-1">image_shield-代码简介 <a class="header-anchor" href="#image-shield-代码简介" aria-label="Permalink to "image_shield-代码简介""></a></h4><p>代码:image_shield 中文释义:护盾图像 类型:字符型</p><h4 id="image-shield-用法" tabindex="-1">image_shield-用法 <a class="header-anchor" href="#image-shield-用法" aria-label="Permalink to "image_shield-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的护盾图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>作为在单位的护盾所绘制的图像。<br> 本项仅作为自定义护盾图像使用,如设置护盾且未填此项时将使用默认护盾。<br> 不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。</p></div><h4 id="image-shield-示例" tabindex="-1">image_shield-示例 <a class="header-anchor" href="#image-shield-示例" aria-label="Permalink to "image_shield-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: ROOT:\\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: \\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: NONE</span></span></code></pre></div><h3 id="image-offsetx" tabindex="-1">image_offsetX <a class="header-anchor" href="#image-offsetx" aria-label="Permalink to "image_offsetX""></a></h3><h4 id="image-offsetx-代码简介" tabindex="-1">image_offsetX-代码简介 <a class="header-anchor" href="#image-offsetx-代码简介" aria-label="Permalink to "image_offsetX-代码简介""></a></h4><p>代码:image_offsetX 中文释义:图像X轴偏移 类型:整数</p><h4 id="image-offsetx-用法" tabindex="-1">image_offsetX-用法 <a class="header-anchor" href="#image-offsetx-用法" aria-label="Permalink to "image_offsetX-用法""></a></h4><p>作用于主体图像,填写的数值会作为偏移的像素大小,可以为负。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>偏移的方向依据X的数值而定。<br> X轴以单位中心点为坐标,X增大则图像向右偏移。</p></div><h4 id="image-offsetx-示例" tabindex="-1">image_offsetX-示例 <a class="header-anchor" href="#image-offsetx-示例" aria-label="Permalink to "image_offsetX-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_offsetX:1 </span><span style="color:#676E95;font-style:italic;"># 偏移量为 1</span></span></code></pre></div><h3 id="image-offsety" tabindex="-1">image_offsetY <a class="header-anchor" href="#image-offsety" aria-label="Permalink to "image_offsetY""></a></h3><h4 id="image-offsety-代码简介" tabindex="-1">image_offsetY-代码简介 <a class="header-anchor" href="#image-offsety-代码简介" aria-label="Permalink to "image_offsetY-代码简介""></a></h4><p>代码:image_offsetY 中文释义:图像Y轴偏移 类型:整数</p><h4 id="image-offsety-用法" tabindex="-1">image_offsetY-用法 <a class="header-anchor" href="#image-offsety-用法" aria-label="Permalink to "image_offsetY-用法""></a></h4><p>作用于主体图像,填写的数值会作为偏移的像素大小,可以为负。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>偏移的方向依据Y的数值而定。<br> X轴以单位中心点为坐标,Y增大则图像向下偏移。</p></div><h4 id="image-offsety-示例" tabindex="-1">image_offsetY-示例 <a class="header-anchor" href="#image-offsety-示例" aria-label="Permalink to "image_offsetY-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_offsetY:1 </span><span style="color:#676E95;font-style:italic;"># 偏移量为 1</span></span></code></pre></div><h3 id="isvisible" tabindex="-1">isVisible <a class="header-anchor" href="#isvisible" aria-label="Permalink to "isVisible""></a></h3><h4 id="isvisible-代码简介" tabindex="-1">isVisible-代码简介 <a class="header-anchor" href="#isvisible-代码简介" aria-label="Permalink to "isVisible-代码简介""></a></h4><p>代码:isVisible 中文释义:可见 类型:逻辑布尔值</p><h4 id="isvisible-用法" tabindex="-1">isVisible-用法 <a class="header-anchor" href="#isvisible-用法" aria-label="Permalink to "isVisible-用法""></a></h4><p>填写布尔值或逻辑判断语句,作用于全部图像,会决定单位图像是否可见。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认值为true。<br> 即使图像隐藏,在小地图上还是可以看见的。</p></div><h4 id="isvisible-示例" tabindex="-1">isVisible-示例 <a class="header-anchor" href="#isvisible-示例" aria-label="Permalink to "isVisible-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisible:false </span><span style="color:#676E95;font-style:italic;"># 使用布尔值</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisible:if self.hp() > 200 </span><span style="color:#676E95;font-style:italic;"># 使用逻辑语句</span></span></code></pre></div><h3 id="isvisibletoenemies" tabindex="-1">isVisibleToEnemies <a class="header-anchor" href="#isvisibletoenemies" aria-label="Permalink to "isVisibleToEnemies""></a></h3><h4 id="isvisibletoenemies-代码简介" tabindex="-1">isVisibleToEnemies-代码简介 <a class="header-anchor" href="#isvisibletoenemies-代码简介" aria-label="Permalink to "isVisibleToEnemies-代码简介""></a></h4><p>代码:isVisibleToEnemies 中文释义:对敌人可见 类型:逻辑布尔值</p><h4 id="isvisibletoenemies-用法" tabindex="-1">isVisibleToEnemies-用法 <a class="header-anchor" href="#isvisibletoenemies-用法" aria-label="Permalink to "isVisibleToEnemies-用法""></a></h4><p>填写布尔值或逻辑判断语句,作用于全部图像,会决定单位图像是否被敌人可见。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>与showOnMinimapToEnemies,canOnlyBeAttackedByUnitsWithTags一起使用时,可以创建隐形系统。<br> (抄自HX代码表)</p></div><h4 id="isvisibletoenemies-示例" tabindex="-1">isVisibleToEnemies-示例 <a class="header-anchor" href="#isvisibletoenemies-示例" aria-label="Permalink to "isVisibleToEnemies-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisibleToEnemies:false </span><span style="color:#676E95;font-style:italic;"># 使用布尔值</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisibleToEnemies:if self.hp() > 200 </span><span style="color:#676E95;font-style:italic;"># 使用逻辑语句</span></span></code></pre></div><h3 id="teamcolorsusehue" tabindex="-1">teamColorsUseHue <a class="header-anchor" href="#teamcolorsusehue" aria-label="Permalink to "teamColorsUseHue""></a></h3><h4 id="teamcolorsusehue-代码简介" tabindex="-1">teamColorsUseHue-代码简介 <a class="header-anchor" href="#teamcolorsusehue-代码简介" aria-label="Permalink to "teamColorsUseHue-代码简介""></a></h4><p>代码:teamColorsUseHue 中文释义:阵营色色相 类型:布尔值</p><h4 id="teamcolorsusehue-用法" tabindex="-1">teamColorsUseHue-用法 <a class="header-anchor" href="#teamcolorsusehue-用法" aria-label="Permalink to "teamColorsUseHue-用法""></a></h4><p>填写布尔值决定如何使用,大概就是在单位主体图像上附着一层半透明的阵营色滤镜。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="teamcolorsusehue-示例" tabindex="-1">teamColorsUseHue-示例 <a class="header-anchor" href="#teamcolorsusehue-示例" aria-label="Permalink to "teamColorsUseHue-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColorsUseHue:true </span><span style="color:#676E95;font-style:italic;"># 使用布尔值</span></span></code></pre></div><h3 id="teamcoloringmode" tabindex="-1">teamColoringMode <a class="header-anchor" href="#teamcoloringmode" aria-label="Permalink to "teamColoringMode""></a></h3><h4 id="teamcoloringmode-代码简介" tabindex="-1">teamColoringMode-代码简介 <a class="header-anchor" href="#teamcoloringmode-代码简介" aria-label="Permalink to "teamColoringMode-代码简介""></a></h4><p>代码:teamColoringMode 中文释义:阵营色模式 类型:字符串</p><h4 id="teamcolorsusehue-用法-1" tabindex="-1">teamColorsUseHue-用法 <a class="header-anchor" href="#teamcolorsusehue-用法-1" aria-label="Permalink to "teamColorsUseHue-用法""></a></h4><p>填写对应的字符串选择图像的着色逻辑。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>默认是纯绿,即pureGreen。<br> 一共有disabled、hueShift、hueAdd、pureGreen,四种模式。<br> 中文便是,禁用,色相偏移,色相添加,纯绿。</p></div><h4 id="teamcoloringmode-示例" tabindex="-1">teamColoringMode-示例 <a class="header-anchor" href="#teamcoloringmode-示例" aria-label="Permalink to "teamColoringMode-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:disabled </span><span style="color:#676E95;font-style:italic;"># 禁用 会使单位不使用阵营色</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:hueShift </span><span style="color:#676E95;font-style:italic;"># 色相偏移 颜色会影响周围其他像素的着色</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:hueShift </span><span style="color:#676E95;font-style:italic;"># 色相添加 像极了使用teamColorsUseHue,加了一层颜色滤镜</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:pureGreen </span><span style="color:#676E95;font-style:italic;"># 纯绿 默认就是这个</span></span></code></pre></div><h3 id="scaleimagesto" tabindex="-1">scaleImagesTo <a class="header-anchor" href="#scaleimagesto" aria-label="Permalink to "scaleImagesTo""></a></h3><h4 id="scaleimagesto-代码简介" tabindex="-1">scaleImagesTo-代码简介 <a class="header-anchor" href="#scaleimagesto-代码简介" aria-label="Permalink to "scaleImagesTo-代码简介""></a></h4><p>代码:scaleImagesTo 中文释义:图像缩放到 类型:浮点数</p><h4 id="scaleimagesto-用法" tabindex="-1">scaleImagesTo-用法 <a class="header-anchor" href="#scaleimagesto-用法" aria-label="Permalink to "scaleImagesTo-用法""></a></h4><p>填写单位像素以缩放图像,同时影响腿部和阴影图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>这里的像素大小指的是每帧图像宽度的像素大小。<br> 例如图像原每帧宽度12,这里填24,图像将被等比例放大2倍。</p></div><h4 id="scaleimagesto-示例" tabindex="-1">scaleImagesTo-示例 <a class="header-anchor" href="#scaleimagesto-示例" aria-label="Permalink to "scaleImagesTo-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">scaleImagesTo:12.5</span></span></code></pre></div><h3 id="imagescale" tabindex="-1">imageScale <a class="header-anchor" href="#imagescale" aria-label="Permalink to "imageScale""></a></h3><h4 id="imagescale-代码简介" tabindex="-1">imageScale-代码简介 <a class="header-anchor" href="#imagescale-代码简介" aria-label="Permalink to "imageScale-代码简介""></a></h4><p>代码:imageScale 中文释义:图像缩放比例 类型:浮点数</p><h4 id="imagescale-用法" tabindex="-1">imageScale-用法 <a class="header-anchor" href="#imagescale-用法" aria-label="Permalink to "imageScale-用法""></a></h4><p>填写需要缩放的百分比,缩放单位主体图像的大小。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>效果基本与scaleImagesTo相同,但百分比更为直观。<br> 默认值为1,也就是100%。</p></div><h4 id="imagescale-示例" tabindex="-1">imageScale-示例 <a class="header-anchor" href="#imagescale-示例" aria-label="Permalink to "imageScale-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">imageScale:12.5</span></span></code></pre></div><h3 id="drawlayer" tabindex="-1">drawLayer <a class="header-anchor" href="#drawlayer" aria-label="Permalink to "drawLayer""></a></h3><h4 id="drawlayer-代码简介" tabindex="-1">drawLayer-代码简介 <a class="header-anchor" href="#drawlayer-代码简介" aria-label="Permalink to "drawLayer-代码简介""></a></h4><p>代码:drawLayer 中文释义:绘制图层 类型:字符串</p><h4 id="drawlayer-用法" tabindex="-1">drawLayer-用法 <a class="header-anchor" href="#drawlayer-用法" aria-label="Permalink to "drawLayer-用法""></a></h4><p>填写希望图像所在的图层,以影响单位图像的绘制。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>官方给出了8种可填写的图层样式,具体可见示例。<br> 陆上单位默认图层便是ground或ground2,运输船这类便是ground2。</p></div><h4 id="drawlayer-示例" tabindex="-1">drawLayer-示例 <a class="header-anchor" href="#drawlayer-示例" aria-label="Permalink to "drawLayer-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:ground</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:ground2</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:wreaks</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:underwater</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:bottom</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:experimentals</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:air</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:top</span></span></code></pre></div><h3 id="whenbeingbuiltmaketransparenttill" tabindex="-1">whenBeingBuiltMakeTransparentTill <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill""></a></h3><h4 id="whenbeingbuiltmaketransparenttill-代码简介" tabindex="-1">whenBeingBuiltMakeTransparentTill-代码简介 <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill-代码简介" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill-代码简介""></a></h4><p>代码:whenBeingBuiltMakeTransparentTill 中文释义:建造时透明度 类型:浮点数</p><h4 id="whenbeingbuiltmaketransparenttill-用法" tabindex="-1">whenBeingBuiltMakeTransparentTill-用法 <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill-用法" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill-用法""></a></h4><p>填写0-1之间的小数,以影响建造时的透明度情况。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>若设为0则表示透明度为0,建造一开始就不透明。<br> 设为1则将完全建造时才会不透明。<br> 所谓透明到不透明,也就是从虚影到实体的转变。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>0-1可以理解为0%和100%,取超过100%的数字不会报错但也并没有什么意义。</p></div><h4 id="whenbeingbuiltmaketransparenttill-示例" tabindex="-1">whenBeingBuiltMakeTransparentTill-示例 <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill-示例" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">whenBeingBuiltMakeTransparentTill:0</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">whenBeingBuiltMakeTransparentTill:0.5</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">whenBeingBuiltMakeTransparentTill:1</span></span></code></pre></div><h3 id="icon-zoomed-out" tabindex="-1">icon_zoomed_out <a class="header-anchor" href="#icon-zoomed-out" aria-label="Permalink to "icon_zoomed_out""></a></h3><h4 id="icon-zoomed-out-代码简介" tabindex="-1">icon_zoomed_out-代码简介 <a class="header-anchor" href="#icon-zoomed-out-代码简介" aria-label="Permalink to "icon_zoomed_out-代码简介""></a></h4><p>代码:icon_zoomed_out 中文释义:缩放图标 类型:字符串</p><h4 id="icon-zoomed-out-用法" tabindex="-1">icon_zoomed_out-用法 <a class="header-anchor" href="#icon-zoomed-out-用法" aria-label="Permalink to "icon_zoomed_out-用法""></a></h4><p>填写缩放图标的文件路径,改变单位缩放时显示的图标。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>路径引用规则和文件格式与image相同。<br> 默认图标将根据运动类型或单位类型使用内置的图标。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>绘制图标时请注意图标的大小。<br> 具体可以参考默认图标。<br> 资源文件在游戏根目录\\res\\drawable\\中,安卓安装包同理。</p></div><h4 id="icon-zoomed-out-示例" tabindex="-1">icon_zoomed_out-示例 <a class="header-anchor" href="#icon-zoomed-out-示例" aria-label="Permalink to "icon_zoomed_out-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out:mytubiao.png</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out:tank_icon.png</span></span></code></pre></div><h3 id="icon-zoomed-out-nevershow" tabindex="-1">icon_zoomed_out_neverShow <a class="header-anchor" href="#icon-zoomed-out-nevershow" aria-label="Permalink to "icon_zoomed_out_neverShow""></a></h3><h4 id="icon-zoomed-out-nevershow-代码简介" tabindex="-1">icon_zoomed_out_neverShow-代码简介 <a class="header-anchor" href="#icon-zoomed-out-nevershow-代码简介" aria-label="Permalink to "icon_zoomed_out_neverShow-代码简介""></a></h4><p>代码:icon_zoomed_out_neverShow 中文释义:缩放图标不显示 类型:布尔值</p><h4 id="icon-zoomed-out-nevershow-用法" tabindex="-1">icon_zoomed_out_neverShow-用法 <a class="header-anchor" href="#icon-zoomed-out-nevershow-用法" aria-label="Permalink to "icon_zoomed_out_neverShow-用法""></a></h4><p>填写布尔值决定缩放图标是否显示。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="icon-zoomed-out-nevershow-示例" tabindex="-1">icon_zoomed_out_neverShow-示例 <a class="header-anchor" href="#icon-zoomed-out-nevershow-示例" aria-label="Permalink to "icon_zoomed_out_neverShow-示例""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out_neverShow:false</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out_neverShow:true</span></span></code></pre></div>`,134),o=[i];function t(c,p,r,h,d,m){return e(),s("div",null,o)}const b=a(l,[["render",t]]);export{g as __pageData,b as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as a,o as e,c as s,V as n}from"./chunks/framework.ba757cb9.js";const g=JSON.parse('{"title":"[graphics]图像组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/graphics.md","filePath":"src/Unit/graphics.md"}'),l={name:"src/Unit/graphics.md"},i=n("",134),o=[i];function t(c,p,r,h,d,m){return e(),s("div",null,o)}const b=a(l,[["render",t]]);export{g as __pageData,b as default};
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
assets/style.3711c6f3.css
Normal file
1
assets/style.3711c6f3.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"src_unit_loginboolean.md":"90e54221","src_map_tsada.md":"80114b9d","api-dev.md":"8f2cc0b7","src_unit_core.md":"e7e558c2","index.md":"15c54bcd","src_debug_test.md":"345d5d83","src_unit_graphics.md":"f82e2325","src_unit_canbuild.md":"6c842735"}
|
||||
{"src_map_tsada.md":"d6ce351d","index.md":"8cbc0b75","src_debug_test.md":"062aa671","src_unit_canbuild.md":"7eb8c0ea","api-dev.md":"182cd120","src_unit_graphics.md":"63a0d5e4","src_unit_core.md":"7b0c93d8","src_unit_loginboolean.md":"9cd40965"}
|
||||
|
|
14
index.html
14
index.html
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user