Skip to content

Commit cb85da2

Browse files
authored
Add Tags tutorial + small typo fix (#78)
* Added Geometry Dash category + Tags tutorial * removed cname. i dont like it * fixes * Update ios.md * Create CNAME * Update tags.md * Update tags.md * Update popup.md * Update popup.md * 1st change requested by ery * 2nd change requested by ery * Update tags.md * 4th and 5th change requested by ery * 6th change requested by ery * 1st new change requested by ery * 2nd change requested by ery (with my own change too) * 3rd change requested by ery * 4th change requested by ery * 5th change requested by ery sry i lost count from here * 7th change requested by ery * 8th change requested by ery
1 parent e316cc7 commit cb85da2

File tree

8 files changed

+80
-26
lines changed

8 files changed

+80
-26
lines changed

CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docs.geode-sdk.org
1+
docs.geode-sdk.org

assets/delay_tag.gif

15.2 KB
Loading

assets/fadein_tag.gif

40.4 KB
Loading

assets/shake_tag.gif

140 KB
Loading

geometrydash/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Geometry Dash
3+
order: 6
4+
---
5+
6+
These pages contain documentation for Geometry Dash.

geometrydash/tags.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Tags
3+
order: 1
4+
---
5+
6+
# Tags
7+
8+
In Geometry Dash, there are tags you can use for things such as `FLAlertLayer`, `DialogLayer`, or `MDPopup`...
9+
10+
Let's learn how to use these tags:
11+
12+
## Color
13+
14+
In Geometry Dash, there are color tags, which change the color of text. Below is an example using some of these color tags:
15+
16+
| **Tag** | **Color Code** | **Example** |
17+
|---------|----------------|---------------------------------------|
18+
| `<cb>` | `0x4A52E1` | <p style="color: #4A52E1;">Sample</p> |
19+
| `<cg>` | `0x40E348` | <p style="color: #40E348;">Sample</p> |
20+
| `<cl>` | `0x60ABEF` | <p style="color: #60ABEF;">Sample</p> |
21+
| `<cj>` | `0x32C8FF` | <p style="color: #32C8FF;">Sample</p> |
22+
| `<cy>` | `0xFFFF00` | <p style="color: #FFFF00;">Sample</p> |
23+
| `<co>` | `0xFF5A4B` | <p style="color: #FF5A4B;">Sample</p> |
24+
| `<cr>` | `0xFF5A5A` | <p style="color: #FF5A5A;">Sample</p> |
25+
| `<cp>` | `0xFF00FF` | <p style="color: #FF00FF;">Sample</p> |
26+
| `<ca>` | `0x9632FF` | <p style="color: #9632FF;">Sample</p> |
27+
| `<cd>` | `0xFF96FF` | <p style="color: #FF96FF;">Sample</p> |
28+
| `<cc>` | `0xFFFF96` | <p style="color: #FFFF96;">Sample</p> |
29+
| `<cf>` | `0x96FFFF` | <p style="color: #96FFFF;">Sample</p> |
30+
| `<cs>` | `0xFFDC41` | <p style="color: #FFDC41;">Sample</p> |
31+
| `<c_>` | `0xFF0000` | <p style="color: #FF0000;">Sample</p> |
32+
33+
To use these tags, follow the syntax below:
34+
35+
```
36+
"Welcome to my red <cr>lair</c>! As you can see, my <cg>things</c> are green, and my <cb>doorframe</c> is blue! Why? That's up to <co>Rob</c><cj>Top</c> to answer!"
37+
```
38+
39+
By using `</c>`, you are closing the tag. `</c>` closes all color tags.
40+
41+
## Delay
42+
43+
In Geometry Dash, there are also delay tags to wait a certain amount of centiseconds (1/100 of a second) before more text appearing. Below is an example:
44+
45+
```
46+
Wait!<d040> You shouldn't go there<d500>.<d500>.<d500>.
47+
```
48+
49+
In the `<d...>` tag, the number next to the `<d` specifies the number of centiseconds to wait. This number must be 3 digits. This is how it looks like in-game (GIF from GDDocs):
50+
51+
![GIF showing delay tag](/assets/delay_tag.gif)
52+
53+
## Shake
54+
55+
Shake tags make text shake. Below is an example:
56+
57+
```
58+
<co>I HAVE SAID TOO MUCH! QUICKLY TO THE <s260>CHOPPER!</s></c>
59+
```
60+
61+
In the `<s...>` tag, the number next to the `<s` specifies the intensity of the shaking. For reference, this is how it looks like in-game (GIF from GDDocs):
62+
63+
![GIF showing shake tag](/assets/shake_tag.gif)
64+
65+
# Instant/Fade
66+
67+
Fade Tags are used to fade in a block of text on screen instead of making it appear character by character. Similarly to colour tags, Fade tags have a start and end tag to denote which piece of text should appear instantly. The number is specified in centiseconds, which is 1/100th of a second.
68+
69+
Usage: `Hello, <i100>world!</i>`
70+
71+
![GIF showing fade tag](/assets/fadein_tag.gif)

misc/ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: iOS Development Setup
44

55
# iOS Development Setup
66

7-
You will have to edit your `CMakeLists.txt` on your exiting mods. Newer created mods will already have this change
7+
You will have to edit your `CMakeLists.txt` on your existing mods. Newer created mods will already have this change
88
```cmake
99
# At the beginning of your CMakeLists.txt, change this:
1010
# set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")

tutorials/popup.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -71,30 +71,7 @@ public:
7171
7272
## Colored text
7373
74-
`FLAlertLayer` supports colored text in the content field by default. You can add colors with **color tags**, for example `<cy>Hi mom!</c>` will produce yellow text. The built-in color tags in GD are:
75-
76-
| Tag | Color |
77-
|-----|-------------------------------------|
78-
| cb | <span style="color: #4a52e1">Blue</span> |
79-
| cg | <span style="color: #40e348">Green</span> |
80-
| cl | <span style="color: #60abef">Aqua</span> |
81-
| cj | <span style="color: #32c8ff">Cyan</span> |
82-
| cy | <span style="color: #ffff00">Yellow</span> |
83-
| co | <span style="color: #ffa54b">Orange</span> |
84-
| cr | <span style="color: #ff5a5a">Red</span> |
85-
| cp | <span style="color: #ff00ff">Pink</span> |
86-
87-
```cpp
88-
FLAlertLayer::create(
89-
"Color Example",
90-
"This is <cp>pink text</c>!",
91-
"OK"
92-
)->show();
93-
```
94-
95-
Note that the closing tag **must be `</c>` only without the color specified again**. Doing otherwise will likely result in a crash.
96-
97-
> You might wonder about how to use other colors than the ones listed; there are currently no plans in Geode to add that, but one could easily make a mod that adds support for arbitary color tags.
74+
`FLAlertLayer` supports colored text in the content field by default. You can add colors with **color tags**, for example `<cy>Hi mom!</c>` will produce yellow text. The built-in color tags in GD are listed [here](../geometrydash/tags.md)
9875
9976
## Disabling the popup animation
10077

0 commit comments

Comments
 (0)