The AR Controller is used to control your AR Goggles wirelessly. You can draw anything you wish into an overlay that will be visible as long as you're wearing the goggles.
To link your goggles to an AR Controller, right click it with them in your hand. Multiple Goggles can be linked to one Controller.
While the Controller is in relative mode, it interprets all coordinates as if they were on a virtual screen the size you specified, and then scales them according to your screen size.
All color values are hexadecimal color codes (for example
|isRelativeMode()||boolean[, int, int]||Returns true and the size of the virtual screen if relative mode is active, or just false if it isn't.|
|setRelativeMode(boolean enabled[, int virtualScreenWidth, int virtualScreenHeight])||Activates or deactivates relative mode. Requires virtual screen width and height if it's being enabled.|
|drawString(string text, int x, int y, int color)||Draws the given string to the specified position and the specified color.|
|drawCenteredString(string text, int x, int y, int color)||The same as
|drawRightboundString(string text, int x, int y, int color)||The same as
|drawCircle(int x, int y, int radius, int color)||Draws a circle without filling it.|
|drawItemIcon(string itemId, int x, int y)||Draws the given item to the specified position.|
|horizontalLine(int minX, int maxX, int y, int color)||Draws a horizontal line in the given color from minX to maxX at vertical y.|
|verticalLine(int x, int minY, int maxY, int color)||Draws a vertical line in the given color from minY to maxY at horizontal x.|
|fill(int minX, int minY, int maxX, int maxY, int color)||Fills a rectangle with the given color from the corner minX, minY to maxX, maxY.|
|fillGradient(int minX, int minY, int maxX, int maxY, int colorFrom, int colorTo)||Draws a rectangular gradient from colorFrom to colorTo with the given corners.|
|fillCircle(int x, int y, int radius, int color)||Draws a full circle.|
|clear()||Clears the entire canvas.|
Everything that's painted onto the canvas remains there until
clear() is called, however, it might be repositioned if relative mode is toggled on or off.
Use negative coordinates to specify an x value from the right end of the screen or a y value from the bottom!
Olfi01 made a simple script that shows the current date and time in the top right corner of the screen and updates every second.
1 2 3 4 5 6 7 8 9 10 11
Another Example: Olfi01 made another script to draw .nfp files, which you can draw with the paint program, in cc in your HUD.
First, we have a script with more adaptability. You can define x, y, width and height.
And we have another script which depends on the script above, but is simpler to use.
0.5.2b Added fillCircle, drawCircle and drawItemIcon.
0.5b Added the AR Controller and Goggles, made by Olfi01#6413