diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index e92fe345..46dc2a71 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -613,10 +613,19 @@ function onClick_toggleOption(_, id) optionPanel[id] = state end +local PlayerMatAPI = require("playermat/PlaymatApi") function onClick_applySettings() - print("Enabling following settings:") - for id, value in pairs(optionPanel) do - if value then print(id) end + printToAll("---------------------", "White") + printToAll("Applying settings...", "White") + for id, state in pairs(optionPanel) do + if state then print(id) end + + -- option 1: Snap tags + if id == "1" then + printToAll("Playermat snap tags " .. (state and "en" or "dis") .."abled.", "White") + PlayerMatAPI.setLimitSnapsByType(state, "All") + end + end end diff --git a/xml/Global.xml b/xml/Global.xml index a55724e3..cd454e67 100644 --- a/xml/Global.xml +++ b/xml/Global.xml @@ -62,7 +62,7 @@ - Toggle Text 1 + Playermats: Snap tags for 'Assets' Toggle Text 2