Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic boost indicators #1692

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
195 changes: 195 additions & 0 deletions res/gamedata/configs/ui/maingame.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
<w>
<main x="0" y="0" width="1024" height="768"/>
<speech_menu x="260" y="550" width="300" height="265" always_show_scroll="0">
<text font="letterica16" r="238" g="224" b="198"/>
</speech_menu>

<quick_info x="1" y="670" width="1022" height="50" complex_mode="1" light_anim="ui_btn_hint" la_cyclic="0" la_texture="0" la_text="1" la_alpha="1">
<text align="c" font="graffiti22" r="225" g="225" b="250" a="255" />
</quick_info>

<icons_scroll_view x="900" y="350" width="65" height="270" right_ident="2" always_show_scroll="0" vert_interval="16" inverse_dir="1" flip_vert="0"/>

<weapon_jammed_static x="0" y="0" width="64" height="64">
<texture>ui_hud_icon_weapon</texture>
</weapon_jammed_static>

<indicator_starvation x="980" y="350" width="33" height="35"/>
<indicator_helmet_broken x="980" y="390" width="33" height="35"/>
<indicator_outfit_broken x="980" y="430" width="33" height="35"/>
<indicator_weapon_broken x="980" y="470" width="33" height="35"/>
<indicator_overweight x="980" y="510" width="33" height="35"/>
<indicator_radiation x="980" y="550" width="33" height="35"/>
<indicator_bleeding x="980" y="590" width="33" height="35"/>

<booster_states x="20" y="660" width="34" height="44" stretch="1">
<settings dx="34" dy="-44" max_item="5" horz_align="1" inverse="0"></settings>
<indicator_booster_psy x="0" y="0" width="31" height="41" stretch="1">
<texture>ui_inGame2_shield_Psy</texture>
</indicator_booster_psy>
<indicator_booster_radia x="0" y="0" width="31" height="41" stretch="1">
<texture>ui_inGame2_shield_Radiation</texture>
</indicator_booster_radia>
<indicator_booster_chem x="0" y="0" width="31" height="41" stretch="1">
<texture>ui_inGame2_shield_biological</texture>
</indicator_booster_chem>
<indicator_booster_wound x="0" y="0" width="31" height="41" stretch="1">
<texture>ui_inGame2_shield_blood</texture>
</indicator_booster_wound>
<indicator_booster_weight x="0" y="0" width="31" height="41" stretch="1">
<texture>ui_inGame2_shield_force</texture>
</indicator_booster_weight>
<indicator_booster_health x="0" y="0" width="31" height="41" stretch="1">
<texture>ui_inGame2_shield_health</texture>
</indicator_booster_health>
<indicator_booster_power x="0" y="0" width="31" height="41" stretch="1">
<texture>ui_inGame2_shield_stamina</texture>
</indicator_booster_power>
<indicator_booster_rad x="0" y="0" width="31" height="41" stretch="1">
<texture>ui_inGame2_shield_radiation_cleanup</texture>
</indicator_booster_rad>
</booster_states>

<invincible_static x="0" y="0" width="64" height="64">
<texture>ui_hud_icon_goodmode</texture>
</invincible_static>

<artefact_static x="0" y="0" width="64" height="64">
<texture>ui_hud_icon_artefact</texture>
</artefact_static>

<disk_io x="690" y="750" width="16" height="16" stretch="1">
<!-- <texture>ui\ui_disk_io</texture> -->
</disk_io>

<flashing_icons>
<flashing_icon x="13" y="210" width="48" height="29" type="pda" light_anim="ui_slow_blinking_alpha">
<texture>ui_hud_icon_PDA</texture>
</flashing_icon>
</flashing_icons>

<pick_up_item x="437" y="400" width="150" height="100"/>

<new_contact_snd>detectors\contact_1</new_contact_snd>

