cyberware-2281/mod/Menus/prefabs/cyberware/cw_adrenaline_booster.xml

97 lines
2.3 KiB
XML
Raw Normal View History

2024-04-26 22:26:05 +00:00
<!-- ######################################################################################## General -->
<_CWxScale>
<copy> 1 </copy>
<mul>
<copy src="io()" trait="_duiscale_65" />
<onlyif src="io()" trait="_DUIF3" />
<add>
<copy> 1 </copy>
<onlyifnot src="io()" trait="_DUIF3" />
</add>
</mul>
</_CWxScale>
<_CWxMeterFont>
<copy> 7 </copy>
<sub> <!-- dui 4 -->
<copy> 3 </copy>
<onlyif src="io()" trait="_DUIF3" />
</sub>
</_CWxMeterFont>
<!-- ######################################################################################## IO AP Bonus Text -->
<_PNxAPBonusEnabled> 0 </_PNxAPBonusEnabled>
<_PNxAPBonusValue> 0 </_PNxAPBonusValue>
<!-- ######################################################################################## AP Bonus Text -->
<rect name="PNxAPBonus">
<visible>
<copy src="ActionPoints" trait="visible" />
<and src="io()" trait="_PNxAPBonusEnabled" />
<and src="io()" trait="_PNxAPBonusValue" />
<gt> 0 </gt>
</visible>
<text name="PNxAPBonusText">
<font> <copy src="io()" trait="_CWxMeterFont" /> </font>
<depth> 2 </depth>
<justify> &left; </justify>
<string>
<copy src="io()" trait="_PNxAPBonusValue" />
<mul> 100 </mul>
</string>
<x>
<copy src="screen()" trait="width" />
<sub>
<copy src="ActionPoints" trait="width" />
<mul src="io()" trait="_CWxScale" />
<div> 2 </div>
</sub>
<sub> </sub>
</x>
<y>
<copy src="screen()" trait="height" />
<sub>
<copy src="ActionPoints" trait="height" />
<mul src="io()" trait="_CWxScale" />
</sub>
<sub> 10 </sub>
<sub>
<copy> 11 </copy>
<onlyifnot src="io()" trait="_DUIF3" />
</sub>
</y>
</text>
<text name="PNxAPBonusPlus">
<font> <copy src="io()" trait="_CWxMeterFont" /> </font>
<depth> 2 </depth>
<justify> &right; </justify>
<string> + </string>
<x>
<copy src="PNxAPBonusText" trait="x" />
</x>
<y>
<copy src="PNxAPBonusText" trait="y" />
</y>
</text>
<text name="PNxAPBonusPercent">
<font> <copy src="io()" trait="_CWxMeterFont" /> </font>
<depth> 2 </depth>
<justify> &left; </justify>
<string> % </string>
<x>
<copy src="PNxAPBonusText" trait="x" />
<add src="PNxAPBonusText" trait="width" />
</x>
<y>
<copy src="PNxAPBonusText" trait="y" />
</y>
</text>
</rect>