mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-07-31 07:48:52 -04:00
* Move all unit tests to Engine/Tests * Fix Margin.EdgeSubtract * Fix Capsule.Contains * EnvironmentVariables.Remove if it's null * Fixed ray trace never returning startedsolid * Fix HistoryList.Navigate on empty list * Fix GameObject.WorldPosition accepting NaNs * Fix flex: initial expanding to the wrong grow/shrink * Translation.TryConvert shouldn't throw on invalid enum strings * Skip sound file tests on machines with no audio device
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; }
|
|
}
|