Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- e, side, player, uuid, msg_raw = os.pullEvent("glasses_chat_command")
- msg = string.lower(msg_raw)
- if msg == "me" then
- while string.lower(msg_raw) == "me" do
- bridge.clear()
- bridge.addBox(5,-150,200,100,0x000000,50).setScreenAnchor("left", "bottom")
- bridge.addText(10,-60,"ComputeX BaseSense(TM) v 2.0",0xcccccc).setScreenAnchor("left", "bottom")
- bridge.addText(10,-145,"ME Network:",0xff9966).setScreenAnchor("left", "bottom")
- bridge.addText(13,-125,"Power: " .. ae.getStoredPower(),0xffffff).setScreenAnchor("left", "bottom")
- bridge.addText(13,-115,"Avg Power Usage: " .. ae.getAvgPowerUsage(),0xffffff).setScreenAnchor("left", "bottom")
- bridge.sync()
- sleep(0.5)
- end
- elseif msg == "test2" then
- bridge.clear()
- bridge.addBox(5,-150,200,100,0x000000,50).setScreenAnchor("left", "bottom")
- bridge.addText(10,-60,"ComputeX BaseSense(TM) v 2.0",0xcccccc).setScreenAnchor("left", "bottom")
- else
- bridge.clear()
- bridge.addBox(5,-150,200,100,0x000000,50).setScreenAnchor("left", "bottom")
- bridge.addText(10,-60,"ComputeX BaseSense(TM) v 2.0",0xcccccc).setScreenAnchor("left", "bottom")
- end
- bridge.sync()
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement