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