<quick_slot0 x="20" y="710" width="40" height="40">
<counter x="1" y="1" width="29" height="16">
<window_name>counter</window_name>
<texture a="200">ui_item_count_back</texture>
<text font="letterica16" color="ui_2" align="c" vert_align="c"/>
</counter>
<auto_frameline x="20" y="34" width="27" height="23">
<texture>ui_inGame2_Patroni_HUD_active_items_icon</texture>
</auto_frameline>
</quick_slot0>
<quick_slot1 x="70" y="710" width="41" height="41">
<counter x="1" y="1" width="29" height="16">
<window_name>counter</window_name>
<texture a="200">ui_item_count_back</texture>
<text font="letterica16" align="c" vert_align="c"/>
</counter>
<auto_frameline x="20" y="34" width="27" height="23">
<texture>ui_inGame2_Patroni_HUD_active_items_icon</texture>
</auto_frameline>
</quick_slot1>
<quick_slot2 x="120" y="710" width="41" height="41">
<counter x="1" y="1" width="29" height="16">
<window_name>counter</window_name>
<texture a="200">ui_item_count_back</texture>
<text font="letterica16" align="c" vert_align="c"/>
</counter>
<auto_frameline x="20" y="34" width="27" height="23">
<texture>ui_inGame2_Patroni_HUD_active_items_icon</texture>
</auto_frameline>
</quick_slot2>
<quick_slot3 x="170" y="710" width="41" height="41">
<counter x="1" y="1" width="29" height="16">
<window_name>counter</window_name>
<texture a="200">ui_item_count_back</texture>
<text font="letterica16" align="c" vert_align="c"/>
</counter>
<auto_frameline x="20" y="34" width="27" height="23">
<texture>ui_inGame2_Patroni_HUD_active_items_icon</texture>
</auto_frameline>
</quick_slot3>
<quick_slot0_text x="42" y="746" width="21" height="13">
<text align="c" vert_align="c" font="letterica16">quick_use_str_1</text>
</quick_slot0_text>
<quick_slot1_text x="92" y="746" width="21" height="13">
<text align="c" vert_align="c" font="letterica16">quick_use_str_2</text>
</quick_slot1_text>
<quick_slot2_text x="142" y="746" width="21" height="13">
<text align="c" vert_align="c" font="letterica16">quick_use_str_3</text>
</quick_slot2_text>
<quick_slot3_text x="192" y="746" width="21" height="13">
<text align="c" vert_align="c" font="letterica16">quick_use_str_4</text>
</quick_slot3_text>

<hud_states x="0" y="0" width="1024" height="768">
<!--
<bleeding_level_1 x="186" y="-42" width="18" height="26" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="0" b="0" a="255">ui_inGame2_blood_icon_part_1</texture>
</bleeding_level_1>
<bleeding_level_2 x="184" y="-47" width="22" height="34" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="0" b="0" a="255">ui_inGame2_blood_icon_part_2</texture>
</bleeding_level_2>
<bleeding_level_3 x="180" y="-52" width="30" height="43" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="0" b="0" a="255">ui_inGame2_blood_icon_part_3</texture>
</bleeding_level_3>

<radiation_level_1 x="180" y="293" width="29" height="29" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="255" b="0" a="255">ui_inGame2_radiation_icon_part_1</texture>
</radiation_level_1>
<radiation_level_2 x="177" y="296" width="35" height="35" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="255" b="0" a="255">ui_inGame2_radiation_icon_part_2</texture>
</radiation_level_2>
<radiation_level_3 x="173" y="300" width="43" height="43" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="255" b="0" a="255">ui_inGame2_radiation_icon_part_3</texture>
</radiation_level_3>
-->

<indik_rad x="30" y="230" width="37" height="33"/>
<indik_fire x="75" y="230" width="37" height="33"/>
<indik_psi x="120" y="230" width="37" height="33"/>
<indik_acid x="165" y="230" width="37" height="33"/>

<back x="795" y="635" width="266" height="121">
<texture>ui_inGame2_Patroni_HUD_main_window</texture>
</back>
<progress_bar_health x="852" y="649" width="138" height="16" horz="1" min="0" max="100" pos="0">
<progress><!-- light_anim="ui_blinking_1" la_cyclic="0" la_texture="1" la_text="0" la_alpha="1"-->
<texture>ui_inGame2_Patroni_HUD_red_bar</texture>
</progress>
</progress_bar_health>

