jekeyhui99 发表于 2018-8-3 11:16:56

Theme皮肤文件(json解析、多文件管理)

<p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><strong style="box-sizing: border-box;">一 &nbsp;官方教程</strong></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><a href="http://developer.egret.com/cn/github/egret-docs/extension/EUI/skin/theme/index.html" target="_blank" style="box-sizing: border-box; color: rgb(52, 104, 164);">http://developer.egret.com/cn/github/egret-docs/extension/EUI/skin/theme/index.html</a></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">&nbsp;</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><strong style="box-sizing: border-box;">二 thm主题文件解析</strong></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;">default.thm.json皮肤主题文件范例:</span></p><div class="cnblogs_code" style="box-sizing: border-box; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); padding: 5px; overflow: auto; margin-top: 5px; margin-bottom: 5px; color: rgb(0, 0, 0); font-family: &quot;Courier New&quot; !important; font-size: 12px !important;"><div class="cnblogs_code_toolbar" style="box-sizing: border-box; margin-top: 5px;"><span class="cnblogs_code_copy" style="box-sizing: border-box; padding-right: 5px; line-height: 1.5 !important;"><a title="复制代码" style="box-sizing: border-box; color: rgb(52, 104, 164); border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="box-sizing: border-box; max-width: 900px;"></a></span></div><pre style="white-space: pre-wrap; box-sizing: border-box; font-family: &quot;Courier New&quot; !important;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;; font-size: 13px; line-height: 1.5 !important;"><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important;">{
</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">skins</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important;">: {
    </span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">eui.Button</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span>: <span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">resource/eui_skins/ButtonSkin.exml</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important;">
},
</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">autoGenerateExmlsList</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span>: <span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(0, 0, 255);">false</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important;">,
</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">exmls</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important;">: [
    </span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">src/HomeSceneSkin.exml</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important;">
]
}</span></span></pre><div class="cnblogs_code_toolbar" style="box-sizing: border-box; margin-top: 5px;"><span class="cnblogs_code_copy" style="box-sizing: border-box; padding-right: 5px; line-height: 1.5 !important;"><a title="复制代码" style="box-sizing: border-box; color: rgb(52, 104, 164); border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="box-sizing: border-box; max-width: 900px;"></a></span></div></div><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;"><strong style="box-sizing: border-box;">&nbsp;skins:</strong></span></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;">&nbsp;将exml和ts绑定。</span></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;">如果绑定,则在新建eui.component不需要设置skinName了。</span></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;">如果没有绑定,则需要在eui.component的contruct中设置this.skinName = ""。</span></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">&nbsp;</p><pre style="white-space: pre-wrap; box-sizing: border-box; color: rgb(75, 75, 75); font-size: 13px;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;"><strong style="box-sizing: border-box;">autoGenerateExmlsList</strong></span><br style="box-sizing: border-box;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;">true:发布时将exmls下皮肤自动合并到default.thm.json文件中</span><br style="box-sizing: border-box;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;">false:不会将exmls下的皮肤自动合并到default.thm.json文件中</span><br style="box-sizing: border-box;"><br style="box-sizing: border-box;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;"><strong style="box-sizing: border-box;">exmls:<br style="box-sizing: border-box;"></strong>在Main.ts加载主题文件时,预加载exmls列表中的皮肤<strong style="box-sizing: border-box;"><br style="box-sizing: border-box;"></strong></span></pre><div class="cnblogs_code" style="box-sizing: border-box; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); padding: 5px; overflow: auto; margin-top: 5px; margin-bottom: 5px; color: rgb(0, 0, 0); font-family: &quot;Courier New&quot; !important; font-size: 12px !important;"><pre style="white-space: pre-wrap; box-sizing: border-box; font-family: &quot;Courier New&quot; !important;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;; font-size: 13px; line-height: 1.5 !important;">let theme = <span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(0, 0, 255);">new</span> eui.Theme(<span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">resource/default.thm.json</span><span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(128, 0, 0);">"</span>, <span style="box-sizing: border-box; font-family: &quot;Courier New&quot; !important; font-size: 12px !important; line-height: 1.5 !important; color: rgb(0, 0, 255);">this</span>.stage);</span></pre></div><pre style="white-space: pre-wrap; box-sizing: border-box; color: rgb(75, 75, 75); font-size: 13px;"></pre><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><strong style="box-sizing: border-box;">三 exml的几种使用方式:</strong></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">1 直接引用</p><div class="cnblogs_code" style="box-sizing: border-box; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); padding: 5px; overflow: auto; margin-top: 5px; margin-bottom: 5px; color: rgb(0, 0, 0); font-family: &quot;Courier New&quot; !important; font-size: 12px !important;"><pre style="white-space: pre-wrap; box-sizing: border-box; font-family: &quot;Courier New&quot; !important;"><span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">public</span><span style="box-sizing: border-box; line-height: 1.5 !important;"> constructor() {
    super();
    </span><span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span>.addEventListener(egret.Event.COMPLETE, <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span>.onComplete, <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span><span style="box-sizing: border-box; line-height: 1.5 !important;">);
    </span><span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span>.addEventListener(egret.Event.ADDED_TO_STAGE, <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span>.onAddToStage, <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span><span style="box-sizing: border-box; line-height: 1.5 !important;">);
    </span><span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span>.skinName = <span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">src/HomeSceneSkin.exml</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; line-height: 1.5 !important;">;
}</span></pre></div><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">执行顺序。在exml未预先加载的情况下,实时加载。</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">chilrenCreated&nbsp;</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">addToStage</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">exml加载完成</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">onComplete</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">&nbsp;</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">2 其他方式不怎么用。。具体看官方教程</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">&nbsp;</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">&nbsp;</p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><strong style="box-sizing: border-box;">四 &nbsp;皮肤多文件管理</strong></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><span style="box-sizing: border-box; line-height: 1.5;">多个json皮肤文件,分类加载不同皮肤,减轻一次性加载大量皮肤解析压力。</span></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><span style="box-sizing: border-box; line-height: 1.5;">需要自己管理exml的加载顺序,因为exml之间可能有依赖关系。</span></p><div class="cnblogs_code" style="box-sizing: border-box; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); padding: 5px; overflow: auto; margin-top: 5px; margin-bottom: 5px; color: rgb(0, 0, 0); font-family: &quot;Courier New&quot; !important; font-size: 12px !important;"><pre style="white-space: pre-wrap; box-sizing: border-box; font-family: &quot;Courier New&quot; !important;">let theme = <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">new</span> eui.Theme(<span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">resource/default.thm.json</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span>, <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span><span style="box-sizing: border-box; line-height: 1.5 !important;">.stage);
let theme2 </span>= <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">new</span> eui.Theme(<span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">resource/default2.thm.json</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span>,<span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span><span style="box-sizing: border-box; line-height: 1.5 !important;">.stage);
theme2.addEventListener(eui.UIEvent.COMPLETE, </span><span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span>.onThemeLoadComplete, <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">this</span>);</pre></div><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">&nbsp;</p><pre style="white-space: pre-wrap; box-sizing: border-box; color: rgb(75, 75, 75); font-size: 13px;">default.thm.json</pre><div class="cnblogs_code" style="box-sizing: border-box; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); padding: 5px; overflow: auto; margin-top: 5px; margin-bottom: 5px; color: rgb(0, 0, 0); font-family: &quot;Courier New&quot; !important; font-size: 12px !important;"><div class="cnblogs_code_toolbar" style="box-sizing: border-box; margin-top: 5px;"><span class="cnblogs_code_copy" style="box-sizing: border-box; padding-right: 5px; line-height: 1.5 !important;"><a title="复制代码" style="box-sizing: border-box; color: rgb(52, 104, 164); border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="box-sizing: border-box; max-width: 900px;"></a></span></div><pre style="white-space: pre-wrap; box-sizing: border-box; font-family: &quot;Courier New&quot; !important;"><span style="box-sizing: border-box; line-height: 1.5 !important;">{
</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">skins</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; line-height: 1.5 !important;">: {
},
</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">autoGenerateExmlsList</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span>: <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">false</span><span style="box-sizing: border-box; line-height: 1.5 !important;">,
</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">exmls</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; line-height: 1.5 !important;">: [
   </span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">src/SimpleButtonSkin.exml</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; line-height: 1.5 !important;">
]
}</span></pre><div class="cnblogs_code_toolbar" style="box-sizing: border-box; margin-top: 5px;"><span class="cnblogs_code_copy" style="box-sizing: border-box; padding-right: 5px; line-height: 1.5 !important;"><a title="复制代码" style="box-sizing: border-box; color: rgb(52, 104, 164); border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="box-sizing: border-box; max-width: 900px;"></a></span></div></div><pre style="white-space: pre-wrap; box-sizing: border-box; color: rgb(75, 75, 75); font-size: 13px;"></pre><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">default2.thm.json</p><pre style="white-space: pre-wrap; box-sizing: border-box; color: rgb(75, 75, 75); font-size: 13px;"></pre><div class="cnblogs_code" style="box-sizing: border-box; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); padding: 5px; overflow: auto; margin-top: 5px; margin-bottom: 5px; color: rgb(0, 0, 0); font-family: &quot;Courier New&quot; !important; font-size: 12px !important;"><div class="cnblogs_code_toolbar" style="box-sizing: border-box; margin-top: 5px;"><span class="cnblogs_code_copy" style="box-sizing: border-box; padding-right: 5px; line-height: 1.5 !important;"><a title="复制代码" style="box-sizing: border-box; color: rgb(52, 104, 164); border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="box-sizing: border-box; max-width: 900px;"></a></span></div><pre style="white-space: pre-wrap; box-sizing: border-box; font-family: &quot;Courier New&quot; !important;"><span style="box-sizing: border-box; line-height: 1.5 !important;">{
</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">skins</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; line-height: 1.5 !important;">: {
   
},
</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">autoGenerateExmlsList</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span>: <span style="box-sizing: border-box; color: rgb(0, 0, 255); line-height: 1.5 !important;">false</span><span style="box-sizing: border-box; line-height: 1.5 !important;">,
</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">exmls</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; line-height: 1.5 !important;">: [
      </span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">resource/eui_skins/ButtonSkin.exml</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; line-height: 1.5 !important;">,
   </span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">src/HomeSceneSkin.exml</span><span style="box-sizing: border-box; color: rgb(128, 0, 0); line-height: 1.5 !important;">"</span><span style="box-sizing: border-box; line-height: 1.5 !important;">
]
}</span></pre><div class="cnblogs_code_toolbar" style="box-sizing: border-box; margin-top: 5px;"><span class="cnblogs_code_copy" style="box-sizing: border-box; padding-right: 5px; line-height: 1.5 !important;"><a title="复制代码" style="box-sizing: border-box; color: rgb(52, 104, 164); border: none !important;"><img src="https://common.cnblogs.com/images/copycode.gif" alt="复制代码" style="box-sizing: border-box; max-width: 900px;"></a></span></div></div><pre style="white-space: pre-wrap; box-sizing: border-box; color: rgb(75, 75, 75); font-size: 13px;"></pre><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"><img src="https://images2015.cnblogs.com/blog/1062174/201701/1062174-20170103171338003-1871544237.png" alt="" style="border: 0px; box-sizing: border-box; max-width: 900px;"></p><p style="box-sizing: border-box; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;">&nbsp;</p><pre style="white-space: pre-wrap; box-sizing: border-box; color: rgb(75, 75, 75); font-size: 13px;"><span style="box-sizing: border-box; font-family: &quot;Microsoft YaHei&quot;;"><strong style="box-sizing: border-box;">另外一说,wing2.5和3都会强行自动修改thm的json文件。。。</strong></span></pre><p></p>
页: [1]
查看完整版本: Theme皮肤文件(json解析、多文件管理)