Skip to content

Commit

Permalink
GITBOOK-255: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru authored and gitbook-bot committed Oct 30, 2024
1 parent a7a6c7c commit 60d8d94
Show file tree
Hide file tree
Showing 57 changed files with 97 additions and 86 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.gitbook/assets/image (1) (1) (1) (1) (1) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.gitbook/assets/image (1) (1) (1) (1) (1).png
Binary file modified docs/.gitbook/assets/image (1) (1) (1) (1).png
Binary file modified docs/.gitbook/assets/image (1) (1) (1).png
Binary file modified docs/.gitbook/assets/image (1) (1).png
Binary file modified docs/.gitbook/assets/image (1).png
Binary file modified docs/.gitbook/assets/image.png
3 changes: 2 additions & 1 deletion docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@
* [RectangleRuntime](monogame/runtime-objects-graphicaluielement-deriving/rectangleruntime.md)
* [SpriteRuntime](monogame/runtime-objects-graphicaluielement-deriving/spriteruntime.md)
* [TextRuntime](monogame/runtime-objects-graphicaluielement-deriving/textruntime.md)
* [Samples](monogame/samples.md)
* [Samples](monogame/samples/README.md)
* [MonoGameGumFormsSample](monogame/samples/monogamegumformssample.md)
* [Nez](nez.md)
* [Meadow](meadow.md)
* [SkiaGum](skiagum/README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/bottom-up-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For this container to stack we'll set the following variables:
* Children Layout set to Top to Bottom Stack so all children stack vertically\


<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Children Layout set to Top to Bottom Stack</p></figcaption></figure>
<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Children Layout set to Top to Bottom Stack</p></figcaption></figure>
* Height Units set to Relative to Children so the container resizes itself as more children are added\


Expand Down
2 changes: 1 addition & 1 deletion docs/gum-elements/container/children-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Top to Bottom Stack results in each child being positioned after its previous si

Left to Right Stack results in each child being positioned after its previous sibling horizontally. This can be used to create vertical stacks quickly.

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption></figcaption></figure>

### Stacking and Units

Expand Down
2 changes: 1 addition & 1 deletion docs/gum-elements/container/stack-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Stack Spacing variable controls the additional padding between children when

A larger Stack Spacing value increases the spacing between each child. By default Stack Spacing is set to 0 which means that no spacing is added between items in a stack.

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Stack Spacing of 0 results in no space between children</p></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Stack Spacing of 0 results in no space between children</p></figcaption></figure>

Changing the stack spacing adds gaps between each child as shown in the following animation.

Expand Down
2 changes: 1 addition & 1 deletion docs/gum-elements/general-properties/height-units.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Ratio of Container can be used to fill available space or to share available spa

The simplest case is a single child in a container with its Height Units set to **Ratio of Continer**.

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Ratio of Container set to 1</p></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Ratio of Container set to 1</p></figcaption></figure>

In this case the blue [ColoredRectangle](../coloredrectangle.md) has no siblings (its container has no other children), so it occupies the entire parent height. If a second child is added (by copy/pasting the existing child), then each child is given 1 _ratio_ value, which means each is 1/2 of the size of the entire parent.

Expand Down
4 changes: 2 additions & 2 deletions docs/gum-elements/nineslice/nineslice.texture-address.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The **Texture Address** variable can be used to define the area that the NineSli

The following screenshot shows an entire texture being used for a NineSlice.

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption></figcaption></figure>

The entire texture is split up into 3 sections horizontally and 3 sections vertically, matching up the texture coordinates used to display the NineSlice's 9 sections.

Expand All @@ -28,5 +28,5 @@ The NineSlice uses the following variables:

These values result in the the following NineSlice:

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption></figcaption></figure>

2 changes: 1 addition & 1 deletion docs/gum-elements/text/font.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gum performs rendering using rasterized fonts. In other words, it renders using

You can view the Font Cache in your project by selecting **Content -> View Font Cache**.

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1).png" alt=""><figcaption><p>View Font Cache menu item</p></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1).png" alt=""><figcaption><p>View Font Cache menu item</p></figcaption></figure>

This folder contains all font files used by your project.

Expand Down
6 changes: 3 additions & 3 deletions docs/gum-elements/text/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ The following table shows the available variables that can be used for inline st



