From afb4b3fa5747d5b747a1f27334643b2e40055dac Mon Sep 17 00:00:00 2001 From: UnShame Date: Thu, 22 Feb 2018 18:21:20 +0300 Subject: [PATCH] mutators: tooltip adjustments --- .../scripts/mods/vmf/modules/mutators/mutator_gui.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vmf_source/scripts/mods/vmf/modules/mutators/mutator_gui.lua b/vmf_source/scripts/mods/vmf/modules/mutators/mutator_gui.lua index 14ef0ed..1e08a11 100644 --- a/vmf_source/scripts/mods/vmf/modules/mutators/mutator_gui.lua +++ b/vmf_source/scripts/mods/vmf/modules/mutators/mutator_gui.lua @@ -326,9 +326,8 @@ local mutators_view = { -- Creates and return text for checkbox tooltip generate_tooltip_for = function(self, mutator) - -- Description local config = mutator:get_config() - local text = config.description + local text = "" -- Show supported difficulty when can't be enabled due to difficulty level local supports_difficulty = mutator:supports_current_difficulty() @@ -371,6 +370,12 @@ local mutators_view = { text = text .. "\nWill be disabled when Play is pressed" end + -- Description + if string.len(text) > 0 then + text = "\n-------------" .. text + end + text = config.description .. text + return text end,