forked from meepen/neatevolve
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathosd.lua
More file actions
24 lines (20 loc) · 641 Bytes
/
Copy pathosd.lua
File metadata and controls
24 lines (20 loc) · 641 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
local exports = {}
package.loaded.osd = exports
require "globals"
function exports.displayBanner(line1, line2)
local bx = 37
local by = 201
gui.drawRectangle(bx, by, 181, 19, 0xFF303030, 0xFF000000)
gui.pixelText(bx + 2, by + 2, line1, 0xFFFFFFFF, 0x00000000)
gui.pixelText(bx + 2, by + 11, line2, 0xFFFFFFFF, 0x00000000)
end
function exports.displayInputs(controller)
for b=1,#ButtonNames do
if (controller[ButtonNames[b]]) then
gui.pixelText(2, (8 * b) + 26, ButtonNames[b]:sub(4), 0xFFFFFFFF, 0x8080FF80)
else
gui.pixelText(2, (8 * b) + 26, ButtonNames[b]:sub(4), 0x80FFFFFF, 0x80808080)
end
end
end
return exports