Modifier and Type | Class and Description |
---|---|
class |
ImageSquidPanel
Displays text and images in a grid pattern, like SquidPanel, but will automatically render certain chars as images.
|
Modifier and Type | Field and Description |
---|---|
protected SquidPanel |
SquidLayers.backgroundPanel |
protected SquidPanel |
SquidLayers.foregroundPanel |
SquidPanel |
VisualInput.left |
SquidPanel |
VisualInput.right |
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<SquidPanel> |
SquidLayers.extraPanels |
Modifier and Type | Method and Description |
---|---|
SquidPanel |
SquidLayers.getBackgroundLayer() |
SquidPanel |
SquidLayers.getForegroundLayer() |
SquidPanel |
SquidLayers.getLayer(int layer)
Gets a SquidPanel from this SquidLayers and returns a direct reference.
|
SquidPanel |
SquidPanel.setFromSnapshot(java.lang.String snapshot)
Given a "snapshot" from
getSnapshot(int, int, int, int) , this assigns the chars and colors in this
SquidPanel from 0,0 (inclusive) up to the dimensions stored in the snapshot to match the snapshot's data. |
SquidPanel |
SquidPanel.setFromSnapshot(java.lang.StringBuilder snapshot)
Given a "snapshot" from
getSnapshot(int, int, int, int) , this assigns the chars and colors in this
SquidPanel from 0,0 (inclusive) up to the dimensions stored in the snapshot to match the snapshot's data. |
SquidPanel |
SquidPanel.setFromSnapshot(java.lang.StringBuilder snapshot,
int putX,
int putY)
Given a "snapshot" from
getSnapshot(int, int, int, int) , this assigns the chars and colors in this
SquidPanel from the position given by putX,putY (inclusive) up to the dimensions stored in the snapshot
(considering putX and putY as offsets) so they have the values stored in the snapshot. |
SquidPanel |
SquidPanel.setFromSnapshot(java.lang.StringBuilder snapshot,
int putX,
int putY,
int limitWidth,
int limitHeight)
Given a "snapshot" from
getSnapshot(int, int, int, int) , this assigns the chars and colors in this
SquidPanel from the position given by putX,putY (inclusive) to putX+limitWidth,putY+limitHeight (exclusive) so
they have the values stored in the snapshot. |
SquidPanel |
SquidPanel.setFromSnapshot(java.lang.String snapshot,
int putX,
int putY)
Given a "snapshot" from
getSnapshot(int, int, int, int) , this assigns the chars and colors in this
SquidPanel from the position given by putX,putY (inclusive) up to the dimensions stored in the snapshot
(considering putX and putY as offsets) so they have the values stored in the snapshot. |
SquidPanel |
SquidPanel.setFromSnapshot(java.lang.String snapshot,
int putX,
int putY,
int limitWidth,
int limitHeight)
Given a "snapshot" from
getSnapshot(int, int, int, int) , this assigns the chars and colors in this
SquidPanel from the position given by putX,putY (inclusive) to putX+limitWidth,putY+limitHeight (exclusive) so
they have the values stored in the snapshot. |
SquidPanel |
SquidPanel.setTextSize(float wide,
float high)
Sets the size of the text in this SquidPanel (but not the size of the cells) to the given width and height in
pixels (which may be stretched by viewports later on, if your program uses them).
|
Modifier and Type | Method and Description |
---|---|
void |
LightingHandler.draw(SquidPanel background)
Given a SquidPanel that should be only solid blocks (such as the background of a SquidLayers) and a position for
the viewer (typically the player), fills the SquidPanel with different colors based on what lights are present in
line of sight of the viewer and the various flickering or pulsing effects that Radiance light sources can do.
|
void |
SquidLayers.setBackgroundLayer(SquidPanel panel)
Sets the background panel to match the given SquidPanel (it can also be a subclass of SquidPanel, a likely use).
|
void |
SquidLayers.setExtraPanel(SquidPanel panel,
int index)
Sets an extra panel to match the given SquidPanel (it can also be a subclass of SquidPanel, a likely use).
|
void |
SquidLayers.setForegroundLayer(SquidPanel panel)
Sets the foreground panel to match the given SquidPanel (it can also be a subclass of SquidPanel, a likely use).
|
Copyright © Eben Howard 2012–2022. All rights reserved.