@@ -14,9 +14,8 @@ declare namespace OC.Components {
1414 * A GPU can only be bound to one screen at a time.
1515 * All operations on it will work on the bound screen.
1616 * If you wish to control multiple screens at once, you'll need to put more than one graphics card into your computer.
17- * @tupleReturn
1817 */
19- bind ( address : string , reset ?: boolean ) : [ boolean , string | null ] ;
18+ bind ( address : string , reset ?: boolean ) : LuaMultiReturn < [ boolean , string | null ] > ;
2019
2120 /**
2221 * Get the address of the screen the GPU is bound to. Since 1.3.2.
@@ -28,9 +27,8 @@ declare namespace OC.Components {
2827 * This background color is applied to all “pixels” that get changed by other operations.
2928 * Note that the returned number is either an RGB value in hexadecimal format, i.e. `0xRRGGBB`, or a palette index.
3029 * The second returned value indicates which of the two it is (`true` for palette color, `false` for RGB value).
31- * @tupleReturn
3230 */
33- getBackground ( ) : [ number , boolean ] ;
31+ getBackground ( ) : LuaMultiReturn < [ number , boolean ] > ;
3432
3533 /**
3634 * Sets the background color to apply to “pixels” modified by other operations from now on.
@@ -40,21 +38,18 @@ declare namespace OC.Components {
4038 * If the color was from the palette, the second value will be the index in the palette.
4139 * Otherwise it will be `nil`. Note that the color is expected to be specified in hexadecimal RGB format, i.e. `0xRRGGBB`.
4240 * This is to allow uniform color operations regardless of the color depth supported by the screen and GPU.
43- * @tupleReturn
4441 */
45- setBackground ( color : number , isPaletteIndex ?: boolean ) : [ number , number | null ] ;
42+ setBackground ( color : number , isPaletteIndex ?: boolean ) : LuaMultiReturn < [ number , number | null ] > ;
4643
4744 /**
4845 * Like `getBackground`, but for the foreground color.
49- * @tupleReturn
5046 */
51- getForeground ( ) : [ number , boolean ] ;
47+ getForeground ( ) : LuaMultiReturn < [ number , boolean ] > ;
5248
5349 /**
5450 * Like `setBackground`, but for the foreground color.
55- * @tupleReturn
5651 */
57- setForeground ( color : number , isPaletteIndex ?: boolean ) : [ number , number | null ] ;
52+ setForeground ( color : number , isPaletteIndex ?: boolean ) : LuaMultiReturn < [ number , number | null ] > ;
5853
5954 /**
6055 * Gets the RGB value of the color in the palette at the specified index.
@@ -86,15 +81,13 @@ declare namespace OC.Components {
8681
8782 /**
8883 * Gets the maximum resolution supported by the GPU and the screen it is bound to (minimum of the two).
89- * @tupleReturn
9084 */
91- maxResolution ( ) : [ number , number ] ;
85+ maxResolution ( ) : LuaMultiReturn < [ number , number ] > ;
9286
9387 /**
9488 * Gets the currently set resolution.
95- * @tupleReturn
9689 */
97- getResolution ( ) : [ number , number ] ;
90+ getResolution ( ) : LuaMultiReturn < [ number , number ] > ;
9891
9992 /**
10093 * Sets the specified resolution.
@@ -107,9 +100,8 @@ declare namespace OC.Components {
107100
108101 /**
109102 * Get the current viewport resolution.
110- * @tupleReturn
111103 */
112- getViewport ( ) : [ number , number ] ;
104+ getViewport ( ) : LuaMultiReturn < [ number , number ] > ;
113105
114106 /**
115107 * Set the current viewport resolution.
@@ -126,9 +118,8 @@ declare namespace OC.Components {
126118 * The second and third returned values are the fore- and background color, as hexvalues.
127119 * If the colors are from the palette, the fourth
128120 * and fifth values specify the palette index of the color, otherwise they are nil.
129- * @tupleReturn
130121 */
131- get ( x : number , y : number ) : [ string , number , number , number | null , number | null ] ;
122+ get ( x : number , y : number ) : LuaMultiReturn < [ string , number , number , number | null , number | null ] > ;
132123
133124 /**
134125 * Writes a string to the screen, starting at the specified coordinates.
0 commit comments