Skip to content
Snippets Groups Projects
Commit c429d6b5 authored by dg's avatar dg
Browse files

Added an option to revert melee targetting to the classic targetting mode

git-svn-id: http://svn.net-core.org/repos/t-engine4@6700 51575b47-30f0-44d4-a5cc-537603b46e54
parent 664838b4
No related branches found
No related tags found
No related merge requests found
......@@ -302,6 +302,15 @@ function _M:generateListGameplay()
self.c_list:drawItem(item)
end,}
local zone = Textzone.new{width=self.c_desc.w, height=self.c_desc.h, text=string.toTString"Enables quick melee targetting.\nTalents that require a melee target will automatically target when pressing a direction key instead of requiring a confirmation.#WHITE#"}
list[#list+1] = { zone=zone, name=string.toTString"#GOLD##{bold}#Quick melee targetting#WHITE##{normal}#", status=function(item)
return tostring(config.settings.tome.immediate_melee_keys and "enabled" or "disabled")
end, fct=function(item)
config.settings.tome.immediate_melee_keys = not config.settings.tome.immediate_melee_keys
game:saveSettings("tome.immediate_melee_keys", ("tome.immediate_melee_keys = %s\n"):format(tostring(config.settings.tome.immediate_melee_keys)))
self.c_list:drawItem(item)
end,}
local zone = Textzone.new{width=self.c_desc.w, height=self.c_desc.h, text=string.toTString"New games begin with some talent points auto-assigned.#WHITE#"}
list[#list+1] = { zone=zone, name=string.toTString"#GOLD##{bold}#Auto-assign talent points at birth#WHITE##{normal}#", status=function(item)
return tostring(config.settings.tome.autoassign_talents_on_birth and "enabled" or "disabled")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment