summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-04-09 09:02:07 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-04-09 09:02:07 -0500
commitcf8c7fb20687115450296ba42869562ea652bf51 (patch)
tree73f14ce27b5209b2f17b392e12f29d4f455fd644 /plugins
parentdb332408623dff5fbf6ee7d0ff617ccd8156fc7e (diff)
luaengine: make flags explicit (nw)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cheat/init.lua12
-rw-r--r--plugins/cheatfind/init.lua22
-rw-r--r--plugins/timer/init.lua12
3 files changed, 23 insertions, 23 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index 72b1ba83e9f..63bd76271f2 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -260,17 +260,17 @@ function cheat.startplugin()
menu[num][1] = "---"
end
menu[num][2] = ""
- menu[num][3] = 32 -- MENU_FLAG_DISABLE
+ menu[num][3] = "off"
elseif not cheat.script.run and not cheat.script.off then
menu[num][2] = "Set"
menu[num][3] = 0
else
if cheat.enabled then
menu[num][2] = "On"
- menu[num][3] = 1 -- MENU_FLAG_LEFT_ARROW
+ menu[num][3] = "l"
else
menu[num][2] = "Off"
- menu[num][3] = 2 -- MENU_FLAG_RIGHT_ARROW
+ menu[num][3] = "r"
end
end
else
@@ -280,16 +280,16 @@ function cheat.startplugin()
else
menu[num][2] = "Off"
end
- menu[num][3] = 2
+ menu[num][3] = "r"
else
if cheat.parameter.item then
menu[num][2] = cheat.parameter.item[cheat.parameter.index].text
else
menu[num][2] = cheat.parameter.value
end
- menu[num][3] = 1
+ menu[num][3] = "l"
if cheat.parameter.index < cheat.parameter.last then
- menu[num][3] = 3
+ menu[num][3] = "lr"
end
end
end
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua
index 582bf86e8aa..16000571f87 100644
--- a/plugins/cheatfind/init.lua
+++ b/plugins/cheatfind/init.lua
@@ -139,38 +139,38 @@ function cheatfind.startplugin()
if #devtable == 1 then
menu[1][3] = 0
elseif devsel == 1 then
- menu[1][3] = 2
+ menu[1][3] = "r"
elseif devsel == #devtable then
- menu[1][3] = 1
+ menu[1][3] = "l"
else
- menu[1][3] = 3
+ menu[1][3] = "lr"
end
menu[2] = { "Init", "", 0 }
if next(menu_blocks) then
- menu[3] = { "---", "", 32 }
+ menu[3] = { "---", "", "off" }
menu[4] = {}
menu[4][1] = "Operator"
menu[4][2] = optable[opsel]
if opsel == 1 then
- menu[4][3] = 2
+ menu[4][3] = "r"
elseif opsel == #optable then
- menu[4][3] = 1
+ menu[4][3] = "l"
else
- menu[4][3] = 3
+ menu[4][3] = "lr"
end
menu[5] = {}
menu[5][1] = "Change"
menu[5][2] = change
if change == 0 then
menu[5][2] = "Any"
- menu[5][3] = 2
+ menu[5][3] = "r"
elseif change == 100 then --?
- menu[5][3] = 1
+ menu[5][3] = "l"
else
- menu[5][3] = 3
+ menu[5][3] = "lr"
end
menu[6] = { "Compare", "", 0 }
- menu[7] = { "---", "", 32 }
+ menu[7] = { "---", "", "off" }
for num, list in ipairs(matches) do
for num2, match in ipairs(list) do
if #menu > 50 then
diff --git a/plugins/timer/init.lua b/plugins/timer/init.lua
index 3b00bb01f9b..3a96f019f0d 100644
--- a/plugins/timer/init.lua
+++ b/plugins/timer/init.lua
@@ -75,12 +75,12 @@ function timer.startplugin()
local function menu_populate()
local time = os.time() - start_time
- return {{ "Current time", "", 32 },
- { sectohms(time), "", 32 },
- { "Total time", "", 32 },
- { sectohms(total_time + time), "", 32 },
- { "Play Count", "", 32 },
- { play_count, "", 32 }}
+ return {{ "Current time", "", "off" },
+ { sectohms(time), "", "off" },
+ { "Total time", "", "off" },
+ { sectohms(total_time + time), "", "off" },
+ { "Play Count", "", "off" },
+ { play_count, "", "off" }}
end
local function menu_callback(index, event)