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