-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #303 from MASSHUU12/v1.30.0-beta
v1.30.0-beta
- Loading branch information
Showing
9 changed files
with
74 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<div align="center"> | ||
<h3>Custom windows</h1> | ||
<p>Here you can find information on creating custom windows for YAT commands.</p> | ||
<h3>Custom windows</h1> | ||
<p>Here you can find information on creating custom windows for YAT commands.</p> | ||
</div> | ||
|
||
### Custom windows | ||
|
||
YAT internally uses the `YatWindow` node to create windows. | ||
If you want to create your own windows for your commands, I recommend creating them by inheriting from `YatWindow`. | ||
If you want to create your own windows for your commands, it's recommended to create them by inheriting from **YatWindow**. | ||
|
||
This way, the window will behave similarly to native windows and its appearance will be consistent, plus you will get access to many additional out-of-the-box features. | ||
|
||
Any windows should be added to `Yat.Windows` for order and clarity. | ||
Any windows should be added to **Yat.Windows** for order and clarity. | ||
|
||
You can add your window this way: | ||
|
||
```csharp | ||
```cs | ||
Yat.Windows.AddChild(_yourWindow); | ||
``` | ||
|
||
### Scaling with the main viewport | ||
|
||
The `YatWindow` is able to scale to always contain itself in the `main viewport`. | ||
To use this functionality, all you need to do is to use `base._Ready();` in the `_Ready` method of your window. | ||
The **YatWindow** is able to scale to always contain itself in the main viewport. | ||
To use this functionality, all you need to do is to use **base._Ready()** in the **_Ready** method of your window. | ||
|
||
Using the variable `ViewportEdgeOffset` you can adjust how much the YatWindow will be smaller than the main viewport. | ||
Using the variable **ViewportEdgeOffset** you can adjust how much the window will be smaller than the main viewport. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters