This commit is contained in:
NoryiE
2025-03-14 02:52:23 +00:00
parent 65e93f9985
commit 0ccae0ca18
5 changed files with 32 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ The Display is a special element where you can use the window (term) API to draw
|Method|Returns|Description|
|---|---|---|
|[Display:getWindow](#Display:getWindow)|-|
|[Display:getWindow](#Display:getWindow)|table|Returns the current window object
## Protected Functions
@@ -16,5 +16,9 @@ The Display is a special element where you can use the window (term) API to draw
|[Display:render](#Display:render)|-|Renders the Display
## Display:getWindow()
Returns the current window object
### Returns
* `table` `window` The current window object

View File

@@ -26,7 +26,7 @@ See: https://github.com/SkyTheCodeMaster/bimg
|[Image:addFrame](#Image:addFrame)|Image|Adds a new frame to the image
|[Image:getBg](#Image:getBg)|-|
|[Image:getFg](#Image:getFg)|-|
|[Image:getFrame](#Image:getFrame)|-|
|[Image:getFrame](#Image:getFrame)|table|Gets the specified frame
|[Image:getImageSize](#Image:getImageSize)|number|Gets the size of the image
|[Image:getMetadata](#Image:getMetadata)|-|
|[Image:getPixelData](#Image:getPixelData)|number?|Gets pixel information at position
@@ -38,7 +38,7 @@ See: https://github.com/SkyTheCodeMaster/bimg
|[Image:setMetadata](#Image:setMetadata)|-|
|[Image:setPixel](#Image:setPixel)|Image|Sets the pixel at the specified position
|[Image:setText](#Image:setText)|Image|Sets the text at the specified position
|[Image:updateFrame](#Image:updateFrame)|-|
|[Image:updateFrame](#Image:updateFrame)|Image|Updates the specified frame with the provided data
## Protected Functions
@@ -58,7 +58,14 @@ Adds a new frame to the image
## Image:getFg()
## Image:getFrame()
## Image:getFrame(frameIndex)
Gets the specified frame
### Parameters
* `frameIndex` `number` The index of the frame to get
### Returns
* `table` `frame` The frame data
## Image:getImageSize()
Gets the size of the image
@@ -147,6 +154,14 @@ Sets the text at the specified position
### Returns
* `Image` `self` The Image instance
## Image:updateFrame()
## Image:updateFrame(frameIndex, frame)
Updates the specified frame with the provided data
### Parameters
* `frameIndex` `number` The index of the frame to update
* `frame` `table` The new frame data
### Returns
* `Image` `self` The Image instance

View File

@@ -119,8 +119,7 @@ Checks if the specified coordinates are within the bounds of the element
* `boolean` `isInBounds` Whether the coordinates are within the bounds of the element
## VisualElement:prioritize()
This function is used to prioritize the element by moving it to the top of its parent's children.
It removes the element from its parent and adds it back, effectively changing its order.
This function is used to prioritize the element by moving it to the top of its parent's children. It removes the element from its parent and adds it back, effectively changing its order.
### Returns
* `VisualElement` `self` The VisualElement instance