Promote deprecation warning for [option]message= to level 3
Addresses #3980
This commit is contained in:
parent
f40b0cf796
commit
2271de81b7
1 changed files with 2 additions and 2 deletions
|
@ -300,7 +300,7 @@ function wesnoth.wml_actions.message(cfg)
|
|||
if wesnoth.eval_conditional(condition) then
|
||||
if option.message and not option.image and not option.label then
|
||||
local message = tostring(option.message)
|
||||
wesnoth.deprecated_message("[option]message=", 2, "1.15.0", "Use label= instead.");
|
||||
wesnoth.deprecated_message("[option]message=", 3, "1.15.0", "Use label= instead.");
|
||||
-- Legacy format
|
||||
table.insert(options, option.message)
|
||||
else
|
||||
|
@ -312,7 +312,7 @@ function wesnoth.wml_actions.message(cfg)
|
|||
value = option.value
|
||||
}
|
||||
if option.message then
|
||||
wesnoth.deprecated_message("[option]message=", 2, "1.15.0", "Use label= instead.");
|
||||
wesnoth.deprecated_message("[option]message=", 3, "1.15.0", "Use label= instead.");
|
||||
if not option.label then
|
||||
-- Support either message or description
|
||||
opt.label = option.message
|
||||
|
|
Loading…
Add table
Reference in a new issue