diff --git a/CNAME b/CNAME index 781fb5e..e6d3537 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 0000000..ffc8c24 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 0000000..0b4436d 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 0000000..2283d8e 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 0000000..3c9d85c --- /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 0000000..1f89df5 --- /dev/null +++ b/geometrydash/tags.md @@ -0,0 +1,69 @@ +--- +title: Tags +order: 1 +--- + +# Tags + +In Geometry Dash, there are tags you can use for things such as `FLAlertLayer` or `DialogLayer`. In this documentation, I will show you how to use these tags: + +## Color + +In Geometry Dash, there are color tags, which change the color of text. Here's a list of all the 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 LAIR
..." +``` + +By using ``, you are closing the tag, and it doesn't matter which color tag it is. It will always be ``. + +## 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. To use this, follow the example below: + +``` +Wait! You shouldn't go there... +``` + +In this example, the tag `` is used. The number next to the `I HAVE SAID TOO MUCH! QUICKLY TO THE CHOPPER! +``` + +In this example, the syntax for the shake tag is similar to the syntax of the delay tag. This is however based on the intensity of the shaking. For reference, the example above looks like this in the game (GIF from GDDocs): + +![GIF showing shake tag](/assets/shake_tag.gif) + +# Instant/Fade + +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. + +Usage: `Hello, world!` + +![GIF showing fade tag](/assets/fadein_tag.gif) diff --git a/misc/ios.md b/misc/ios.md index 67d3016..a588b10 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 eb19ce5..4f48256 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 available [here](../geometrydash/tags.md) ## Disabling the popup animation