forked from JasonGoemaat/CheatEngineMonoHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonomenu.lua
More file actions
28 lines (24 loc) · 749 Bytes
/
monomenu.lua
File metadata and controls
28 lines (24 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
function mono.menu:init()
--if self.menuSearch or self.timer then return end
self.timer = createTimer()
self.timer.Interval = 1000
self.timer.OnTimer = function(timer)
self.timer.destroy()
self.timer = nil
-- wait for normal mono script to create mono menu
if not miMonoTopMenuItem then return end
self.menuSearch = createMenuItem(miMonoTopMenuItem)
self.menuSearch.Caption = 'Search'
self.menuSearch.Name = 'miMonoSearch'
self.menuSearch.OnClick = function(sender) self:OnSearchClick() end
miMonoTopMenuItem.add(self.menuSearch)
end
end
function mono.menu:OnSearchClick()
if mono.selectedImage then
mono.formSearch:show()
else
mono.formSelectImage:show()
end
end
mono.menu:init()