-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathperiscope.json
1 lines (1 loc) · 2.06 KB
/
periscope.json
1
{"slots":{"0":{"name":"slot1","type":{"events":[],"methods":[]}},"1":{"name":"slot2","type":{"events":[],"methods":[]}},"2":{"name":"slot3","type":{"events":[],"methods":[]}},"3":{"name":"slot4","type":{"events":[],"methods":[]}},"4":{"name":"slot5","type":{"events":[],"methods":[]}},"5":{"name":"slot6","type":{"events":[],"methods":[]}},"6":{"name":"slot7","type":{"events":[],"methods":[]}},"7":{"name":"slot8","type":{"events":[],"methods":[]}},"8":{"name":"slot9","type":{"events":[],"methods":[]}},"9":{"name":"slot10","type":{"events":[],"methods":[]}},"-1":{"name":"unit","type":{"events":[],"methods":[]}},"-3":{"name":"player","type":{"events":[],"methods":[]}},"-2":{"name":"construct","type":{"events":[],"methods":[]}},"-4":{"name":"system","type":{"events":[],"methods":[]}},"-5":{"name":"library","type":{"events":[],"methods":[]}}},"handlers":[{"code":"periscope_border_color = 'rgba(255, 255, 255, 0.3)' --export: Periscope border color\nperiscope_background_color = 'rgba(255, 255, 255, 0.2)' -- export: Periscope background color\nunit.hideWidget()\nfunction getPeriscope(startWidth, endWidth)\n return [[\n<style>\nimg {\n position: fixed;\n width: ]]..endWidth..[[vw;\n max-height: 100%;\n bottom: 34vh;\n left: 1.8vw;\n border-radius: 8px;\n animation:blinking 0.5s 1;\n border-left: 4px solid ]]..periscope_border_color..[[;\n border-right: 4px solid ]]..periscope_border_color..[[;\n background-color: ]]..periscope_background_color..[[;\n}\n@keyframes blinking{\n 0%{ width: ]]..startWidth..[[vw; }\n 100%{ width: ]]..endWidth..[[vw; }\n}\n</style>\n<img src=\"gunner_target.liveview\">\n]]\nend\nsystem.setScreen(getPeriscope(0,20))\nsystem.showScreen(1)","filter":{"args":[],"signature":"onStart()","slotKey":"-1"},"key":"0"},{"code":"system.setScreen(getPeriscope(20,40))","filter":{"args":[{"value":"lalt"}],"signature":"onActionStart(action)","slotKey":"-4"},"key":"1"},{"code":"system.setScreen(getPeriscope(40,20))","filter":{"args":[{"value":"lalt"}],"signature":"onActionStop(action)","slotKey":"-4"},"key":"2"}],"methods":[],"events":[]}