Options: automatic concatenation of the option name and a tooltip
This commit is contained in:
parent
7205b4eb13
commit
d36f0b3d44
1 changed files with 2 additions and 1 deletions
|
@ -4366,7 +4366,8 @@ vmf.create_options = function (mod, widgets_definition)
|
||||||
new_widget_definition.mod_name = mod:get_name() -- all [gen]
|
new_widget_definition.mod_name = mod:get_name() -- all [gen]
|
||||||
new_widget_definition.setting_name = current_widget.setting_name -- all
|
new_widget_definition.setting_name = current_widget.setting_name -- all
|
||||||
new_widget_definition.text = current_widget.text -- 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.unit_text = current_widget.unit_text -- numeric [optional]
|
||||||
new_widget_definition.range = current_widget.range -- numeric
|
new_widget_definition.range = current_widget.range -- numeric
|
||||||
new_widget_definition.decimals_number = current_widget.decimals_number -- numeric [optional]
|
new_widget_definition.decimals_number = current_widget.decimals_number -- numeric [optional]
|
||||||
|
|
Loading…
Add table
Reference in a new issue