On version 0.2.1, the tooltips of the bodypart inflation levels and the food level bars on the top-left HUD are not displayed when hovered. I dont know why the hovered/unhovered properties on 'bar' elements are not working, or the xsize and xminimum on 'text' elements.
The quick fix I got after trying different things was to wrap the 'text' elements fro each row with 'box' elements and set in there the xsize properties (and xalign on the 'text'), and for the tooltips, to wrap the 'bar' boxes for each row with a 'box' elements and a 'button' element, where the boxes sets position properties and the button sets the hovered/unhovered Functions.
The following block show constains the code affected by the minor bug, and the quick fix (all code line numbers based on original v0.2.1 unaltered files, deindented 6 tabs / 24 spaces because of char limit on comments):
[code]
File "game/screens.rpy", lines 3641-3728, at hud screen in the "# --- TOP-LEFT HUD SECTION (Inflation Stats and Status Effects) ---" section:
# --- Chest Stat and Segmented Bar ---
hbox:
spacing 5
hbox:
xsize 65
text "Chest:" style "hud_text" xalign 1.0
hbox:
spacing 0
yalign 0.5
ysize 15
button:
action NullAction()
hovered [SetVariable("store.hud_elements_hovered", True), SetVariable("global_tooltip_text", get_segmented_bar_tooltip_text("Chest", store.yuki_chest_level, _min_c_hud_display, _max_c_hud_display))]
unhovered [SetVariable("store.hud_elements_hovered", False), SetVariable("global_tooltip_text", None)]
background None
yalign 0.5
ysize 15
hbox:
spacing 1
yalign 0.5
ysize 15
$ num_base_segments_c = (_base_max_c + 9) // 10 if _base_max_c > 0 else 0
for i in range(num_base_segments_c):
python:
segment_start_value = i * 10
segment_value = min(max(0, store.yuki_chest_level - segment_start_value), 10)
style_to_use_c = "min_inflation_bar_style" if segment_start_value < _min_c_hud_display else "inflation_bar_style"
bar style style_to_use_c value segment_value range 10 xsize 40
$ num_bonus_10_segments_c = _bonus_max_c // 10
for k in range(num_bonus_10_segments_c):
$ bonus_segment_value_10 = min(max(0, store.yuki_chest_level - _base_max_c - (k * 10)), 10)
bar style "inflation_bar_style" value bonus_segment_value_10 range 10 xsize 40
$ num_bonus_1_segments_c = _bonus_max_c % 10
for j in range(num_bonus_1_segments_c):
$ bonus_segment_value_1 = min(max(0, store.yuki_chest_level - _base_max_c - (num_bonus_10_segments_c * 10) - j), 1)
bar style "bonus_inflation_bar_style" value bonus_segment_value_1 range 1 xsize 3
hbox:
xminimum 60
text "[store.yuki_chest_level]{color=#888888}[display_change(chest_change)]{/color}" style "hud_text"
# --- Belly Stat and Segmented Bar ---
hbox:
spacing 5
hbox:
xsize 65
text "Belly:" style "hud_text" xalign 1.0
hbox:
spacing 0
yalign 0.5
ysize 15
button:
action NullAction()
hovered [SetVariable("store.hud_elements_hovered", True), SetVariable("global_tooltip_text", get_segmented_bar_tooltip_text("Belly", store.yuki_belly_level, _min_b_hud_display, _max_b_hud_display))]
unhovered [SetVariable("store.hud_elements_hovered", False), SetVariable("global_tooltip_text", None)]
background None
yalign 0.5
ysize 15
hbox:
spacing 1
yalign 0.5
ysize 15
$ num_base_segments_b = (_base_max_b + 9) // 10 if _base_max_b > 0 else 0
for i in range(num_base_segments_b):
python:
segment_start_value = i * 10
segment_value = min(max(0, store.yuki_belly_level - segment_start_value), 10)
style_to_use_b = "min_inflation_bar_style" if segment_start_value < _min_b_hud_display else "inflation_bar_style"
bar style style_to_use_b value segment_value range 10 xsize 40
$ num_bonus_10_segments_b = _bonus_max_b // 10
for k in range(num_bonus_10_segments_b):
$ bonus_segment_value_10 = min(max(0, store.yuki_belly_level - _base_max_b - (k * 10)), 10)
bar style "inflation_bar_style" value bonus_segment_value_10 range 10 xsize 40
$ num_bonus_1_segments_b = _bonus_max_b % 10
for j in range(num_bonus_1_segments_b):
$ bonus_segment_value_1 = min(max(0, store.yuki_belly_level - _base_max_b - (num_bonus_10_segments_b * 10) - j), 1)
bar style "bonus_inflation_bar_style" value bonus_segment_value_1 range 1 xsize 3
hbox:
xminimum 60
text "[store.yuki_belly_level]{color=#888888}[display_change(belly_change)]{/color}" style "hud_text"
# --- Butt Stat and Segmented Bar ---
hbox:
spacing 5
hbox:
xsize 65
text "Butt:" style "hud_text" xalign 1.0
hbox:
spacing 0
yalign 0.5
ysize 15
button:
action NullAction()
hovered [SetVariable("store.hud_elements_hovered", True), SetVariable("global_tooltip_text", get_segmented_bar_tooltip_text("Butt", store.yuki_butt_level, _min_bu_hud_display, _max_bu_hud_display))]
unhovered [SetVariable("store.hud_elements_hovered", False), SetVariable("global_tooltip_text", None)]
background None
yalign 0.5
ysize 15
hbox:
spacing 1
yalign 0.5
ysize 15
$ num_base_segments_bu = (_base_max_bu + 9) // 10 if _base_max_bu > 0 else 0
for i in range(num_base_segments_bu):
python:
segment_start_value = i * 10
segment_value = min(max(0, store.yuki_butt_level - segment_start_value), 10)
style_to_use_bu = "min_inflation_bar_style" if segment_start_value < _min_bu_hud_display else "inflation_bar_style"
bar style style_to_use_bu value segment_value range 10 xsize 40
$ num_bonus_10_segments_bu = _bonus_max_bu // 10
for k in range(num_bonus_10_segments_bu):
$ bonus_segment_value_10 = min(max(0, store.yuki_butt_level - _base_max_bu - (k * 10)), 10)
bar style "inflation_bar_style" value bonus_segment_value_10 range 10 xsize 40
$ num_bonus_1_segments_bu = _bonus_max_bu % 10
for j in range(num_bonus_1_segments_bu):
$ bonus_segment_value_1 = min(max(0, store.yuki_butt_level - _base_max_bu - (num_bonus_10_segments_bu * 10) - j), 1)
bar style "bonus_inflation_bar_style" value bonus_segment_value_1 range 1 xsize 3
hbox:
xminimum 60
text "[store.yuki_butt_level]{color=#888888}[display_change(butt_change)]{/color}" style "hud_text"
# --- Food Stat and Bar ---
hbox:
spacing 5
hbox:
xsize 65
text "Food:" style "hud_text" xalign 1.0
hbox:
spacing 0
yalign 0.5
ysize 15
button:
action NullAction()
hovered [SetVariable("store.hud_elements_hovered", True), SetVariable("global_tooltip_text", get_simple_bar_tooltip_text("Food", store.yuki_food_level, _current_max_food))]
unhovered [SetVariable("store.hud_elements_hovered", False), SetVariable("global_tooltip_text", None)]
background None
yalign 0.5
ysize 15
hbox:
spacing 1
yalign 0.5
ysize 15
bar style "food_bar_style" value store.yuki_food_level range _current_max_food
hbox:
xminimum 60
text "[store.yuki_food_level] / [_current_max_food]" style "hud_text"
[/code]
;)