diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua
index be3f299a..e92fe345 100644
--- a/src/core/Global.ttslua
+++ b/src/core/Global.ttslua
@@ -135,9 +135,7 @@ function onLoad(savedData)
if savedData then
optionPanel = JSON.decode(savedData)
for id, enabled in pairs(optionPanel) do
- if enabled then
- self.UI.setAttribute("toggle" .. id, "isOn", true)
- end
+ if enabled then self.UI.setAttribute("toggle" .. id, "isOn", true) end
end
else
for i = 1, 8 do
@@ -613,11 +611,13 @@ function onClick_toggleOption(_, id)
self.UI.setAttribute("toggle" .. id, "isOn", state)
optionPanel[id] = state
- print("Option no. " .. id .. ": " .. tostring(optionPanel[id]))
end
function onClick_applySettings()
- print("Dummy: Apply settings")
+ print("Enabling following settings:")
+ for id, value in pairs(optionPanel) do
+ if value then print(id) end
+ end
end
function onClick_toggleUi(_, title)
diff --git a/xml/Global.xml b/xml/Global.xml
index 0ea616c5..a55724e3 100644
--- a/xml/Global.xml
+++ b/xml/Global.xml
@@ -11,80 +11,90 @@
-
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
- Please refresh to see available items.
-
-
-
-
-
-
-
-
-
+
+
+
+
+ Please refresh to see available items.
+
+
+
+
+
+
+
+
+
-
-
-
-
- Toggle Text 1 |
- Toggle Text 2 |
-
-
- Toggle Text 3 |
- Toggle Text 4 |
-
-
- Toggle Text 5 |
- Toggle Text 6 |
-
-
- Toggle Text 7 |
- Toggle Text 8 |
-
-
-
-
-
-
+
+
+
+
+
+ Toggle Text 1
+ |
+
+ Toggle Text 2
+ |
+
+
+
+ Toggle Text 3
+ |
+
+ Toggle Text 4
+ |
+
+
+
+ Toggle Text 5
+ |
+
+ Toggle Text 6
+ |
+
+
+
+ Toggle Text 7
+ |
+
+ Toggle Text 8
+ |
+
+
+
+
+
+
\ No newline at end of file