z_mirror/PipeVisualizer
git clone https://git.raiguard.me/z_mirror/PipeVisualizer
f906db3
2.0
1data : extend ( { 2{ 3type ="custom-input" , 4name ="pv-visualize-selected" , 5key_sequence ="H" , 6action ="lua" , 7} , 8{ 9type ="custom-input" , 10name ="pv-toggle-overlay" , 11key_sequence ="SHIFT + H" , 12action ="lua" , 13} , 14{ 15type ="custom-input" , 16name ="pv-toggle-hover" , 17key_sequence ="" , 18action ="lua" , 19} , 20{ 21type ="shortcut" , 22name ="pv-toggle-hover" , 23icon ={ 24filename ="__PipeVisualizer__/graphics/hover-dark-x32.png" , 25size =32 , 26mipmap_count =2 , 27flags ={ "gui-icon" } , 28} , 29disabled_icon ={ 30filename ="__PipeVisualizer__/graphics/hover-light-x32.png" , 31size =32 , 32mipmap_count =2 , 33flags ={ "gui-icon" } , 34} , 35small_icon ={ 36filename ="__PipeVisualizer__/graphics/hover-dark-x24.png" , 37size =24 , 38mipmap_count =2 , 39flags ={ "gui-icon" } , 40} , 41disabled_small_icon ={ 42filename ="__PipeVisualizer__/graphics/hover-light-x24.png" , 43size =24 , 44mipmap_count =2 , 45flags ={ "gui-icon" } , 46} , 47associated_control_input ="pv-toggle-hover" , 48action ="lua" , 49toggleable =true , 50} , 51{ 52type ="shortcut" , 53name ="pv-toggle-overlay" , 54icon ={ 55filename ="__PipeVisualizer__/graphics/overlay-dark-x32.png" , 56size =32 , 57mipmap_count =2 , 58flags ={ "gui-icon" } , 59} , 60disabled_icon ={ 61filename ="__PipeVisualizer__/graphics/overlay-light-x32.png" , 62size =32 , 63mipmap_count =2 , 64flags ={ "gui-icon" } , 65} , 66small_icon ={ 67filename ="__PipeVisualizer__/graphics/overlay-dark-x24.png" , 68size =24 , 69mipmap_count =2 , 70flags ={ "gui-icon" } , 71} , 72disabled_small_icon ={ 73filename ="__PipeVisualizer__/graphics/overlay-light-x24.png" , 74size =24 , 75mipmap_count =2 , 76flags ={ "gui-icon" } , 77} , 78associated_control_input ="pv-toggle-overlay" , 79action ="lua" , 80toggleable =true , 81} , 82} ) 83 84local storage_tank =table . deepcopy ( data . raw [ "storage-tank" ][ "storage-tank" ]) 85storage_tank . name ="cursed-storage-tank" 86storage_tank . fluid_box . pipe_connections [ 1 ]. max_underground_distance =5 87storage_tank . fluid_box . pipe_connections [ 3 ]. max_underground_distance =5 88data : extend ( { storage_tank } ) 89 90data : extend ( { 91{ 92type ="sprite" , 93name ="pv-entity-box" , 94filename ="__PipeVisualizer__/graphics/entity-box.png" , 95size =64 , 96scale =0.5 , 97flags ={ "icon" } , 98draw_as_glow =true , 99} , 100{ 101type ="sprite" , 102name ="pv-underground-connection" , 103filename ="__PipeVisualizer__/graphics/underground-connection.png" , 104size =64 , 105scale =0.5 , 106flags ={ "icon" } , 107draw_as_glow =true , 108} , 109{ 110type ="sprite" , 111name ="pv-fluid-arrow" , 112filename ="__PipeVisualizer__/graphics/fluid-arrow.png" , 113size =48 , 114scale =0.5 , 115flags ={ "icon" } , 116draw_as_glow =true , 117} , 118{ 119type ="sprite" , 120name ="pv-fluid-arrow-output" , 121filename ="__PipeVisualizer__/graphics/fluid-arrow-output.png" , 122size =48 , 123scale =0.5 , 124flags ={ "icon" } , 125draw_as_glow =true , 126} , 127{ 128type ="sprite" , 129name ="pv-fluid-arrow-input" , 130filename ="__PipeVisualizer__/graphics/fluid-arrow-input.png" , 131size =48 , 132scale =0.5 , 133flags ={ "icon" } , 134draw_as_glow =true , 135} , 136{ 137type ="sprite" , 138name ="pv-fluid-arrow-input-output" , 139filename ="__PipeVisualizer__/graphics/fluid-arrow-input-output.png" , 140size =48 , 141scale =0.5 , 142flags ={ "icon" } , 143draw_as_glow =true , 144} , 145} ) 146 147for i =0 , 15 do 148data : extend ( { 149{ 150type ="sprite" , 151name ="pv-pipe-connections-" .. i , 152filename ="__PipeVisualizer__/graphics/pipe-connections.png" , 153x =i * 64 , 154size =64 , 155scale =0.5 , 156flags ={ "icon" } , 157draw_as_glow =true , 158} , 159} ) 160end