-
Notifications
You must be signed in to change notification settings - Fork 33
UI: Общее
St4lker0k765 edited this page Nov 29, 2024
·
10 revisions
- Добавлена возможность настройки UI элемента. Подробности смотреть в
cursor.xml
- Поддержка установки диапазона минимального <-> максимального цвета
<first_min_color color="pda_red" />
<first_middle_color color="pda_green" />
<first_max_color color="pda_red" />
<knife_params x="0" y="0" width="212" height="70">
<prop_line x="0" y="0" width="212" height="9" stretch="1">
<texture>ui_inGame2_hint_wnd_Properties</texture>
</prop_line>
<static_damage x="0" y="10" width="14" height="18" stretch="1">
<texture>ui_wp_prop_damage</texture>
</static_damage>
<static_handling x="0" y="28" width="14" height="18" stretch="1">
<texture>ui_wp_prop_ergonomics</texture>
</static_handling>
<static_dist x="0" y="46" width="14" height="18" stretch="1">
<texture>ui_wp_prop_distantion</texture>
</static_dist>
<cap_damage x="18" y="12" width="80" height="8">
<text font="letterica16" color="ui_2" align="l">ui_inv_damage</text>
</cap_damage>
<cap_handling x="18" y="30" width="80" height="8">
<text font="letterica16" color="ui_2" align="l">ui_inv_handling</text>
</cap_handling>
<cap_dist x="18" y="48" width="80" height="8">
<text font="letterica16" color="ui_2" align="l">ui_inv_dist</text>
</cap_dist>
<progress_damage x="104" y="14" width="101" height="9" horz="1">
<progress>
<texture a="150">ui_inGame2_hint_wnd_bar_alfa_line_16</texture>
</progress>
<background>
<texture>ui_inGame2_hint_wnd_bar_16</texture>
</background>
<color_less color="pda_red" />
<color_more color="pda_green"/>
</progress_damage>
<progress_handling x="104" y="32" width="101" height="9" horz="1">
<progress>
<texture a="150">ui_inGame2_hint_wnd_bar_alfa_line_16</texture>
</progress>
<background>
<texture>ui_inGame2_hint_wnd_bar_16</texture>
</background>
<color_less color="pda_red" />
<color_more color="pda_green"/>
</progress_handling>
<value_dist1 x="104" y="48" width="10" height="8">
<text font="letterica16" align="l"/>
</value_dist1>
<value_dist2 x="123" y="48" width="10" height="8">
<text font="letterica16" align="l"/>
</value_dist2>
<value_dist_delimiter x="119" y="48" width="1" height="8">
<text font="letterica16" color="ui_2" align="l"/>
</value_dist_delimiter>
<meters_name x="137" y="48" width="80" height="8">
<text font="letterica16" color="ui_2" align="l"/>
</meters_name>
</knife_params>
- Добавлена возможность настройки UI элемента. Подробности смотреть в
trackbar.xml
- Поддержка вывода цифрового показателя значения справа от слайдера при указании атрибута
show_value="1"
- Добавлена поддержка смены цвета при наведении курсора на текст, как в билдах ТЧ.
highlight_text
- Включить подсветку текста.
hA
- альфа-канал подсветки
hR
- красный цвет у подсветки
hG
- зелёный цвет у подсветки
hB
- синий цвет у подсветки
Пример реализации:
<cap_screenshot_format x="26" y="3" width="108" height="24" highlight_text="1" hA="255" hR="255" hG="0" hB="0">
<text r="170" g="170" b="170" font="letterica16" align="r" vert_align="c">ui_mm_screenshot_format</text>
</cap_screenshot_format>
- Добавлена поддержка
motion_icon.xml
из ТЧ.
- Добавлена поддержка квадратной миникарты, как в ЧН/ТЧ.