z_mirror/TaskList
git clone https://git.raiguard.me/z_mirror/TaskList
bbcaa7a
task-details-gui
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" , 62bottom_padding =6 , 63left_padding =8 , 64right_padding =8 , 65top_padding =4 , 66graphical_set ={ 67base ={ 68position ={ 85 , 0 } , 69corner_size =8 , 70center ={ position ={ 42 , 8 } , width =1 , height =1 } , 71draw_type ="outer" , 72} , 73shadow =default_inner_shadow , 74} , 75} 76 77styles . tlst_red_dialog_button ={ 78type ="button_style" , 79parent ="dialog_button" , 80default_graphical_set =styles . red_button . default_graphical_set , 81hovered_graphical_set =styles . red_button . hovered_graphical_set , 82clicked_graphical_set =styles . red_button . clicked_graphical_set , 83} 84 85styles . tlst_tasks_scroll_pane ={ 86type ="scroll_pane_style" , 87parent ="flib_naked_scroll_pane" , 88top_padding =2 , 89vertical_flow_style ={ 90type ="vertical_flow_style" , 91vertical_spacing =0 , 92} , 93}