Skip to content

Commit

Permalink
Code organization
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed May 16, 2024
1 parent bb5d581 commit 6b96391
Show file tree
Hide file tree
Showing 3 changed files with 318 additions and 144 deletions.
130 changes: 130 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,136 @@ When it comes to using the position attribute, you can change the x and y coordi
<td>


</td>
</tr>

<tr>
<td> text </td>
<td> Set the text of a label or button. </td>
<td>

```json
"text": "example"
```

</td>

<td>


</td>
</tr>

</tr>

<tr>
<td> scale-multiplier </td>
<td> Set the scale multiplier for when you click on a button. </td>
<td>

```json
"scale-multiplier": 1.4
```

</td>

<td>


</td>
</tr>

<tr>
<td> z-order </td>
<td> Set the z order of a node. </td>
<td>

```json
"z-order": 2
```

</td>

<td>


</td>
</tr>

<tr>
<td> font </td>
<td> Set the bitmap font of a label or button. </td>
<td>

```json
"font": "chatFont.fnt"
```

</td>

<td>


</td>
</tr>

<tr>
<td> blending </td>
<td> Set the blending of a node, see OpenGL documentation for how to use blending modes. </td>
<td>

```json
"blending": {
"source": "GL_ONE_MINUS_SRC_COLOR",
"destination": "GL_ONE_MINUS_SRC_ALPHA"
}
```

</td>

<td>


</td>
</tr>

<tr>
<td> sound </td>
<td> Set a sound to play on node attribute change. Useful for onHover and onClick events. </td>
<td>

```json
"sound": "effect.ogg"
```

</td>

<td>


</td>
</tr>

<tr>
<td> link </td>
<td> Set a link to open on node attribute change. Useful for onClick events. Can be a URL or link to a "profile" or "level" with the type attribute. </td>
<td>

```json
"link": "https://google.com"
```

</td>

<td>

```json
"link": {
"type": "profile",
"id": 123456,
}
```

</td>
</tr>

Expand Down
Loading

0 comments on commit 6b96391

Please sign in to comment.