Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
component:screen [2015/04/05 07:19]
rashy
component:screen [2024/03/26 15:58]
dcnick3 Fix incorrect info on turnOn and turnOff methods (code link: https://github.com/MightyPirates/OpenComputers/blob/050a0ae7f788d1f336c513db31af007ed57922c0/src/main/scala/li/cil/oc/common/component/TextBuffer.scala#L181)
Line 8: Line 8:
 - `isOn():​boolean`  ​ - `isOn():​boolean`  ​
   Returns whether the screen is currently on.   Returns whether the screen is currently on.
-- `turnOn():​boolean` ​  +- `turnOn():boolean, ​boolean` ​  
-  Turns the screen on. Returns true if it was off. +  Turns the screen on. Returns true if it was off and the new state
-- `turnOff():​boolean` ​  +- `turnOff():boolean, ​boolean` ​  
-  Turns off the screen. Returns true if it was on.+  Turns off the screen. Returns true if it was on and the new state.
 - `getAspectRatio():​number,​ number`  ​ - `getAspectRatio():​number,​ number`  ​
   The aspect ratio of the screen. For multi-block screens this is the number of blocks, horizontal and vertical.   The aspect ratio of the screen. For multi-block screens this is the number of blocks, horizontal and vertical.
 - `getKeyboards():​table`  ​ - `getKeyboards():​table`  ​
   The list of keyboards attached to the screen.   The list of keyboards attached to the screen.
-- `setPrecice(enabled:​boolean):​boolean`+- `setPrecise(enabled:​boolean):​boolean`
   Set whether to use high-precision mode (sub-pixel mouse event position).  ​   Set whether to use high-precision mode (sub-pixel mouse event position).  ​
   //Requires Screen (Tier 3).//   //Requires Screen (Tier 3).//