mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-19 13:59:22 -04:00
30 lines
509 B
Plaintext
30 lines
509 B
Plaintext
@namespace MenuProject.Modals
|
|
@inherits MenuProject.Modals.BaseModal
|
|
@using Sandbox;
|
|
@using Sandbox.UI;
|
|
@using Menu;
|
|
@using System;
|
|
|
|
<root class="player-modal">
|
|
|
|
<WebPanel class="browser" Url=@Url></WebPanel>
|
|
|
|
</root>
|
|
|
|
@code
|
|
{
|
|
public SteamId SteamId { get; set; }
|
|
public string Url;
|
|
public string Page;
|
|
|
|
protected override void OnParametersSet()
|
|
{
|
|
Url = $"https://sbox.game/u/{SteamId}";
|
|
|
|
if(!string.IsNullOrEmpty(Page))
|
|
{
|
|
Url += "/" + Page.Trim( '/' );
|
|
}
|
|
}
|
|
}
|