z_mirror/TaskList
git clone https://git.raiguard.me/z_mirror/TaskList
2b94de0
fix/blueprint-sandboxes-force
1local data_util =require ( "__flib__/data-util" ) 2 3data : extend ( { 4{ type ="custom-input" , name ="tlst-toggle-gui" , key_sequence ="CONTROL + T" , action ="lua" } , 5{ type ="custom-input" , name ="tlst-new-task" , key_sequence ="" , action ="lua" } , 6{ type ="custom-input" , name ="tlst-linked-confirm-gui" , key_sequence ="" , linked_game_control ="confirm-gui" } , 7{ 8type ="shortcut" , 9name ="tlst-toggle-gui" , 10icon ={ filename ="__TaskList__/graphics/tasks-dark-x32.png" , size =32 , mipmap_count =2 } , 11small_icon ={ filename ="__TaskList__/graphics/tasks-dark-x24.png" , size =24 , mipmap_count =2 } , 12disabled_icon ={ filename ="__TaskList__/graphics/tasks-light-x32.png" , size =32 , mipmap_count =2 } , 13disabled_small_icon ={ filename ="__TaskList__/graphics/tasks-light-x24.png" , size =24 , mipmap_count =2 } , 14toggleable =true , 15associated_control_input ="tlst-toggle-gui" , 16action ="lua" , 17} , 18{ 19type ="shortcut" , 20name ="tlst-new-task" , 21icon ={ filename ="__TaskList__/graphics/new-task-dark-x32.png" , size =32 , mipmap_count =2 } , 22small_icon ={ filename ="__TaskList__/graphics/new-task-dark-x24.png" , size =24 , mipmap_count =2 } , 23disabled_icon ={ filename ="__TaskList__/graphics/new-task-light-x32.png" , size =32 , mipmap_count =2 } , 24disabled_small_icon ={ filename ="__TaskList__/graphics/new-task-light-x24.png" , size =24 , mipmap_count =2 } , 25toggleable =true , 26associated_control_input ="tlst-new-task" , 27action ="lua" , 28} , 29{ 30type ="sprite" , 31name ="tlst_arrow_up" , 32filename ="__TaskList__/graphics/tool-icons.png" , 33position ={ 0 , 0 } , 34size =32 , 35mipmap_count =2 , 36flags ={ "icon" } , 37} , 38{ 39type ="sprite" , 40name ="tlst_arrow_down" , 41filename ="__TaskList__/graphics/tool-icons.png" , 42position ={ 0 , 32 } , 43size =32 , 44mipmap_count =2 , 45flags ={ "icon" } , 46} , 47{ 48type ="sprite" , 49name ="tlst_arrow_right" , 50filename ="__TaskList__/graphics/tool-icons.png" , 51position ={ 0 , 64 } , 52size =32 , 53mipmap_count =2 , 54flags ={ "icon" } , 55} , 56} ) 57 58local styles =data . raw [ "gui-style" ][ "default" ] 59 60styles . tlst_description_frame ={ 61type ="frame_style" , 62padding =6 , 63top_padding =4 , 64graphical_set ={ 65base ={ 66position ={ 85 , 0 } , 67corner_size =8 , 68center ={ position ={ 42 , 8 } , width =1 , height =1 } , 69draw_type ="outer" , 70} , 71shadow =default_inner_shadow , 72} , 73} 74 75styles . tlst_red_dialog_button ={ 76type ="button_style" , 77parent ="dialog_button" , 78default_graphical_set =styles . red_button . default_graphical_set , 79hovered_graphical_set =styles . red_button . hovered_graphical_set , 80clicked_graphical_set =styles . red_button . clicked_graphical_set , 81} 82 83styles . tlst_tasks_scroll_pane ={ 84type ="scroll_pane_style" , 85parent ="flib_naked_scroll_pane" , 86top_padding =8 , 87bottom_padding =8 , 88vertical_flow_style ={ 89type ="vertical_flow_style" , 90} , 91} 92 93styles . tlst_task_item_flow ={ 94type ="horizontal_flow_style" , 95height =24 , 96vertical_align ="center" , 97} 98 99styles . tlst_new_task_label ={ 100type ="label_style" , 101font ="default-semibold" , 102font_color ={ 128 , 206 , 240 } , 103hovered_font_color ={ 154 , 250 , 255 } , 104}