forked from bot/app
15 lines
6.1 KiB
JavaScript
15 lines
6.1 KiB
JavaScript
import{_ as e}from"./plugin-vue_export-helper-DlAUqK2U.js";import{o as t,c as a,b as n}from"./app-DUHc7hb-.js";const s={},i=n(`<h2 id="简介" tabindex="-1"><a class="header-anchor" href="#简介"><span>简介</span></a></h2><p>资源包,也可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源码</p><ul><li>资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包</li><li>资源包的制作很简单,如果你接触过<code>Minecraft</code>的资源包,那么你会很快上手</li><li>部分内容制作需要一点点前端基础,例如<code>html</code>,<code>css</code>,如果你不懂,可以参考一些教程</li><li>欢迎各位投稿资源包到轻雪资源商店</li></ul><h2 id="加载资源包" tabindex="-1"><a class="header-anchor" href="#加载资源包"><span>加载资源包</span></a></h2><ul><li>下载的资源包通常是以<code>.zip</code>格式压缩的,你只需要将其解压到根目录<code>resources</code>目录下即可,注意不要嵌套文件夹,正常的路径应该是这样的</li></ul><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>main.py
|
||
resources
|
||
├─resource_pack_1
|
||
├───metadata.yml
|
||
├───templates
|
||
└───<span class="token punctuation">..</span>.
|
||
└─resource_pack_2
|
||
├───metadata.yml
|
||
└───<span class="token punctuation">..</span>.
|
||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ul><li>你自己制作的资源包也应该遵循这个规则,并且应该在<code>metadata.yml</code>中填写一些信息</li><li>若没有<code>metadata.yml</code>文件,则轻雪不会加载这个资源包</li></ul><div class="language-yaml line-numbers-mode" data-ext="yml" data-title="yml"><pre class="language-yaml"><code><span class="token key atrule">name</span><span class="token punctuation">:</span> <span class="token string">"资源包名称"</span>
|
||
<span class="token key atrule">version</span><span class="token punctuation">:</span> <span class="token string">"1.0.0"</span>
|
||
<span class="token key atrule">description</span><span class="token punctuation">:</span> <span class="token string">"资源包描述"</span>
|
||
<span class="token punctuation">...</span> <span class="token comment"># 你可以自定义一些信息,但请保证以上三个字段</span>
|
||
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ul><li>资源包加载遵循一个优先级,即后加载的资源包会覆盖前面的资源包,也就是说,你在A资源包中定义了一个<code>index.html</code>文件,B资源包也定义了一个<code>index.html</code>文件,那么加载B资源包后,A资源包中的<code>index.html</code>文件会被覆盖</li><li>对于不同资源包的不同文件,是可以相对引用的,例如你在A资源包中的<code>index.html</code>文件中引用了B资源包中的<code>style.css</code>文件,那么加载A资源包后,轻雪会自动加载B资源包中的<code>style.css</code>文件</li></ul>`,9),o=[i];function c(l,d){return t(),a("div",null,o)}const m=e(s,[["render",c],["__file","resource_pack.html.vue"]]),u=JSON.parse('{"path":"/usage/resource_pack.html","title":"资源包","lang":"zh-CN","frontmatter":{"title":"资源包","icon":"comment","order":3,"category":"使用手册","description":"简介 资源包,也可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源码 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你会很快上手 部分内容制作需要一点点前端基础,例如html,css,如果你不懂,可以参考一些教程 欢迎各位投稿资源包...","head":[["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/usage/resource_pack.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot 轻雪机器人"}],["meta",{"property":"og:title","content":"资源包"}],["meta",{"property":"og:description","content":"简介 资源包,也可根据用途称为主题包、字体包、语言包等,它允许你一定程度上自定义轻雪的外观,并且不用修改源码 资源/主题商店提供了一些资源包供你选择,你也可以自己制作资源包 资源包的制作很简单,如果你接触过Minecraft的资源包,那么你会很快上手 部分内容制作需要一点点前端基础,例如html,css,如果你不懂,可以参考一些教程 欢迎各位投稿资源包..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-04-06T01:10:01.000Z"}],["meta",{"property":"article:author","content":"远野千束"}],["meta",{"property":"article:modified_time","content":"2024-04-06T01:10:01.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"资源包\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-04-06T01:10:01.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"远野千束\\",\\"url\\":\\"https://snowykami.me\\"}]}"]]},"headers":[{"level":2,"title":"简介","slug":"简介","link":"#简介","children":[]},{"level":2,"title":"加载资源包","slug":"加载资源包","link":"#加载资源包","children":[]}],"git":{"createdTime":1712365801000,"updatedTime":1712365801000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":1}]},"readingTime":{"minutes":1.58,"words":475},"filePathRelative":"usage/resource_pack.md","localizedDate":"2024年4月6日","autoDesc":true}');export{m as comp,u as data};
|