z_mirror/Tapeline
git clone https://git.raiguard.me/z_mirror/Tapeline
e8fa7ab
trunk
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 ="ALT + mouse-wheel-up" , 28order ="d" , 29} , 30{ 31type ="custom-input" , 32name ="tl-decrease-divisor" , 33key_sequence ="ALT + 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 ="highlight-box" , 56name ="tl-highlight-box" , 57} , 58{ 59type ="selection-tool" , 60name ="tl-tool" , 61localised_name ={ "item-name.tl-tool" } , 62icons ={ 63{ icon =data_util . black_image , icon_size =1 , scale =64 } , 64{ icon ="__Tapeline__/graphics/item/tapeline-tool.png" , icon_size =32 , icon_mipmaps =2 } , 65} , 66subgroup ="tool" , 67order ="c[automated-construction]-x" , 68select ={ 69mode ="nothing" , 70border_color ={ a =0 } , 71cursor_box_type ="not-allowed" , 72} , 73alt_select ={ 74mode ="nothing" , 75border_color ={ a =0 } , 76cursor_box_type ="not-allowed" , 77} , 78stack_size =1 , 79flags ={ "only-in-cursor" , "spawnable" , "not-stackable" } , 80hidden =true , 81draw_label_for_cursor_render =true , 82mouse_cursor ="tl-tool-cursor" , 83send_pre_selection_events =true , 84} , 85{ 86type ="mouse-cursor" , 87name ="tl-tool-cursor" , 88filename ="__Tapeline__/graphics/cursor/draw-cursor.png" , 89hot_pixel_x =1 , 90hot_pixel_y =1 , 91} , 92{ 93type ="shortcut" , 94name ="tl-get-tool" , 95order ="a[alt-mode]-b[copy]" , 96associated_control_input ="tl-get-tool" , 97action ="spawn-item" , 98item_to_spawn ="tl-tool" , 99icon ="__Tapeline__/graphics/shortcut/shortcut-x56.png" , 100icon_size =56 , 101small_icon ="__Tapeline__/graphics/shortcut/shortcut-x24.png" , 102small_icon_size =24 , 103} , 104{ 105type ="tips-and-tricks-item-category" , 106name ="tapeline" , 107order ="l-[tapeline]" , 108} , 109{ 110type ="tips-and-tricks-item" , 111name ="tl-introduction" , 112category ="tapeline" , 113order ="a" , 114is_title =true , 115image ="__Tapeline__/graphics/tips-and-tricks/introduction.png" , 116} , 117{ 118type ="tips-and-tricks-item" , 119name ="tl-persistent" , 120category ="tapeline" , 121order ="b" , 122indent =1 , 123dependencies ={ "tl-introduction" } , 124trigger ={ type ="dependencies-met" } , 125image ="__Tapeline__/graphics/tips-and-tricks/persistent.png" , 126} , 127{ 128type ="tips-and-tricks-item" , 129name ="tl-modes" , 130category ="tapeline" , 131order ="c" , 132indent =1 , 133dependencies ={ "tl-introduction" } , 134trigger ={ type ="dependencies-met" } , 135image ="__Tapeline__/graphics/tips-and-tricks/modes.png" , 136} , 137{ 138type ="tips-and-tricks-item" , 139name ="tl-divisors" , 140category ="tapeline" , 141order ="d" , 142indent =1 , 143dependencies ={ "tl-introduction" } , 144trigger ={ type ="dependencies-met" } , 145image ="__Tapeline__/graphics/tips-and-tricks/divisors.png" , 146} , 147{ 148type ="tips-and-tricks-item" , 149name ="tl-edit" , 150category ="tapeline" , 151order ="e" , 152indent =1 , 153dependencies ={ "tl-introduction" } , 154trigger ={ type ="dependencies-met" } , 155image ="__Tapeline__/graphics/tips-and-tricks/edit.png" , 156} , 157{ 158type ="trivial-smoke" , 159name ="tl-empty-smoke" , 160animation ={ 161filename =data_util . empty_image , 162size ={ 1 , 1 } , 163frame_count =8 , 164} , 165duration =1 , 166} , 167} )