~raiguard/TaskList

56374a75d079aae2362efd1e25259c658681a89f — raiguard 9 months ago 72d5900
Add option to add to the top by default
M src/changelog.txt => src/changelog.txt +1 -0
@@ 2,6 2,7 @@
Version: 0.4.0
Date: ????
  Features:
    - Added an option to automatically add new tasks to the top
    - Added an option to automatically mark new tasks as in progress
    - Added an option to show the active (topmost in progress) task at the top of the screen
  Changes:

M src/locale/en/TaskList.cfg => src/locale/en/TaskList.cfg +2 -1
@@ 6,6 6,7 @@ tlst-toggle-gui=View tasks
tlst-show-active-task=The active task is the topmost "in progress" task on your list that is at the root level (not a subtask).

[mod-setting-name]
tlst-new-tasks-at-top=Automatically add new tasks to the top
tlst-new-task-on-confirm=Open new task window on confirm
tlst-new-tasks-in-progress=Automatically mark new tasks as in progress
tlst-show-active-task=Show active task [img=info]


@@ 41,7 42,7 @@ tlst-unassigned=Unassigned
tlst-task-must-have-title=Task must have a title

[mod-description]
TaskList=Keep track of your tasks in a simple and unobtrusive interface.
TaskList=Keep track of your tasks / todos in a simple and unobtrusive interface.

[mod-name]
TaskList=Task List

M src/scripts/gui/edit-task/index.lua => src/scripts/gui/edit-task/index.lua +1 -1
@@ 199,7 199,7 @@ function index.new(player, player_table, options)
            {
              type = "checkbox",
              caption = { "gui.tlst-add-to-top" },
              state = false,
              state = player.mod_settings["tlst-new-tasks-at-top"].value,
              ref = { "add_to_top_checkbox" },
            },
            { type = "empty-widget", style = "flib_horizontal_pusher" },

M src/settings.lua => src/settings.lua +1 -0
@@ 18,4 18,5 @@ data:extend({
    setting_type = "runtime-per-user",
    default_value = false,
  },
  { type = "bool-setting", name = "tlst-new-tasks-at-top", setting_type = "runtime-per-user", default_value = false },
})