<progress_bar_stamina x="852" y="672" width="138" height="10" horz="1" min="0" max="100" pos="0">
<progress><!-- light_anim="ui_blinking_1" la_cyclic="0" la_texture="1" la_text="0" la_alpha="1"-->
<texture>ui_inGame2_Patroni_HUD_blue_bar</texture>
</progress>
</progress_bar_stamina>

<static_cur_ammo x="852" y="690" width="68" height="37">
<text complex_mode="0" font="graffiti32" color="ui_7" align="c" vert_align="c">ammo</text>
</static_cur_ammo>

<static_fmj_ammo x="852" y="724" width="32" height="15">
<text align="c" complex_mode="0" font="graffiti19" color="ui_7">fmj</text>
</static_fmj_ammo>

<static_ap_ammo x="888" y="724" width="32" height="15">
<text align="c" complex_mode="0" font="graffiti19" r="238" g="155" b="23" a="150">ap</text>
</static_ap_ammo>

<static_grenade x="824" y="690" width="18" height="19">
<text align="c" complex_mode="0" font="letterica16" color="ui_7" vert_align="c">gr</text>
</static_grenade>


<static_wpn_icon x="971" y="723" width="30" height="30" align="c" alignment="c"/>

<static_fire_mode x="824" y="723" width="18" height="19">
<text font="letterica16" color="ui_7" align="c" vert_align="c"/>
</static_fire_mode>
</hud_states>

</w>
199 changes: 199 additions & 0 deletions res/gamedata/configs/ui/maingame_16.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
<w>
<main x="0" y="0" width="1024" height="768">
<_auto_static x="512" y="384" width="115" height="115" alignment="c" stretch="1" heading="1" xform_anim="xfrom_rotate_3sec" xform_anim_cyclic="1">
<texture>ui_icons_newPDA_Crclbig_h</texture>
</_auto_static>
</main>
<speech_menu x="260" y="550" width="300" height="265" always_show_scroll="0">
<text font="letterica16" r="238" g="224" b="198"/>
</speech_menu>

<quick_info x="1" y="670" width="1022" height="50" complex_mode="1" light_anim="ui_btn_hint" la_cyclic="0" la_texture="0" la_text="1" la_alpha="1">
<text align="c" font="graffiti22" r="225" g="225" b="250" a="255" />
</quick_info>

<icons_scroll_view x="900" y="350" width="55" height="270" right_ident="2" always_show_scroll="0" vert_interval="16" inverse_dir="1" flip_vert="0"/>

<weapon_jammed_static x="0" y="0" width="53" height="64" stretch="1">
<texture>ui_hud_icon_weapon</texture>
</weapon_jammed_static>

<indicator_starvation x="980" y="350" width="26" height="35" stretch="1"/>
<indicator_helmet_broken x="980" y="390" width="26" height="35" stretch="1"/>
<indicator_outfit_broken x="980" y="430" width="26" height="35" stretch="1"/>
<indicator_weapon_broken x="980" y="470" width="26" height="35" stretch="1"/>
<indicator_overweight x="980" y="510" width="26" height="35" stretch="1"/>
<indicator_radiation x="980" y="550" width="26" height="35" stretch="1"/>
<indicator_bleeding x="980" y="590" width="26" height="35" stretch="1"/>

