Skip to content

Commit

Permalink
Update reference.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
euu2021 authored Nov 29, 2023
1 parent a89ae3d commit 2be85ba
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/docs/scripting/reference.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,39 @@ node.attributes.set("aaa", "xxx")
// Sets "0.0" as the format pattern to the attribute at index 1.

node.attributes.setFormat(1, "0.0")

/*
Cloud
*/

// Returns the color of the cloud set to the selected node.

node.cloud.color

// Returns the color code of the cloud set to the selected node.

node.cloud.colorCode

// Returns "true" if the selected node has a cloud enabled.

node.cloud.enabled

// Returns the shape of the cloud set to the selected node.

node.cloud.shape

// Sets "YELLOW" as the color of the selected node cloud.

node.cloud.color = java.awt.Color.YELLOW

// Sets "#ffff00ff" as the color code of the selected node cloud.

node.cloud.colorCode = "#ffff00ff"

// Enables a cloud in the selected node.

node.cloud.enabled = true

// Sets "STAR" as the shape of the selected node cloud.

node.cloud.shape = "STAR"

0 comments on commit 2be85ba

Please sign in to comment.