mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-25 08:49:22 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
19 lines
434 B
Plaintext
19 lines
434 B
Plaintext
@using Sandbox;
|
|
@using Sandbox.UI;
|
|
@inherits PanelComponent
|
|
@namespace Sandbox
|
|
|
|
<root>
|
|
<div class="title">@MyStringValue</div>
|
|
</root>
|
|
|
|
@code
|
|
{
|
|
|
|
[Property, TextArea] public string MyStringValue { get; set; } = "Hello World!";
|
|
|
|
/// <summary>
|
|
/// the hash determines if the system should be rebuilt. If it changes, it will be rebuilt
|
|
/// </summary>
|
|
protected override int BuildHash() => System.HashCode.Combine( MyStringValue );
|
|
} |