代码如下:
<configs>
<!– 海拔 –>
<append xpath=”/windows/window[@name='windowCompass']”>
<rect controller=”ULM_HUD_Time,UndeadLegacy”>
<rect visible=”{showDayAndTime}”>
<rect pos=”559,-63″> <!– 海拔 –>
<texture style=”ulmCompassRight” pos=”35,0″/> <!– 窗口纹理 –>
<sprite depth=”3″ size=”23,23″ pivot=”center” sprite=”ui_game_symbol_climb” type=”sliced” color=”34,255,0,255″ foregroundlayer=”true”/>
<label depth=”3″ pos=”43,0″ size=”70,25″ text=”{mapelevation} M” color=”34,255,0,255″ font_size=”24″ style=”outline” pivot=”center” justify=”center” upper_case=”true”/>
</rect>
</rect>
</rect>
</append>
</configs>
结束
<rect pos=”-31,-18″>
<texture style=”ulmCompassLeft” pos=”13,0″/> <!– 时间 –>
<sprite depth=”3″ pos=”46,1″ size=”23,23″ pivot=”center” sprite=”ui_game_symbol_clock” type=”sliced” color=”255,255,255,160″ foregroundlayer=”true”/>
<label depth=”3″ pos=”0,0″ size=”70,25″ font_size=”24″ text=”{time}” style=”outline” pivot=”center” justify=”center”/>
</rect>
<rect pos=”559,-18″> <!– 日期 –>
<texture style=”ulmCompassRight” pos=”35,0″/>
<sprite depth=”3″ size=”23,23″ pivot=”center” sprite=”symbol_calendar” type=”sliced” color=”255,255,255,160″ foregroundlayer=”true”/>
<label depth=”3″ pos=”43,0″ size=”70,25″ text=”{day}” color=”{dayColor}” font_size=”24″ style=”outline” pivot=”center” justify=”center” upper_case=”true”/>
</rect>
以上2个分别是时间、日期。 text=“” 这里有点莫名其妙了 明明在原版mod可正常显示海拔高度数值,但是在亡灵遗产中就无法显示是空白,但是我把时间或日期的 rext添加进去就能正常显示。到底是哪里问题 text 值 不正确吗,有没有大佬教我该怎么找。
注意:原版写法会导致无限红字
求