Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- METHODMAN: Practical display for in game documentation of computercraft + addons
- Peripheral found
- Side: right
- Type: openperipheral_bridge
- openperipheral_bridge method list:
- getGuid
- addLiquid
- getStringWidth
- getSurfaceByUUID
- addText
- clear
- getAllIds
- listSources
- sync
- getSurfaceByName
- getById
- getUsers
- addGradientBox
- getAllObjects
- getAdvancedMethodsData
- listMethods
- addIcon
- addBox
- Open Peripherals Advanced Method Data
- 1. getUsers
- Return Type: TABLE
- Description: Get the names of all the users linked up to this bridge
- Arguments: getUsers()
- No Arguments
- 2. listSources
- Return Type: TABLE
- Description: List all method sources
- Arguments: listSources()
- No Arguments
- 3. getById
- Return Type: OBJECT
- Description: Get object by id
- Arguments: getById(id)
- 1. id
- Description: Id of drawed object
- Type: NUMBER
- 4. listMethods
- Return Type: STRING
- Description: List all the methods available
- Arguments: listMethods()
- No Arguments
- 5. getGuid
- Return Type: STRING
- Description: Get the Guid of this bridge
- Arguments: getGuid()
- No Arguments
- 6. addBox
- Return Type: OBJECT
- Description: Add a new box to the screen
- Arguments: addBox(x, y, width, height, color, opacity)
- 1. x
- Description: The x position from the top left
- Type: NUMBER
- 2. y
- Description: The y position from the top left
- Type: NUMBER
- 3. width
- Description: The width of the box
- Type: NUMBER
- 4. height
- Description: The height of the box
- Type: NUMBER
- 5. color
- Description: The color of the box
- Type: NUMBER
- 6. opacity
- Description: The opacity of the box (from 0 to 1)
- Type: NUMBER
- 7. getSurfaceByName
- Return Type: OBJECT
- Description: Get the surface of a user to draw privately on their screen
- Arguments: getSurfaceByName(username)
- 1. username
- Description: The username of the user to get the draw surface for
- Type: STRING
- 8. clear
- Return Type:
- Description: Clear all the objects from the screen
- Arguments: clear()
- No Arguments
- 9. addText
- Return Type: OBJECT
- Description: Add a new text object to the screen
- Arguments: addText(x, y, text, color)
- 1. x
- Description: The x position from the top left
- Type: NUMBER
- 2. y
- Description: The y position from the top left
- Type: NUMBER
- 3. text
- Description: The text to display
- Type: STRING
- 4. color
- Description: The text color
- Type: NUMBER
- 10. getSurfaceByUUID
- Return Type: OBJECT
- Description: Get the surface of a user to draw privately on their screen
- Arguments: getSurfaceByUUID(uuid)
- 1. uuid
- Description: The uuid of the user to get the draw surface for
- Type: STRING
- 11. sync
- Return Type:
- Description: Send updates to client. Without it changes won't be visible
- Arguments: sync()
- No Arguments
- 12. getStringWidth
- Return Type: NUMBER
- Description: Get the display width of some text
- Arguments: getStringWidth(text)
- 1. text
- Description: The text you want to measure
- Type: STRING
- 13. getAllObjects
- Return Type: TABLE
- Description: Get all objects on the screen
- Arguments: getAllObjects()
- No Arguments
- 14. addGradientBox
- Return Type: OBJECT
- Description: Add a new gradient box to the screen
- Arguments: addGradientBox(x, y, width, height, color, opacity, color, opacity, gradient)
- 1. x
- Description: The x position from the top left
- Type: NUMBER
- 2. y
- Description: The y position from the top left
- Type: NUMBER
- 3. width
- Description: The width of the box
- Type: NUMBER
- 4. height
- Description: The height of the box
- Type: NUMBER
- 5. color
- Description: The color of the box
- Type: NUMBER
- 6. opacity
- Description: The opacity of the box (from 0 to 1)
- Type: NUMBER
- 7. color
- Description: The color of the other side of the box
- Type: NUMBER
- 8. opacity
- Description: The opacity of the other side of the box (from 0 to 1)
- Type: NUMBER
- 9. gradient
- Description: The gradient direction (1 for horizontal, 2 for vertical)
- Type: NUMBER
- 15. addIcon
- Return Type: OBJECT
- Description: Add an icon of an item to the screen
- Arguments: addIcon(x, y, id, meta)
- 1. x
- Description: The x position from the top left
- Type: NUMBER
- 2. y
- Description: The y position from the top left
- Type: NUMBER
- 3. id
- Description: The id of the item to draw
- Type: STRING
- 4. meta
- Description: The meta of the item to draw
- Type: NUMBER
- 16. getAdvancedMethodsData
- Return Type: TABLE
- Description: Get a complete table of information about all available methods
- Arguments: getAdvancedMethodsData()
- No Arguments
- 17. addLiquid
- Return Type: OBJECT
- Description: Add a box textured like a liquid to the screen
- Arguments: addLiquid(x, y, width, height, string)
- 1. x
- Description: The x position from the top left
- Type: NUMBER
- 2. y
- Description: The y position from the top left
- Type: NUMBER
- 3. width
- Description: The width of the liquid box
- Type: NUMBER
- 4. height
- Description: The height of the liquid box
- Type: NUMBER
- 5. string
- Description: The name of the fluid to render
- Type: STRING
- 18. getAllIds
- Return Type: TABLE
- Description: Get the Ids of all the objects on the screen
- Arguments: getAllIds()
- No Arguments
- --------------------
- All actual documentation is written by the mod developer who made the peripheral, not me. I just displayed it - happy computercrafting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement