mutators: tooltip adjustments

This commit is contained in:
UnShame 2018-02-22 18:21:20 +03:00
parent 5943a29623
commit afb4b3fa57

View file

@ -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,