如何只显示血球
<p>Q:如何只显示血球
A:在<strong>GUILayout\MainProperty.lua</strong> 和 <strong>MainProperty_win32.lua</strong>中修改以下代码</p>
<pre><code class="language-lua"> local roleJob = SL:GetMetaValue(&quot;JOB&quot;)
--if roleLevel &lt; 28 and roleJob == 0 then -- 战士等级小于28 显示全血
if roleLevel &lt; 99999 then -- 等级小于99999 显示全血,可自定义增加职业判断
GUI:setVisible(MainProperty._ui.LoadingBar_hp, false)
GUI:setVisible(MainProperty._ui.LoadingBar_mp, false)
GUI:setVisible(MainProperty._ui.Image_divide, false)
GUI:setVisible(MainProperty._ui.LoadingBar_fhp, true)
GUI:LoadingBar_setPercent(MainProperty._ui.LoadingBar_fhp, hpPer)
else ----否则显示血蓝球共存
GUI:setVisible(MainProperty._ui.LoadingBar_hp, true)
GUI:setVisible(MainProperty._ui.LoadingBar_mp, true)
GUI:setVisible(MainProperty._ui.Image_divide, true)
GUI:setVisible(MainProperty._ui.LoadingBar_fhp, false)
GUI:LoadingBar_setPercent(MainProperty._ui.LoadingBar_hp, hpPer)
GUI:LoadingBar_setPercent(MainProperty._ui.LoadingBar_mp, mpPer)
end</code></pre>