翻译
<div class="menu" :style="{height: getMenuHeight, backgroundImage: getMenuOverlay}">
<component :style="!hudSettings.showHudBars && {height:'100%'}" :is="activeMenu"
v-if="activeMenu && inVehicle"></component>
<div v-show="hudSettings.showHudBars"
:style="{ paddingBottom:hudSettings.hudMode == 'text' ? '1rem': '0.35rem'}" class="hud-status"
:class="{hovered:hoveredSettingsElement == 'status' || selectedSettingsElement == 'display' || selectedSettingsElement == 'display-modes' || selectedSettingsElement == 'customization' || selectedSettingsElement == 'status'}">
<div class="hud-top">
<div class="health" :style="healthHudStyle"
v-show="!hudSettings.hideHealth && !hudSettings.circleHealthAndArmor">
<div class="health-inner"
:style="{width:status.health+'%', background:getHudColors('healthColor')}"></div>
<p :style="{color:getHudColors('healthColor')}" v-if="hudSettings.hudMode == 'text'">
{{status.health.toFixed(0)}}
</p>
</div>
<template v-if="!hudSettings['hideMic']">
<inlinesvg class="mic-icon" :style="getMicStyle" v-if="micSettings.isMuted" :fill="getMicColor"
src="./assets/images/muted-mic.svg">
</inlinesvg>
<inlinesvg v-else :style="getMicStyle" class="mic-icon" :fill="getMicColor"
src="./assets/images/mic.svg"></inlinesvg>
</template>
这段代码是用来显示角色的当前健康数值,并保留零位小数。这段代码应该是放在客户端脚本中,用来在游戏界面上显示角色的健康数值。
页:
[1]