LuaSetting::hidden
Posted: Mon Apr 06, 2020 4:51 am
Hey,
it would be nice to have a Option to hide a Setting from a Player, so we can have Settings that are only meant to be changed by other mods or used in other mods to register Entities.
Like Klonan does in his Transport Drones mod.
So, this adds these 2 entities with these 2 Files to his mod.
But a Player could change that currently and thats why I would love to get this Option.
Greetz,
Luzifer
it would be nice to have a Option to hide a Setting from a Player, so we can have Settings that are only meant to be changed by other mods or used in other mods to register Entities.
Like Klonan does in his Transport Drones mod.
Code: Select all
if mods["Transport_Drones"] then
data:extend
{
{
type = "string-setting",
name = "transport_drones_add_deep-storage-unit-fluid-big",
setting_type = "startup",
order = "01",
default_value = "__Deep_Storage_Unit__/scripts/units/DSUFB",
localised_name = { "", "DO NOT TOUCH!" }
},
{
type = "string-setting",
name = "transport_drones_add_deep-storage-unit-item-big",
setting_type = "startup",
order = "02",
default_value = "__Deep_Storage_Unit__/scripts/units/DSUIB",
localised_name = { "", "DO NOT TOUCH!" }
}
}
end
But a Player could change that currently and thats why I would love to get this Option.
Greetz,
Luzifer