mutators: tooltip adjustments
This commit is contained in:
parent
5943a29623
commit
afb4b3fa57
1 changed files with 7 additions and 2 deletions
|
@ -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,
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue