z_mirror/BottleneckLite
git clone https://git.raiguard.me/z_mirror/BottleneckLite
a5db321
new-style
1local constants =require ( "__BottleneckLite__/constants" ) 2 3data : extend ( { 4{ 5type ="bool-setting" , 6name ="bnl-enable" , 7setting_type ="startup" , 8default_value =true , 9order ="aa" , 10} , 11{ 12type ="bool-setting" , 13name ="bnl-glow" , 14setting_type ="startup" , 15default_value =true , 16order ="ab" , 17} , 18{ 19type ="bool-setting" , 20name ="bnl-include-mining-drills" , 21setting_type ="startup" , 22default_value =true , 23order ="ac" , 24} , 25{ 26type ="string-setting" , 27name ="bnl-indicator-style" , 28setting_type ="startup" , 29default_value ="default" , 30allowed_values ={ "default" , "solid" } , 31order ="ba" , 32} , 33{ 34type ="string-setting" , 35name ="bnl-indicator-size" , 36setting_type ="startup" , 37default_value =constants . default_size , 38allowed_values =constants . size_settings , 39order ="bb" , 40} , 41} ) 42 43local color_settings ={} 44for name , spec in pairs ( constants . status_settings ) do 45color_settings [ # color_settings + 1 ] ={ 46type ="string-setting" , 47name ="bnl-color-" .. name , 48localised_name ={ "mod-setting-name.bnl-color-setting" , { "mod-setting-name.bnl-status-" .. name } } , 49setting_type ="startup" , 50default_value =spec . color , 51allowed_values =constants . color_settings , 52order =spec . order , 53} 54end 55 56data : extend ( color_settings )