diff --git a/CNAME b/CNAME index 781fb5e2..e6d35373 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -docs.geode-sdk.org \ No newline at end of file +docs.geode-sdk.org diff --git a/assets/delay_tag.gif b/assets/delay_tag.gif new file mode 100644 index 00000000..ffc8c244 Binary files /dev/null and b/assets/delay_tag.gif differ diff --git a/assets/fadein_tag.gif b/assets/fadein_tag.gif new file mode 100644 index 00000000..0b4436de Binary files /dev/null and b/assets/fadein_tag.gif differ diff --git a/assets/shake_tag.gif b/assets/shake_tag.gif new file mode 100644 index 00000000..2283d8ee Binary files /dev/null and b/assets/shake_tag.gif differ diff --git a/geometrydash/index.md b/geometrydash/index.md new file mode 100644 index 00000000..3c9d85cc --- /dev/null +++ b/geometrydash/index.md @@ -0,0 +1,6 @@ +--- +title: Geometry Dash +order: 6 +--- + +These pages contain documentation for Geometry Dash. \ No newline at end of file diff --git a/geometrydash/tags.md b/geometrydash/tags.md new file mode 100644 index 00000000..76ea8864 --- /dev/null +++ b/geometrydash/tags.md @@ -0,0 +1,71 @@ +--- +title: Tags +order: 1 +--- + +# Tags + +In Geometry Dash, there are tags you can use for things such as `FLAlertLayer`, `DialogLayer`, or `MDPopup`... + +Let's learn how to use these tags: + +## Color + +In Geometry Dash, there are color tags, which change the color of text. Below is an example using some of these color tags: + +| **Tag** | **Color Code** | **Example** | +|---------|----------------|---------------------------------------| +| `` | `0x4A52E1` |

Sample

| +| `` | `0x40E348` |

Sample

| +| `` | `0x60ABEF` |

Sample

| +| `` | `0x32C8FF` |

Sample

| +| `` | `0xFFFF00` |

Sample

| +| `` | `0xFF5A4B` |

Sample

| +| `` | `0xFF5A5A` |

Sample

| +| `` | `0xFF00FF` |

Sample

| +| `` | `0x9632FF` |

Sample

| +| `` | `0xFF96FF` |

Sample

| +| `` | `0xFFFF96` |

Sample

| +| `` | `0x96FFFF` |

Sample

| +| `` | `0xFFDC41` |

Sample

| +| `` | `0xFF0000` |

Sample

| + +To use these tags, follow the syntax below: + +``` +"Welcome to my red lair! As you can see, my things are green, and my doorframe is blue! Why? That's up to RobTop to answer!" +``` + +By using ``, you are closing the tag. `` closes all color tags. + +## Delay + +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: + +``` +Wait! You shouldn't go there... +``` + +In the `` tag, the number next to the `I HAVE SAID TOO MUCH! QUICKLY TO THE CHOPPER! +``` + +In the `` tag, the number next to the `world!` + +![GIF showing fade tag](/assets/fadein_tag.gif) diff --git a/misc/ios.md b/misc/ios.md index 67d3016d..a588b10f 100644 --- a/misc/ios.md +++ b/misc/ios.md @@ -4,7 +4,7 @@ title: iOS Development Setup # iOS Development Setup -You will have to edit your `CMakeLists.txt` on your exiting mods. Newer created mods will already have this change +You will have to edit your `CMakeLists.txt` on your existing mods. Newer created mods will already have this change ```cmake # At the beginning of your CMakeLists.txt, change this: # set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64") diff --git a/tutorials/popup.md b/tutorials/popup.md index eb19ce5b..7cdc3ab5 100644 --- a/tutorials/popup.md +++ b/tutorials/popup.md @@ -69,30 +69,7 @@ public: ## Colored text -`FLAlertLayer` supports colored text in the content field by default. You can add colors with **color tags**, for example `Hi mom!` will produce yellow text. The built-in color tags in GD are: - -| Tag | Color | -|-----|-------------------------------------| -| cb | Blue | -| cg | Green | -| cl | Aqua | -| cj | Cyan | -| cy | Yellow | -| co | Orange | -| cr | Red | -| cp | Pink | - -```cpp -FLAlertLayer::create( - "Color Example", - "This is pink text!", - "OK" -)->show(); -``` - -Note that the closing tag **must be `` only without the color specified again**. Doing otherwise will likely result in a crash. - -> 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. +`FLAlertLayer` supports colored text in the content field by default. You can add colors with **color tags**, for example `Hi mom!` will produce yellow text. The built-in color tags in GD are listed [here](../geometrydash/tags.md) ## Disabling the popup animation