Difference between revisions of "TextDisplay.setCell"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>TextDisplay.setCell</c> Directly sets a character into a given row and column of the text display. This does not use (or change) the cursor position, nor does it apply the...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<c>TextDisplay.setCell</c> Directly sets a character into a given row and column of the text
+
<c>[[TextDisplay]].setCell</c> Directly sets a character into a given row and column of the text
 
display.  This does not use (or change) the cursor position, nor
 
display.  This does not use (or change) the cursor position, nor
does it apply the current text colors or inverse mode; it only change
+
does it apply the current text colors or inverse mode; it only changes
 
the character displayed.
 
the character displayed.
  
Line 12: Line 12:
 
! Parameter Name !! Type !! Default Value !! Meaning
 
! Parameter Name !! Type !! Default Value !! Meaning
 
|-
 
|-
| ''x'' || number || 0 || column of cell to change
+
| ''x'' || number || 0 || column (or list of columns) of cell to change
 
|-
 
|-
| ''y'' || number || 0 || row of cell to change
+
| ''y'' || number || 0 || row (or list of rows) of cell to change
 
|-
 
|-
 
| ''character'' || string || "" || character to store in the given cell
 
| ''character'' || string || "" || character to store in the given cell

Latest revision as of 02:43, 29 December 2020

TextDisplay.setCell Directly sets a character into a given row and column of the text display. This does not use (or change) the cursor position, nor does it apply the current text colors or inverse mode; it only changes the character displayed.

See also: TextDisplay.cell

Arguments

Parameter Name Type Default Value Meaning
x number 0 column (or list of columns) of cell to change
y number 0 row (or list of rows) of cell to change
character string "" character to store in the given cell

Example

text.setCell 0, 10, "@"