From d36f0b3d443f7e0b5992fb0491e920a8a5c48d85 Mon Sep 17 00:00:00 2001 From: bi Date: Wed, 6 Jun 2018 20:11:44 +0300 Subject: [PATCH] Options: automatic concatenation of the option name and a tooltip --- vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua index c2d48b7..dd97621 100644 --- a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua +++ b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua @@ -4366,7 +4366,8 @@ vmf.create_options = function (mod, widgets_definition) new_widget_definition.mod_name = mod:get_name() -- all [gen] new_widget_definition.setting_name = current_widget.setting_name -- all new_widget_definition.text = current_widget.text -- all - new_widget_definition.tooltip = current_widget.tooltip -- all [optional] + new_widget_definition.tooltip = current_widget.tooltip and (current_widget.text .. "\n" .. + current_widget.tooltip) -- all [optional] new_widget_definition.unit_text = current_widget.unit_text -- numeric [optional] new_widget_definition.range = current_widget.range -- numeric new_widget_definition.decimals_number = current_widget.decimals_number -- numeric [optional]