<table><thead><tr><th width="129">Tag</th><th width="357">Example</th><th>Result</th></tr></thead><tbody><tr><td>Color</td><td>This is [Color=orange]orange[/Color] text.</td><td><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>Red Green Blue</td><td>This is [Red=0][Green=128][Blue=255]light blue[/Red][/Green][/Blue] text.</td><td><img src="../../.gitbook/assets/image (2) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>FontScale</td><td>This is [FontScale=2]big[/FontScale] text.</td><td><img src="../../.gitbook/assets/image (3) (1) (1) (1) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>IsBold</td><td>This is [IsBold=true]bold[/IsBold] text.</td><td><img src="../../.gitbook/assets/image (4) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>IsItalic</td><td>This is [IsItalic=true]italic[/IsItalic] text.</td><td><img src="../../.gitbook/assets/image (6) (1).png" alt="" data-size="original"></td></tr><tr><td>Font</td><td>This is [Font=Papyrus]Papyrus[/Font] text.</td><td><img src="../../.gitbook/assets/image (7) (1).png" alt="" data-size="original"></td></tr><tr><td>FontSize</td><td>This is [FontSize=36]bigger[/FontSize] text.</td><td><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>OutlineThickness</td><td>This is [OutlineThickness=2]outlined[/OutlineThickness] text.</td><td><img src="../../.gitbook/assets/image (8) (1).png" alt="" data-size="original"></td></tr></tbody></table>
<table><thead><tr><th width="129">Tag</th><th width="357">Example</th><th>Result</th></tr></thead><tbody><tr><td>Color</td><td>This is [Color=orange]orange[/Color] text.</td><td><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>Red Green Blue</td><td>This is [Red=0][Green=128][Blue=255]light blue[/Red][/Green][/Blue] text.</td><td><img src="../../.gitbook/assets/image (2) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>FontScale</td><td>This is [FontScale=2]big[/FontScale] text.</td><td><img src="../../.gitbook/assets/image (3) (1) (1) (1) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>IsBold</td><td>This is [IsBold=true]bold[/IsBold] text.</td><td><img src="../../.gitbook/assets/image (4) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>IsItalic</td><td>This is [IsItalic=true]italic[/IsItalic] text.</td><td><img src="../../.gitbook/assets/image (6) (1).png" alt="" data-size="original"></td></tr><tr><td>Font</td><td>This is [Font=Papyrus]Papyrus[/Font] text.</td><td><img src="../../.gitbook/assets/image (7) (1).png" alt="" data-size="original"></td></tr><tr><td>FontSize</td><td>This is [FontSize=36]bigger[/FontSize] text.</td><td><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt="" data-size="original"></td></tr><tr><td>OutlineThickness</td><td>This is [OutlineThickness=2]outlined[/OutlineThickness] text.</td><td><img src="../../.gitbook/assets/image (8) (1).png" alt="" data-size="original"></td></tr></tbody></table>

Note that changing Font and FontSize results in new Fonts created in the Font Cache.

BBCode can span multiple lines, whether the newlines happen due to line wrapping or through the addition of newlines in the text.

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Text object with inline styling and explicit line breaks</p></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Text object with inline styling and explicit line breaks</p></figcaption></figure>

Multiple tags can overlap each other allowing you to combine tags for a single piece of text. For example, the following sets text to both bold and orange:

```bbcode
This is [Color=Orange][IsBold=true]bold and orange[/Color][/IsBold] text.
```

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Styled text that is bold and orange.</p></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Styled text that is bold and orange.</p></figcaption></figure>

Styles can contain other styles as many levels deep as necessary.

Expand Down
2 changes: 1 addition & 1 deletion docs/intro-tutorials/properties-window.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ To see how this works, select the **Text** item under the **Standard** folder. N

If the default Horizontal Alignment and Vertical Alignment values are changed, the changes will immediately be reflected in the preview window for the default Text configuration:

![](<../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png>)
![](<../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png>)

Now if we select the TextIntance we will see that the VerticalAlignment is visibly using the Bottom value; however the **Horizontal Alignment** is still using center - this is because a value that is explicitly set on an instance will always override the default value set in the Standard element. Notice that **Horizontal Alignment** has a white background (indicating a custom value) and **Vertical Alignment** has a green background (indicating a default value).

Expand Down
2 changes: 1 addition & 1 deletion docs/intro-tutorials/state-categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ If a variable is changed in one of the states in the category, then that variabl

For example, we can select the Big category and change the ColoredRectangle.Width property to 150.

<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Setting ColoredRectangleInstance Width to 150</p></figcaption></figure>
<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Setting ColoredRectangleInstance Width to 150</p></figcaption></figure>

Once this value is changed, the RectangleSizeCategory lists this as a variable that it modifies in the Variables tab.

Expand Down
4 changes: 2 additions & 2 deletions docs/kni.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ If you would like to create a new Kni project from scratch, you can follow these
2. Download and run the latest KniSdkSetup exe\
&#x20;

<figure><img src=".gitbook/assets/image (1) (1) (1) (1) (1).png" alt=""><figcaption><p>KniSdkSetup in GitHub</p></figcaption></figure>
<figure><img src=".gitbook/assets/image (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>KniSdkSetup in GitHub</p></figcaption></figure>
3. After installing the SDK, open Visual Studio
4. Select the option to create a new project
5. Search for Kni
6. Select one of the project templates, such as **Web browser**\


<figure><img src=".gitbook/assets/image (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Web browser project in Kni</p></figcaption></figure>
<figure><img src=".gitbook/assets/image (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Web browser project in Kni</p></figcaption></figure>
7. Click Next and proceed through the remainder of the steps to create a project