<booster_states x="16" y="660" width="26" height="44" stretch="1">
<settings dx="26" dy="-44" max_item="5" horz_align="1" inverse="0"></settings>
<indicator_booster_psy x="0" y="0" width="24" height="41" stretch="1">
<texture>ui_inGame2_shield_Psy</texture>
</indicator_booster_psy>
<indicator_booster_radia x="0" y="0" width="24" height="41" stretch="1">
<texture>ui_inGame2_shield_Radiation</texture>
</indicator_booster_radia>
<indicator_booster_chem x="0" y="0" width="24" height="41" stretch="1">
<texture>ui_inGame2_shield_biological</texture>
</indicator_booster_chem>
<indicator_booster_wound x="0" y="0" width="24" height="41" stretch="1">
<texture>ui_inGame2_shield_blood</texture>
</indicator_booster_wound>
<indicator_booster_weight x="0" y="0" width="24" height="41" stretch="1">
<texture>ui_inGame2_shield_force</texture>
</indicator_booster_weight>
<indicator_booster_health x="0" y="0" width="24" height="41" stretch="1">
<texture>ui_inGame2_shield_health</texture>
</indicator_booster_health>
<indicator_booster_power x="0" y="0" width="24" height="41" stretch="1">
<texture>ui_inGame2_shield_stamina</texture>
</indicator_booster_power>
<indicator_booster_rad x="0" y="0" width="24" height="41" stretch="1">
<texture>ui_inGame2_shield_radiation_cleanup</texture>
</indicator_booster_rad>
</booster_states>

<invincible_static x="0" y="0" width="53" height="64" stretch="1">
<texture>ui_hud_icon_goodmode</texture>
</invincible_static>

<artefact_static x="0" y="0" width="53" height="64" stretch="1">
<texture>ui_hud_icon_artefact</texture>
</artefact_static>

<disk_io x="760" y="750" width="14" height="16" stretch="1">
<!-- <texture>ui\ui_disk_io</texture> -->
</disk_io>

<flashing_icons>
<flashing_icon x="13" y="210" width="48" height="29" type="pda" light_anim="ui_slow_blinking_alpha">
<texture>ui_hud_icon_PDA</texture>
</flashing_icon>
</flashing_icons>

<pick_up_item x="452" y="400" width="120" height="100"/>

<new_contact_snd>detectors\contact_1</new_contact_snd>

<quick_slot0 x="16" y="710" width="33" height="40" stretch="1">
<counter x="1" y="1" width="23" height="16" stretch="1">
<window_name>counter</window_name>
<texture a="200">ui_item_count_back</texture>
<text font="letterica16" align="c" vert_align="c"/>
</counter>
<auto_frameline x="16" y="34" width="21" height="23">
<texture>ui_inGame2_Patroni_HUD_active_items_icon</texture>
</auto_frameline>
</quick_slot0>
<quick_slot1 x="56" y="710" width="33" height="41" stretch="1">
<counter x="1" y="1" width="23" height="16" stretch="1">
<window_name>counter</window_name>
<texture a="200">ui_item_count_back</texture>
<text font="letterica16" align="c" vert_align="c"/>
</counter>
<auto_frameline x="16" y="34" width="21" height="23">
<texture>ui_inGame2_Patroni_HUD_active_items_icon</texture>
</auto_frameline>
</quick_slot1>
<quick_slot2 x="96" y="710" width="33" height="41" stretch="1">
<counter x="1" y="1" width="23" height="16" stretch="1">
<window_name>counter</window_name>
<texture a="200">ui_item_count_back</texture>
<text font="letterica16" align="c" vert_align="c"/>
</counter>
<auto_frameline x="16" y="34" width="21" height="23">
<texture>ui_inGame2_Patroni_HUD_active_items_icon</texture>
</auto_frameline>
</quick_slot2>
<quick_slot3 x="136" y="710" width="33" height="41" stretch="1">
<counter x="1" y="1" width="23" height="16" stretch="1">
<window_name>counter</window_name>
<texture a="200">ui_item_count_back</texture>
<text font="letterica16" align="c" vert_align="c"/>
</counter>
<auto_frameline x="16" y="34" width="21" height="23">
<texture>ui_inGame2_Patroni_HUD_active_items_icon</texture>
</auto_frameline>
</quick_slot3>
<quick_slot0_text x="33" y="747" width="17" height="13">
<text align="c" vert_align="c" font="letterica16">quick_use_str_1</text>
</quick_slot0_text>
<quick_slot1_text x="73" y="747" width="17" height="13">
<text align="c" vert_align="c" font="letterica16">quick_use_str_2</text>
</quick_slot1_text>
<quick_slot2_text x="113" y="747" width="17" height="13">
<text align="c" vert_align="c" font="letterica16">quick_use_str_3</text>
</quick_slot2_text>
<quick_slot3_text x="153" y="747" width="17" height="13">
<text align="c" vert_align="c" font="letterica16">quick_use_str_4</text>
</quick_slot3_text>

