mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-06 05:18:26 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
25 lines
369 B
Plaintext
25 lines
369 B
Plaintext
@namespace TestComponents
|
|
@using System.Diagnostics;
|
|
@using Sandbox.UI;
|
|
|
|
@if (ShowFirstItem)
|
|
{
|
|
<one @ref=One></one>
|
|
}
|
|
|
|
@if (ShowMiddleItem)
|
|
{
|
|
<two></two>
|
|
}
|
|
|
|
<three @ref=Three></three>
|
|
|
|
@code
|
|
{
|
|
public bool ShowFirstItem { get; set; }
|
|
public bool ShowMiddleItem { get; set; }
|
|
|
|
public Panel One { get; set; }
|
|
public Panel Three { get; set; }
|
|
}
|