You should test your project to make sure it runs prior to adding Gum.
Expand Down
4 changes: 2 additions & 2 deletions docs/menu/project-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ Notice that comments using two forward slashes (similar to languages like C#) ca

Once you have created a CSV with the desired entries, you can reference this by clicking the ... button to browse for the file in Gum.

<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Selecting localization file</p></figcaption></figure>
<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Selecting localization file</p></figcaption></figure>

After selecting the localization file, you can choose which language index is being displayed. Note that this is a 0-based index, with the left-most column being 0. For example, using the table above a Language Index of 1 would result in the English column being displayed.

Once you have added a localization file, Gum recognizes this and displays Text properties as an editable drop-down. You can type in a string ID, or you can use the drop-down to select from available options.&#x20;

<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>The Text dropdown displaying available string IDs</p></figcaption></figure>
<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>The Text dropdown displaying available string IDs</p></figcaption></figure>

Localized text appears in Gum based on the selected ID. You can change the Language Index at any time to see localization applied immediately in your screens and components.

Expand Down
2 changes: 1 addition & 1 deletion docs/monogame/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can clone the repository and open the projects in your favorite IDE (like Vi

The direct link to the samples is here: [https://github.com/vchelaru/Gum/tree/master/Samples](https://github.com/vchelaru/Gum/tree/master/Samples)

For more information about the Sample projects, see the [Samples page](samples.md).
For more information about the Sample projects, see the [Samples page](samples/).

### What is the Gum UI Tool?

Expand Down
2 changes: 1 addition & 1 deletion docs/monogame/gum-forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ The code above produces a single button which can be clicked to increment the cl

### Gum Forms and the Gum Tool

A fully-functional Gum project can be downloaded which includes components for all Gum Form types. This can be found in the Samples folder of the repository. You can use the Gum project located there to load Gum Forms into your own project, or you can run the sample to see how it works. For more information see the [Samples page](../samples.md).
A fully-functional Gum project can be downloaded which includes components for all Gum Form types. This can be found in the Samples folder of the repository. You can use the Gum project located there to load Gum Forms into your own project, or you can run the sample to see how it works. For more information see the [Samples page](../samples/).

2 changes: 1 addition & 1 deletion docs/monogame/gum-forms/control-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ All Gum Forms components react to various properties by assigning states. For a

For Buttons, we can add a ButtonCategory state. You are free to implement as many or as few states as you want. For the full list of states see above in the [Available States](control-customization.md#available-states) section.

<figure><img src="../../.gitbook/assets/image (1) (1) (1).png" alt=""><figcaption><p>Example of a ButtonStateCategory implementing only Normal, Highlighted, and Pushed</p></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1).png" alt=""><figcaption><p>Example of a ButtonStateCategory implementing only Normal, Highlighted, and Pushed</p></figcaption></figure>

#### Defining a Custom Runtime for the Forms Control

Expand Down
2 changes: 1 addition & 1 deletion docs/monogame/gum-forms/controls/listbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ for (int i = 0; i < 20; i++)
}
```

<figure><img src="../../../.gitbook/assets/image.png" alt=""><figcaption><p>ListBox displaying integers</p></figcaption></figure>
<figure><img src="../../../.gitbook/assets/image (1).png" alt=""><figcaption><p>ListBox displaying integers</p></figcaption></figure>

Often you may want to add a list of items which should not use their ToString method. For example you may have a list of IDs which represent weapons in a dictionary. The display can be customized by inheriting from ListBoxItem as shown in the following code:

Expand Down
2 changes: 1 addition & 1 deletion docs/monogame/gumbatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ gumBatch.Draw(buttonRectangle);
gumBatch.End();
```

<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>buttonRectangle drawn with its child buttonText</p></figcaption></figure>
<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>buttonRectangle drawn with its child buttonText</p></figcaption></figure>

### RenderTargets

Expand Down
2 changes: 1 addition & 1 deletion docs/monogame/loading-.gumx-gum-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ To add the files to your .csproj:
3. Verify that all gum files (see the extension list above) are marked as Copy if newer in Visual Studio\


<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Gum project set to Copy if newer</p></figcaption></figure>
<figure><img src="../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>Gum project set to Copy if newer</p></figcaption></figure>

The example above copies the entirety of the content folder to the output folder by using wildcards. If you do not want every file copied over, you can be more selective in what you copy by including only certain file types. For more information about wildcard support in .csproj files, see this page on how to include wildcards in your .csproj:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ lineRectangle.Color = Color.Pink; // This is a Microsoft.Xna.Framework.Color
container.Children.Add(lineRectangle);
```

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>RectangleRuntime instantiated in code</p></figcaption></figure>
<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>RectangleRuntime instantiated in code</p></figcaption></figure>

Loading

0 comments on commit 60d8d94

Please sign in to comment.