<hud_states x="0" y="0" width="1024" height="768" stretch="1">
<!--
<bleeding_level_1 x="150" y="-42" width="13" height="26" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="0" b="0" a="255">ui_inGame2_blood_icon_part_1</texture>
</bleeding_level_1>
<bleeding_level_2 x="147" y="-47" width="18" height="34" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="0" b="0" a="255">ui_inGame2_blood_icon_part_2</texture>
</bleeding_level_2>
<bleeding_level_3 x="144" y="-52" width="24" height="43" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="0" b="0" a="255">ui_inGame2_blood_icon_part_3</texture>
</bleeding_level_3>

<radiation_level_1 x="143" y="-93" width="23" height="29" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="255" b="0" a="255">ui_inGame2_radiation_icon_part_1</texture>
</radiation_level_1>
<radiation_level_2 x="141" y="-96" width="27" height="35" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="255" b="0" a="255">ui_inGame2_radiation_icon_part_2</texture>
</radiation_level_2>
<radiation_level_3 x="138" y="-100" width="33" height="43" light_anim="ui_slow_blinking" la_cyclic="1" la_texture="1" la_text="0" la_alpha="1" stretch="1">
<texture r="255" g="255" b="0" a="255">ui_inGame2_radiation_icon_part_3</texture>
</radiation_level_3>
-->
<indik_rad x="24" y="230" width="29" height="33" stretch="1"/>
<indik_fire x="60" y="230" width="29" height="33" stretch="1"/>
<indik_psi x="96" y="230" width="29" height="33" stretch="1"/>
<indik_acid x="132" y="230" width="29" height="33" stretch="1"/>

<back x="841" y="635" width="178" height="121" stretch="1">
<texture>ui_inGame2_Patroni_HUD_main_window</texture>
</back>

<progress_bar_health x="885" y="648" width="113" height="16" horz="1" min="0" max="100" pos="0">
<progress><!-- light_anim="ui_blinking_1" la_cyclic="0" la_texture="1" la_text="0" la_alpha="1" stretch="1"-->
<texture>ui_inGame2_Patroni_HUD_red_bar</texture>
</progress>
</progress_bar_health>

<progress_bar_stamina x="885" y="670" width="113" height="10" horz="1" min="0" max="100" pos="0">
<progress><!-- light_anim="ui_blinking_1" la_cyclic="0" la_texture="1" la_text="0" la_alpha="1" stretch="1"-->
<texture>ui_inGame2_Patroni_HUD_blue_bar</texture>
</progress>
</progress_bar_stamina>

<static_cur_ammo x="887" y="690" width="54" height="37">
<text complex_mode="0" font="graffiti32" color="ui_7" align="c" vert_align="c">ammo</text>
</static_cur_ammo>

<static_fmj_ammo x="887" y="724" width="26" height="15">
<text align="c" complex_mode="0" font="graffiti19" color="ui_7">fmj</text>
</static_fmj_ammo>

<static_ap_ammo x="915" y="724" width="26" height="15">
<text align="c" complex_mode="0" font="graffiti19" r="238" g="155" b="23" a="150">ap</text>
</static_ap_ammo>

<static_grenade x="864" y="690" width="14" height="19">
<text align="c" complex_mode="0" font="letterica16" color="ui_7" vert_align="c">gr</text>
</static_grenade>


<static_wpn_icon x="982" y="723" width="24" height="30" align="c" alignment="c"/>

<static_fire_mode x="864" y="723" width="14" height="19">
<text font="letterica16" color="ui_7" align="c" vert_align="c"/>
</static_fire_mode>
</hud_states>

</w>
Loading
Loading