From c8dab31265c5f92eb53f1aef2158b192753707fd Mon Sep 17 00:00:00 2001 From: GreenComfyTea Date: Thu, 3 Aug 2023 12:20:08 +0300 Subject: [PATCH] Add back(?) label include customization code --- .../UI/Customizations/label_customization.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/reframework/autorun/MHR_Overlay/UI/Customizations/label_customization.lua b/reframework/autorun/MHR_Overlay/UI/Customizations/label_customization.lua index 65975a6..800b3dc 100644 --- a/reframework/autorun/MHR_Overlay/UI/Customizations/label_customization.lua +++ b/reframework/autorun/MHR_Overlay/UI/Customizations/label_customization.lua @@ -61,6 +61,17 @@ function this.draw(label_name, label) imgui.tree_pop(); end + if label.include ~= nil then + if imgui.tree_node(cached_language.include) then + for include_name, include in pairs(label.include) do + changed, label.include[include_name] = imgui.checkbox(cached_language[include_name], label.include[include_name]); + label_changed = label_changed or changed; + end + + imgui.tree_pop(); + end + end + if imgui.tree_node(cached_language.offset) then changed, label.offset.x = imgui.drag_float(cached_language.x, label.offset.x, 0.1, -screen.width, screen.width, "%.1f"); label_changed = label_changed or changed; @@ -79,8 +90,7 @@ function this.draw(label_name, label) end if imgui.tree_node(cached_language.shadow) then - changed, label.shadow.visibility = imgui.checkbox(cached_language - .visible, label.shadow.visibility); + changed, label.shadow.visibility = imgui.checkbox(cached_language.visible, label.shadow.visibility); label_changed = label_changed or changed; if imgui.tree_node(cached_language.offset) then