z_mirror/Tapeline
git clone https://git.raiguard.me/z_mirror/Tapeline
2411920
3.0
1local data_util =require ( "__flib__.data-util" ) 2 3data : extend ( { 4{ 5type ="custom-input" , 6name ="tl-get-tool" , 7key_sequence ="ALT + M" , 8action ="spawn-item" , 9item_to_spawn ="tl-tool" , 10order ="a" , 11} , 12{ 13type ="custom-input" , 14name ="tl-edit-tape" , 15key_sequence ="mouse-button-2" , 16order ="b" , 17} , 18{ 19type ="custom-input" , 20name ="tl-delete-tape" , 21key_sequence ="SHIFT + mouse-button-2" , 22order ="c" , 23} , 24{ 25type ="custom-input" , 26name ="tl-increase-divisor" , 27key_sequence ="SHIFT + mouse-wheel-up" , 28order ="d" , 29} , 30{ 31type ="custom-input" , 32name ="tl-decrease-divisor" , 33key_sequence ="SHIFT + mouse-wheel-down" , 34order ="e" , 35} , 36{ 37type ="custom-input" , 38name ="tl-next-mode" , 39key_sequence ="CONTROL + mouse-wheel-up" , 40order ="f" , 41} , 42{ 43type ="custom-input" , 44name ="tl-previous-mode" , 45key_sequence ="CONTROL + mouse-wheel-down" , 46order ="g" , 47} , 48{ 49type ="custom-input" , 50name ="tl-linked-clear-cursor" , 51key_sequence ="" , 52linked_game_control ="clear-cursor" , 53} , 54{ 55type ="collision-layer" , 56name ="tapeline" , 57} , 58{ 59type ="simple-entity-with-force" , 60name ="tl-dummy-entity" , 61flags ={ "not-on-map" , "player-creation" } , 62hidden =true , 63collision_box ={ { - 0.4 , - 0.4 } , { 0.4 , 0.4 } } , 64collision_mask ={ layers ={ tapeline =true } } , 65selectable_in_game =false , 66picture ={ 67filename =data_util . empty_image , 68width =8 , 69height =8 , 70} , 71build_sound ={ 72filename ="__core__/sound/silence-1sec.ogg" , 73} , 74created_smoke ={ smoke_name ="tl-empty-smoke" } , 75alert_when_damaged =false , 76} , 77{ 78type ="highlight-box" , 79name ="tl-highlight-box" , 80} , 81{ 82type ="selection-tool" , 83name ="tl-tool" , 84localised_name ={ "item-name.tl-tool" } , 85icons ={ 86{ icon =data_util . black_image , icon_size =1 , scale =64 } , 87{ icon ="__Tapeline__/graphics/item/tapeline-tool.png" , icon_size =32 , icon_mipmaps =2 } , 88} , 89subgroup ="tool" , 90order ="c[automated-construction]-x" , 91select ={ 92mode ="nothing" , 93border_color ={ a =0 } , 94cursor_box_type ="not-allowed" , 95} , 96alt_select ={ 97mode ="nothing" , 98border_color ={ a =0 } , 99cursor_box_type ="not-allowed" , 100} , 101place_result ="tl-dummy-entity" , 102stack_size =10 , 103flags ={ "only-in-cursor" , "spawnable" } , 104hidden =true , 105draw_label_for_cursor_render =true , 106mouse_cursor ="tl-tool-cursor" , 107} , 108{ 109type ="mouse-cursor" , 110name ="tl-tool-cursor" , 111filename ="__Tapeline__/graphics/cursor/draw-cursor.png" , 112hot_pixel_x =1 , 113hot_pixel_y =1 , 114} , 115{ 116type ="shortcut" , 117name ="tl-get-tool" , 118order ="a[alt-mode]-b[copy]" , 119associated_control_input ="tl-get-tool" , 120action ="spawn-item" , 121item_to_spawn ="tl-tool" , 122icon ="__Tapeline__/graphics/shortcut/shortcut-x32.png" , 123icon_size =32 , 124small_icon ="__Tapeline__/graphics/shortcut/shortcut-x24.png" , 125small_icon_size =24 , 126} , 127-- { 128-- type = "tips-and-tricks-item-category", 129-- name = "tapeline", 130-- order = "l-[tapeline]", 131-- }, 132-- { 133-- type = "tips-and-tricks-item", 134-- name = "tl-introduction", 135-- category = "tapeline", 136-- order = "a", 137-- is_title = true, 138-- trigger = { type = "dependencies-met" }, 139-- image = "__Tapeline__/graphics/tips-and-tricks/introduction.png", 140-- }, 141-- { 142-- type = "tips-and-tricks-item", 143-- name = "tl-persistent", 144-- category = "tapeline", 145-- order = "b", 146-- indent = 1, 147-- dependencies = { "tl-introduction" }, 148-- trigger = { type = "dependencies-met" }, 149-- image = "__Tapeline__/graphics/tips-and-tricks/persistent.png", 150-- }, 151-- { 152-- type = "tips-and-tricks-item", 153-- name = "tl-modes", 154-- category = "tapeline", 155-- order = "c", 156-- indent = 1, 157-- dependencies = { "tl-introduction" }, 158-- trigger = { type = "dependencies-met" }, 159-- image = "__Tapeline__/graphics/tips-and-tricks/modes.png", 160-- }, 161-- { 162-- type = "tips-and-tricks-item", 163-- name = "tl-divisors", 164-- category = "tapeline", 165-- order = "d", 166-- indent = 1, 167-- dependencies = { "tl-introduction" }, 168-- trigger = { type = "dependencies-met" }, 169-- image = "__Tapeline__/graphics/tips-and-tricks/divisors.png", 170-- }, 171-- { 172-- type = "tips-and-tricks-item", 173-- name = "tl-edit", 174-- category = "tapeline", 175-- order = "e", 176-- indent = 1, 177-- dependencies = { "tl-introduction" }, 178-- trigger = { type = "dependencies-met" }, 179-- image = "__Tapeline__/graphics/tips-and-tricks/edit.png", 180-- }, 181{ 182type ="trivial-smoke" , 183name ="tl-empty-smoke" , 184animation ={ 185filename =data_util . empty_image , 186size ={ 1 , 1 } , 187frame_count =8 , 188} , 189duration =1 , 190} , 191} )