From 572cb98cd3eea22c4697b3400d1b2658baf2f770 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Tue, 18 Feb 2025 10:36:59 +0100 Subject: [PATCH] Fix2 --- docs/guides/getting-started.md | 4 ++-- docs/guides/properties.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 docs/guides/properties.md diff --git a/docs/guides/getting-started.md b/docs/guides/getting-started.md index 3783a06..4675519 100644 --- a/docs/guides/getting-started.md +++ b/docs/guides/getting-started.md @@ -73,9 +73,9 @@ basalt.run() ### Modifying Properties -Once you've added elements to your UI, you can customize their appearance and behavior by modifying their properties. If you're new to working with properties in Basalt, it's recommended to check out our [property guide](/guides/properties) for a detailed overview. +Once you've added elements to your UI, you can customize their appearance and behavior by modifying their properties. If you're new to working with properties in Basalt, it's recommended to check out our [property guide](properties) for a detailed overview. -To begin modifying properties, you first need to identify which properties are available for a specific element. For example, let's consider the [Button](../references/elements/button) element. In the reference page for the [Button](../references/elements/Button), you'll find a list of properties available for that element. However, keep in mind that Button inherits properties from [VisualElement](../references/elements/VisualElement), which expands the available properties further. For instance, [VisualElement](../references/elements/VisualElement) includes properties like background, foreground, x, y, width, height, and visibility. +To begin modifying properties, you first need to identify which properties are available for a specific element. For example, let's consider the [Button](../references/elements/Button) element. In the reference page for the [Button](../references/elements/Button), you'll find a list of properties available for that element. However, keep in mind that Button inherits properties from [VisualElement](../references/elements/VisualElement), which expands the available properties further. For instance, [VisualElement](../references/elements/VisualElement) includes properties like background, foreground, x, y, width, height, and visibility. To modify these properties, you'll use corresponding setter functions. Each property has its own setter function, such as `setBackground()` for background color, `setX()` for horizontal position, and so on. Here's an example demonstrating how to set properties for a button: diff --git a/docs/guides/properties.md b/docs/guides/properties.md new file mode 100644 index 0000000..b74743e --- /dev/null +++ b/docs/guides/properties.md @@ -0,0 +1 @@ +# Properties \ No newline at end of file