🔍 s&box Package Code Search
Search C# source code, UI razor templates, shaders, and configs across s&box packages.
🔗 Raw Facepunch API Link: https://public.facepunch.com/sbox/code/search/1/?ident=dvlpmnt.gqner2&take=20
Showing code results for query:
*
(48 total matches found)
Game
game
using Sandbox;
using Sandbox.ui;
public class Menu : Component {
GameObject UI;
protected override void OnStart() {
UI = Scene.Directory.FindbyName("UI");
}
protected override void OnUpdate() {
if (IsProxy) return;
if (Input.EscapePressed) {
Input.EscapePressed = false;
if (UI.Components.TryGet<menu>(out var _)) {
UI.GetComponent<menu>().Destroy(); return;
}
UI.AddComponent<menu>();
}
}
protected override void OnDestroy() {
if (!IsProxy && UI.Components.TryGet<menu>(out var _))
UI.GetComponent<menu>().Destroy();
}
}
Game
game
using Sandbox;
public class NightVision : Component
{
GameObject c;
protected override void OnStart()
{c = Scene.Camera.GameObject;}
protected override void OnUpdate()
{
if (IsProxy)
{
c.GetOrAddComponent<Tonemapping>().Destroy();
c.GetOrAddComponent<ColorAdjustments>().Destroy();
c.GetOrAddComponent<DepthOfField>().Destroy();
return; }
var tm = c.GetOrAddComponent<Tonemapping>();
var ca = c.GetOrAddComponent<ColorAdjustments>();
var dof = c.GetOrAddComponent<DepthOfField>();
tm.MaximumExposure = 5;
tm.Rate = 10;
ca.Brightness = 2;
ca.Saturation = 0;
dof.FocusRange = 1000;
}
}
Game
game
menupanel
{
position: absolute;
z-index: 1000;
pointer-events: all;
font-size: 12px;
flex-shrink: 0;
.background
{
position: absolute;
left: -5000px;
right: -5000px;
top: -5000px;
bottom: -5000px;
}
> .inner
{
min-width: 200px;
min-height: 20px;
flex-direction: column;
font-family: Poppins;
font-weight: bold;
border-radius: 10px;
box-shadow: 5px 5px 30px #000e;
background-color: #2a2a2a;
flex-shrink: 0;
.spacer
{
height: 1px;
background-color: #0005;
}
.option
{
color: #fffa;
padding: 0px 8px;
cursor: pointer;
flex-shrink: 0;
height: 32px;
&:first-child
{
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
&:last-child
{
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
.icon
{
padding: 8px;
font-family: Material Icons;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
.text
{
padding: 8px;
flex-shrink: 0;
}
&:hover
{
background-color: #3472e6;
color: #f5f8fe;
}
}
}
}
Game
game
.button
{
position: relative;
> .button-right-column
{
flex-direction: column;
}
}
// default menu position is below
.button-hover-menu
{
position: absolute;
top: 100%;
flex-direction: column;
&.hidden
{
opacity: 0;
pointer-events: none;
}
}
Game
game
@inherits PanelComponent
@using Sandbox.ui.mainmenu
<root>
<style>
.button {
position: absolute; top: 50%; left: 50%;
transform: translate(-50%, -50%);
background: #000; color: #fff;
font-family: courier; font-size: 32px;
pointer-events: all; outline: 1px solid white;
}
</style>
<img src="prereqs/textures/gqner2/gqner2.vtex"
style="position: absolute; top: 25%; left: 50%;
transform: translate(-50%, -50%);"> />
<div
class="button"
onclick=@(() => Networking.JoinBestLobby("dvlpmnt.gqner2"))>
Join Server
</div>
<div
class="button"
onclick=@(() => {
AddComponent<create_server_dialog>();
Sound.Play(Blip);
Destroy();
})
style="top: 60%;">
Create Server
</div>
<div
class="button"
onclick=@(() => {
AddComponent<mainmenu>();
Sound.Play(Blip);
Destroy();
})
style="top: 70%;">
Back
</div>
</root>
@code {
SoundEvent Blip;
SceneFile gqner2;
protected override void OnStart() {
Blip = ResourceLibrary.Get<SoundEvent>("prereqs/sound/effects/blip/blip.sound");
gqner2 = ResourceLibrary.Get<SceneFile>("scenes/gqner2.scene");}
protected override void OnUpdate() {
if (Input.EscapePressed)
Input.EscapePressed = false;
}
}
Game
game
.navigator-body
{
&.hidden
{
display: none;
}
}
Game
game
ControlSheetRow
{
flex-direction: row;
flex-shrink: 0;
max-height: 32px;
border-radius: 4px;
&.hidden
{
display: none;
}
}
ControlSheetRow > .left
{
width: 150px;
flex-shrink: 0;
flex-grow: 0;
padding: 6px;
}
ControlSheetRow > .right
{
flex-grow: 1;
}
ControlSheetRow > .left > .title
{
width: 150px;
flex-shrink: 0;
flex-grow: 0;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
}
ControlSheetRow > .right > textentry,
ControlSheetRow > .right numberentry
{
background-color: #000a;
flex-grow: 1;
padding: 4px 8px;
border-radius: 2px;
}
Game
game
using Sandbox;
public class Flashlight : Component
{
[Property] public SpotLight Spotlight {get;set;}
[Property] public Player__Controller Player_Controller {get;set;}
[Property] public SkinnedModelRenderer Model_Renderer {get;set;}
[Property] public ModelRenderer WMDL {get;set;}
GameObject c;
SkinnedModelRenderer VMDL;
ModelRenderer hold_R;
SoundEvent Click;
protected override void OnStart()
{
c = Scene.Camera.GameObject;
VMDL = c.GetChild("flashlight").GetComponent<SkinnedModelRenderer>(true);
hold_R = VMDL.Components.GetInDescendants<ModelRenderer>(true);
Click = ResourceLibrary.Get<SoundEvent>("prereqs/sound/effects/click/click.sound");
}
[Sync] public bool Off {get;set;} = true;
protected override void OnUpdate()
{ _VMDL(); _WMDL(); if (IsProxy) return;
Toggling(); Positioning();
}
void Toggling()
{
if (Input.Pressed("f"))
{ Off = !Off; PlaySound(GameObject, Click);
SpotLight_Set_Radius(Spotlight, Off ? 0 : 500);
SkinnedModelRenderer_Set_Float(Model_Renderer, "holdtype", Off ? 0 : 4);
VMDL.GameObject.Enabled = !Off;
}
}
void Positioning()
{
var Position = Player_Controller.IsThirdPerson ? WorldPosition + Vector3.Zero.WithZ(Player_Controller.Offset) : hold_R.WorldPosition;
GameObject_Set_WorldPosition(Spotlight.GameObject, Position);
GameObject_Set_WorldRotation(Spotlight.GameObject, c.WorldRotation);
}
void _VMDL()
{ if (Off) return;
if (IsProxy || Player_Controller.IsThirdPerson)
VMDL.GameObject.Enabled = false;
else VMDL.GameObject.Enabled = true;
if (IsProxy)
return;
if (Player_Controller.State == "run")
VMDL.Set("move_bob", 1);
else if (Player_Controller.State == "walk")
VMDL.Set("move_bob", .5f);
else VMDL.Set("move_bob", 0);
if (Player_Controller.State == "jump"
|| Player_Controller.State == "fall")
VMDL.Set("b_grounded", false);
else VMDL.Set("b_grounded", true);
}
void _WMDL()
{
if (Off)
{WMDL.GameObject.Enabled = false; return;}
WMDL.GameObject.Enabled = true;
if (Player_Controller.IsThirdPerson || IsProxy)
{WMDL.RenderType = ModelRenderer.ShadowRenderType.On; return;}
WMDL.RenderType = ModelRenderer.ShadowRenderType.ShadowsOnly; }
[Rpc.Broadcast]
public void SpotLight_Set_Radius(SpotLight sl, float r)
{sl.Radius = r;}
[Rpc.Broadcast]
public void SkinnedModelRenderer_Set_Float(SkinnedModelRenderer smr, string n, float f)
{smr.Set(n, f);}
[Rpc.Broadcast]
public void GameObject_Set_WorldPosition(GameObject go, Vector3 wp)
{go.WorldPosition = wp;}
[Rpc.Broadcast]
public void GameObject_Set_WorldRotation(GameObject go, Angles wr)
{go.WorldRotation = wr;}
[Rpc.Broadcast]
public void PlaySound(GameObject go, SoundEvent s)
{go.PlaySound(s);}
protected override void OnDestroy() {if (!IsProxy) VMDL.GameObject.Enabled = false;}}
Game
game
$form-control-height: 28px !default;
@import "form/_checkbox.scss";
@import "form/_switch.scss";
@import "form/_dropdown.scss";
@import "form/_coloreditor.scss";
@import "form/_colorproperty.scss";
.form
{
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
overflow: scroll;
}
.field-group
{
flex-direction: column;
flex-shrink: 0;
}
.field-header
{
flex-shrink: 0;
}
.field
{
color: white;
font-size: 14px;
flex-shrink: 0;
flex-grow: 0;
> .label
{
flex-grow: 0;
flex-shrink: 0;
font-weight: 600;
opacity: 0.4;
width: 20%;
font-size: 13px;
}
> .control
{
flex-shrink: 0;
flex-grow: 1;
flex-direction: column;
}
}
.is-vertical > .field, .field.is-vertical
{
flex-direction: column;
> .label
{
width: auto;
height: auto;
}
}
Game
game
ColorSaturationValueControl
{
width: 240px;
height: 240px;
background-color: red;
position: relative;
border-radius: 4px;
cursor: pointer;
border: 1px solid #333;
&:hover
{
border: 1px solid #08f;
}
&:active
{
border: 1px solid #fff;
}
.handle
{
width: 16px;
height: 16px;
border-radius: 100px;
border: 2px solid #444;
position: absolute;
background-color: white;
box-shadow: 2px 2px 16px #000a;
transform: translateX( -50% ) translateY( -50% );
pointer-events: none;
z-index: 100;
z-index: 100;
}
.gradient
{
position: absolute;
width: 100%;
height: 100%;
border-radius: 4px;
background: linear-gradient( to right, white, rgba( 255, 255, 255, 0 ) );
&:after
{
content: "";
position: absolute;
width: 100%;
height: 100%;
border-radius: 4px;
background: linear-gradient( to top, black, rgba( 0, 0, 0, 0 ) );
}
}
}
Game
game
ColorHueControl
{
gap: 0.5rem;
flex-grow: 1;
pointer-events: all;
background: linear-gradient( to right, red, yellow, lime, cyan, blue, magenta, red );
border-radius: 4px;
padding: 2px;
height: 12px;
position: relative;
cursor: pointer;
margin: 10px 0;
border: 1px solid #333;
&:hover
{
border: 1px solid #08f;
}
&:active
{
border: 1px solid #fff;
}
.handle
{
top: -5px;
bottom: -5px;
aspect-ratio: 1;
border-radius: 100px;
border: 2px solid #444;
position: absolute;
background-color: white;
box-shadow: 2px 2px 16px #000a;
transform: translateX( -50% );
pointer-events: none;
}
}
Game
game
PackageFlairBar
{
position: absolute;
top: 6px;
left: 6px;
z-index: 2;
flex-direction: row;
gap: 5px;
pointer-events: none;
.flair
{
position: relative;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
pointer-events: all;
border-radius: 4px;
color: white;
border: 1px solid rgba( white, 0.1 );
outline: 1px solid #0006;
opacity: 0.7;
&:hover
{
opacity: 1;
}
icon
{
font-size: 15px;
}
}
}
Game
game
$primary: red !default;
$primary-alt: white !default;
$switch-padding: 6px !default;
.button.popupbutton.dropdown
{
cursor: pointer;
transition: all .1s ease-out;
position: relative;
> .dropdown_indicator
{
position: absolute;
right: 8px;
}
&.open
{
border-bottom-left-radius: 1px;
border-bottom-right-radius: 1px;
transition: border-radius 0.2s ease-out;
}
}
select
{
min-height: 40px;
> option
{
display: none;
}
}
Game
game
VectorControl
{
gap: 2px;
flex-grow: 1;
}
VectorControl NumberEntry
{
flex-basis: 50%;
}
Game
game
@import "/styles/_theme.scss";
$background-size: 8px;
PackageCard
{
flex-shrink: 0;
&:hover
{
sound-in: "ui.button.over";
}
&:active
{
sound-in: "ui.button.press";
}
flex-direction: column;
position: relative;
background-color: rgba( $default-950, 0 );
border-radius: $rounding-default;
transition: all 150ms ease;
cursor: pointer;
z-index: 0;
height: 200px;
.image
{
flex-grow: 1;
flex-shrink: 0;
transition: all 150ms ease;
border: 1px solid rgba( white, 0.025 );
aspect-ratio: 16 / 9;
background-position: center;
background-size: cover;
border-radius: $rounding-small;
position: relative;
}
column
{
padding: 8px 2px; // Optically aligned
}
&.list
{
flex-grow: 1;
height: 64px;
flex-direction: row;
gap: 12px;
padding: 4px;
.inner column
{
flex-grow: 1;
}
.image
{
height: 100%;
aspect-ratio: 1;
flex-grow: 0;
flex-shrink: 0;
}
column
{
gap: 3px;
justify-content: center;
}
.package-title
{
flex-shrink: 0;
max-width: 500px;
}
.package-users
{
top: 1px;
right: 1px;
}
&:hover
{
background-color: $default-800;
transform: none;
&::after
{
display: none;
}
}
}
&.wide
{
height: 250px;
.package-title
{
max-width: 300px;
}
}
&.small
{
height: 200px;
aspect-ratio: 3/4;
.image
{
aspect-ratio: 1;
}
.package-title
{
max-width: 140px;
}
}
&.tall
{
height: 400px;
.image
{
aspect-ratio: 9/16;
}
.package-title
{
max-width: 200px;
}
}
.package-title
{
text-overflow: ellipsis;
max-height: 24px;
flex-shrink: 1;
font-size: 14px;
}
.package-users
{
position: absolute;
bottom: 4px;
right: 4px;
background-color: rgba( 10, 40, 10, 0.95 );
padding: 3px 5px;
border-radius: 2px;
justify-content: center;
align-items: center;
gap: 3px;
font-size: 11px;
color: #def;
border: 1px solid #252;
color: #2f3;
&:before
{
content: '●';
font-size: 0.5rem;
}
}
// Hover effect (not for list)
&:not(.list)
{
&::after
{
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: rgba( $default-950, 0 );
transition: all 150ms ease;
z-index: -10;
border-radius: $rounding-large;
pointer-events: none;
}
&:hover
{
transform: scale( 1.05 );
&::after
{
background-color: $default-800;
top: -$background-size;
left: -$background-size;
right: -$background-size;
bottom: -$background-size;
box-shadow: 0 0 25px rgba( black, 0.3 );
}
z-index: 100;
background-color: $default-900;
}
}
}
.package-card.list packageflairbar
{
display: none;
}
.package-card.list .package-users
{
display: none;
}
Game
game
@inherits PanelComponent <root> <div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); outline: 1px solid gray; width: .25vw; height: .25vw; border-radius: 50%; opacity: 50%;"> </div> </root>
Game
game
global using static Sandbox.Internal.GlobalGameNamespace;
global using Microsoft.AspNetCore.Components;
global using Microsoft.AspNetCore.Components.Rendering;
[assembly: global::System.Reflection.AssemblyMetadata( "AddonTitle", "GQN'er 2" )]
[assembly: global::System.Reflection.AssemblyMetadata( "AddonIdent", "gqner2" )]
[assembly: global::System.Reflection.AssemblyMetadata( "OrgIdent", "dvlpmnt" )]
[assembly: global::System.Reflection.AssemblyMetadata( "Ident", "dvlpmnt.gqner2" )]
[assembly: global::System.Reflection.AssemblyMetadata( "EngineVersion", "28" )]
[assembly: global::System.Reflection.AssemblyMetadata( "EngineMinorVersion", "1" )]
[assembly: System.Runtime.Versioning.TargetFramework( ".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0" )]
[assembly: global::System.Reflection.AssemblyMetadata( "CompileTime", "2026-07-24T07:29:11.4983180Z" )]
[assembly: global::System.Reflection.AssemblyVersion("0.0.111.0")]
[assembly: global::System.Reflection.AssemblyFileVersion("0.0.111.0")]
Game
game
using Sandbox;
public class Player__Animator : Component
{
[Property] public Player__Controller Player_Controller {get;set;}
[Property] public SkinnedModelRenderer Model_Renderer {get;set;}
string _ = "idle";
protected override void OnUpdate()
{ if (IsProxy) return;
if (Player_Controller.IsDucking)
Set_Float(Model_Renderer, "duck", 1);
else Set_Float(Model_Renderer, "duck", 0);
Set_Vector3(Model_Renderer, "aim_body", Player_Controller.Aim);
Set_Vector3(Model_Renderer, "aim_head", Player_Controller.Aim);
Set_Vector3(Model_Renderer, "aim_eyes", Player_Controller.Aim);
if (_ == Player_Controller.State) return;
_ = Player_Controller.State;
if (_ == "jump" || _ == "fall")
{Set_Bool(Model_Renderer, "b_grounded", false); return;}
Set_Bool(Model_Renderer, "b_grounded", true);
if (_ == "run")
{Set_Float(Model_Renderer, "move_x", 200);
Set_Float(Model_Renderer, "move_groundspeed", 200); return;}
Set_Float(Model_Renderer, "move_x", 100); Set_Float(Model_Renderer, "move_groundspeed", 100);
if (_ == "walk")
{Set_Float(Model_Renderer, "move_x", 100);
Set_Float(Model_Renderer, "move_groundspeed", 100); return;}
Set_Float(Model_Renderer, "move_x", 0); Set_Float(Model_Renderer, "move_groundspeed", 0);
}
[Rpc.Broadcast]
public void Set_Bool(SkinnedModelRenderer smr, string s, bool b)
{smr.Set(s, b);}
[Rpc.Broadcast]
public void Set_Float(SkinnedModelRenderer smr, string s, float f)
{smr.Set(s, f);}
[Rpc.Broadcast]
public void Set_Vector3(SkinnedModelRenderer smr, string s, Vector3 v)
{smr.Set(s, v);}
}
Game
game
.colorproperty
{
align-items: center;
position: relative;
.colorsquare
{
width: 20px;
height: 20px;
border-radius: 4px;
margin-right: 8px;
position: absolute;
left: 7px;
z-index: 1;
cursor: pointer;
}
> .textentry:not( .a.b.c )
{
padding-left: 36px;
}
}
Game
game
ControlSheetGroupHeader
{
font-size: 1.33rem;
color: red;
gap: 2px;
align-items: center;
&.hidden
{
display: none;
}
> .title
{
font-weight: 600;
}
&.has-toggle
{
cursor: pointer;
opacity: 0.8;
&:before
{
content: ' ';
width: 22px;
height: 22px;
background-color: #000a;
align-items: center;
justify-content: center;
text-align: center;
border-radius: 5px;
border: 1px solid #555;
}
&:hover
{
opacity: 1;
&:before
{
border-color: #888;
}
}
&.checked
{
> .title
{
color: white;
}
&:before
{
content: '✓';
font-weight: bold;
color: #08f;
border-color: #08f;
}
}
}
}
Debug: View Raw JSON Response
{
"TotalCount": 48,
"Files": [
{
"Ident": "dvlpmnt.gqner2",
"Path": "components/menu.cs",
"FileName": "menu.cs",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "using Sandbox;\r\nusing Sandbox.ui;\r\n\r\npublic class Menu : Component {\r\n\tGameObject UI;\r\n\t\r\n\tprotected override void OnStart() {\r\n\t\tUI = Scene.Directory.FindbyName(\"UI\");\r\n\t}\r\n\t\r\n\tprotected override void OnUpdate() {\r\n\t\tif (IsProxy) return;\r\n\t\tif (Input.EscapePressed) {\r\n\t\t\tInput.EscapePressed = false;\r\n\t\t\tif (UI.Components.TryGet<menu>(out var _)) {\r\n\t\t\t\tUI.GetComponent<menu>().Destroy(); return;\r\n\t\t\t}\r\n\t\t\tUI.AddComponent<menu>();\r\n\t\t}\r\n\t}\r\n\t\r\n\tprotected override void OnDestroy() {\r\n\t\tif (!IsProxy && UI.Components.TryGet<menu>(out var _))\r\n\t\t\tUI.GetComponent<menu>().Destroy();\r\n\t}\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "components/nightvision.cs",
"FileName": "nightvision.cs",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "using Sandbox;\r\n\r\npublic class NightVision : Component\r\n{\r\n\tGameObject c;\r\n\tprotected override void OnStart()\r\n\t{c = Scene.Camera.GameObject;}\r\n\t\r\n\tprotected override void OnUpdate()\r\n\t{\r\n\t\tif (IsProxy)\r\n\t\t{\r\n\t\t\tc.GetOrAddComponent<Tonemapping>().Destroy();\r\n\t\t\tc.GetOrAddComponent<ColorAdjustments>().Destroy();\r\n\t\t\tc.GetOrAddComponent<DepthOfField>().Destroy();\r\n\t\treturn; }\r\n\t\t\r\n\t\tvar tm = c.GetOrAddComponent<Tonemapping>();\r\n\t\tvar ca = c.GetOrAddComponent<ColorAdjustments>();\r\n\t\tvar dof = c.GetOrAddComponent<DepthOfField>();\r\n\t\t\r\n\t\ttm.MaximumExposure = 5;\r\n\t\ttm.Rate = 10;\r\n\t\t\r\n\t\tca.Brightness = 2;\r\n\t\tca.Saturation = 0;\r\n\t\t\r\n\t\tdof.FocusRange = 1000;\r\n\t}\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/menupanel.razor.scss",
"FileName": "menupanel.razor.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "\r\nmenupanel\r\n{\r\n position: absolute;\r\n z-index: 1000;\r\n pointer-events: all;\r\n font-size: 12px;\r\n flex-shrink: 0;\r\n\r\n .background\r\n {\r\n position: absolute;\r\n left: -5000px;\r\n right: -5000px;\r\n top: -5000px;\r\n bottom: -5000px;\r\n }\r\n\r\n > .inner\r\n {\r\n min-width: 200px;\r\n min-height: 20px;\r\n flex-direction: column;\r\n font-family: Poppins;\r\n font-weight: bold;\r\n border-radius: 10px;\r\n box-shadow: 5px 5px 30px #000e;\r\n background-color: #2a2a2a;\r\n flex-shrink: 0;\r\n\r\n .spacer\r\n {\r\n height: 1px;\r\n background-color: #0005;\r\n }\r\n\r\n .option\r\n {\r\n color: #fffa;\r\n padding: 0px 8px;\r\n cursor: pointer;\r\n flex-shrink: 0;\r\n height: 32px;\r\n\r\n &:first-child\r\n {\r\n border-top-left-radius: 10px;\r\n border-top-right-radius: 10px;\r\n }\r\n\r\n &:last-child\r\n {\r\n border-bottom-left-radius: 10px;\r\n border-bottom-right-radius: 10px;\r\n }\r\n\r\n .icon\r\n {\r\n padding: 8px;\r\n font-family: Material Icons;\r\n justify-content: center;\r\n align-items: center;\r\n flex-shrink: 0;\r\n }\r\n\r\n .text\r\n {\r\n padding: 8px;\r\n flex-shrink: 0;\r\n }\r\n\r\n &:hover\r\n {\r\n background-color: #3472e6;\r\n color: #f5f8fe;\r\n }\r\n }\r\n }\r\n}\r\n"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/button.cs.scss",
"FileName": "button.cs.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": ".button\r\n{\r\n\tposition: relative;\r\n\t\r\n\t> .button-right-column\r\n\t{\r\n\t\tflex-direction: column;\r\n\t}\r\n}\r\n\r\n// default menu position is below\r\n.button-hover-menu\r\n{\r\n\tposition: absolute;\r\n\ttop: 100%;\r\n\tflex-direction: column;\r\n\r\n\t&.hidden\r\n\t{\r\n\t\topacity: 0;\r\n\t\tpointer-events: none;\r\n\t}\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/mainmenu/play_dialog.razor",
"FileName": "play_dialog.razor",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "@inherits PanelComponent\r\n@using Sandbox.ui.mainmenu\r\n\r\n<root>\r\n\r\n<style>\r\n\r\n.button {\r\nposition: absolute; top: 50%; left: 50%;\r\ntransform: translate(-50%, -50%);\r\nbackground: #000; color: #fff;\r\nfont-family: courier; font-size: 32px;\r\npointer-events: all; outline: 1px solid white;\r\n}\r\n\r\n</style>\r\n\r\n<img src=\"prereqs/textures/gqner2/gqner2.vtex\"\r\nstyle=\"position: absolute; top: 25%; left: 50%;\r\ntransform: translate(-50%, -50%);\"> />\r\n\r\n<div\r\nclass=\"button\"\r\nonclick=@(() => Networking.JoinBestLobby(\"dvlpmnt.gqner2\"))>\r\nJoin Server\r\n</div>\r\n\r\n<div\r\nclass=\"button\"\r\nonclick=@(() => {\r\nAddComponent<create_server_dialog>();\r\nSound.Play(Blip);\r\nDestroy();\r\n})\r\nstyle=\"top: 60%;\">\r\nCreate Server\r\n</div>\r\n\r\n<div\r\nclass=\"button\"\r\nonclick=@(() => {\r\nAddComponent<mainmenu>();\r\nSound.Play(Blip);\r\nDestroy();\r\n})\r\nstyle=\"top: 70%;\">\r\nBack\r\n</div>\r\n\r\n</root>\r\n\r\n@code {\r\nSoundEvent Blip;\r\nSceneFile gqner2;\r\n\r\nprotected override void OnStart() {\r\nBlip = ResourceLibrary.Get<SoundEvent>(\"prereqs/sound/effects/blip/blip.sound\");\r\ngqner2 = ResourceLibrary.Get<SceneFile>(\"scenes/gqner2.scene\");}\r\n\r\nprotected override void OnUpdate() {\r\nif (Input.EscapePressed)\r\nInput.EscapePressed = false;\r\n}\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "styles/base/_navigator.scss",
"FileName": "_navigator.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": ".navigator-body\r\n{\r\n\t&.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/controlsheet/controlsheetrow.cs.scss",
"FileName": "controlsheetrow.cs.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "\r\nControlSheetRow\r\n{\r\n\tflex-direction: row;\r\n\tflex-shrink: 0;\r\n\tmax-height: 32px;\r\n\tborder-radius: 4px;\r\n\r\n\t&.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n}\r\n\r\nControlSheetRow > .left\r\n{\r\n\twidth: 150px;\r\n\tflex-shrink: 0;\r\n\tflex-grow: 0;\r\n\tpadding: 6px;\r\n}\r\n\r\nControlSheetRow > .right\r\n{\r\n\tflex-grow: 1;\r\n}\r\n\r\nControlSheetRow > .left > .title\r\n{\r\n\twidth: 150px;\r\n\tflex-shrink: 0;\r\n\tflex-grow: 0;\r\n\tfont-size: 13px;\r\n\twhite-space: nowrap;\r\n\toverflow: hidden;\r\n}\r\n\r\nControlSheetRow > .right > textentry,\r\nControlSheetRow > .right numberentry\r\n{\r\n\tbackground-color: #000a;\r\n\tflex-grow: 1;\r\n\tpadding: 4px 8px;\r\n\tborder-radius: 2px;\r\n}\r\n\r\n"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "components/flashlight.cs",
"FileName": "flashlight.cs",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "using Sandbox;\r\n\r\npublic class Flashlight : Component\r\n{\r\n\t[Property] public SpotLight Spotlight {get;set;}\r\n\t[Property] public Player__Controller Player_Controller {get;set;}\r\n\t[Property] public SkinnedModelRenderer Model_Renderer {get;set;}\r\n\t[Property] public ModelRenderer WMDL {get;set;}\r\n\t\r\n\tGameObject c;\r\n\tSkinnedModelRenderer VMDL;\r\n\tModelRenderer hold_R;\r\n\tSoundEvent Click;\r\n\t\r\n\tprotected override void OnStart()\r\n\t{\r\n\t\tc = Scene.Camera.GameObject;\r\n\t\tVMDL = c.GetChild(\"flashlight\").GetComponent<SkinnedModelRenderer>(true);\r\n\t\thold_R = VMDL.Components.GetInDescendants<ModelRenderer>(true);\r\n\t\tClick = ResourceLibrary.Get<SoundEvent>(\"prereqs/sound/effects/click/click.sound\");\r\n\t}\r\n\t\r\n\t[Sync] public bool Off {get;set;} = true;\r\n\t\r\n\tprotected override void OnUpdate()\r\n\t{ _VMDL(); _WMDL(); if (IsProxy) return;\r\n\t\tToggling(); Positioning();\r\n\t}\r\n\t\r\n\tvoid Toggling()\r\n\t{\r\n\t\tif (Input.Pressed(\"f\"))\r\n\t\t{ Off = !Off; PlaySound(GameObject, Click);\r\n\t\t\tSpotLight_Set_Radius(Spotlight, Off ? 0 : 500);\r\n\t\t\tSkinnedModelRenderer_Set_Float(Model_Renderer, \"holdtype\", Off ? 0 : 4);\r\n\t\t\tVMDL.GameObject.Enabled = !Off;\r\n\t\t}\r\n\t}\r\n\t\r\n\tvoid Positioning()\r\n\t{\r\n\t\tvar Position = Player_Controller.IsThirdPerson ? WorldPosition + Vector3.Zero.WithZ(Player_Controller.Offset) : hold_R.WorldPosition;\r\n\t\tGameObject_Set_WorldPosition(Spotlight.GameObject, Position);\r\n\t\tGameObject_Set_WorldRotation(Spotlight.GameObject, c.WorldRotation);\r\n\t}\r\n\t\r\n\tvoid _VMDL()\r\n\t{ if (Off) return;\r\n\t\tif (IsProxy || Player_Controller.IsThirdPerson)\r\n\t\t\tVMDL.GameObject.Enabled = false;\r\n\t\telse VMDL.GameObject.Enabled = true;\r\n\t\t\r\n\t\tif (IsProxy)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tif (Player_Controller.State == \"run\")\r\n\t\t\tVMDL.Set(\"move_bob\", 1);\r\n\t\telse if (Player_Controller.State == \"walk\")\r\n\t\t\tVMDL.Set(\"move_bob\", .5f);\r\n\t\telse VMDL.Set(\"move_bob\", 0);\r\n\t\t\r\n\t\tif (Player_Controller.State == \"jump\"\r\n\t\t\t|| Player_Controller.State == \"fall\")\r\n\t\t\tVMDL.Set(\"b_grounded\", false);\r\n\t\telse VMDL.Set(\"b_grounded\", true);\r\n\t}\r\n\t\r\n\tvoid _WMDL()\r\n\t{\r\n\t\tif (Off)\r\n\t\t{WMDL.GameObject.Enabled = false; return;}\r\n\t\tWMDL.GameObject.Enabled = true;\r\n\t\t\r\n\t\tif (Player_Controller.IsThirdPerson || IsProxy)\r\n\t\t{WMDL.RenderType = ModelRenderer.ShadowRenderType.On; return;}\t\r\n\tWMDL.RenderType = ModelRenderer.ShadowRenderType.ShadowsOnly; }\r\n\t\r\n\t[Rpc.Broadcast]\r\n\tpublic void SpotLight_Set_Radius(SpotLight sl, float r)\r\n\t{sl.Radius = r;}\r\n\t\r\n\t[Rpc.Broadcast]\r\n\tpublic void SkinnedModelRenderer_Set_Float(SkinnedModelRenderer smr, string n, float f)\r\n\t{smr.Set(n, f);}\r\n\t\r\n\t[Rpc.Broadcast]\r\n\tpublic void GameObject_Set_WorldPosition(GameObject go, Vector3 wp)\r\n\t{go.WorldPosition = wp;}\r\n\t\r\n\t[Rpc.Broadcast]\r\n\tpublic void GameObject_Set_WorldRotation(GameObject go, Angles wr)\r\n\t{go.WorldRotation = wr;}\r\n\t\r\n\t[Rpc.Broadcast]\r\n\tpublic void PlaySound(GameObject go, SoundEvent s)\r\n\t{go.PlaySound(s);}\r\nprotected override void OnDestroy() {if (!IsProxy) VMDL.GameObject.Enabled = false;}}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "styles/form.scss",
"FileName": "form.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "\r\n$form-control-height: 28px !default;\r\n\r\n@import \"form/_checkbox.scss\";\r\n@import \"form/_switch.scss\";\r\n@import \"form/_dropdown.scss\";\r\n@import \"form/_coloreditor.scss\";\r\n@import \"form/_colorproperty.scss\";\r\n\r\n.form\r\n{\r\n\tflex-direction: column;\r\n\talign-items: stretch;\r\n\tjustify-content: flex-start;\r\n\toverflow: scroll;\r\n}\r\n\r\n.field-group\r\n{\r\n\tflex-direction: column;\r\n\tflex-shrink: 0;\r\n}\r\n\r\n.field-header\r\n{\r\n\tflex-shrink: 0;\r\n}\r\n\r\n.field\r\n{\r\n\tcolor: white;\r\n\tfont-size: 14px;\r\n\tflex-shrink: 0;\r\n\tflex-grow: 0;\r\n\r\n\t> .label\r\n\t{\r\n\t\tflex-grow: 0;\r\n\t\tflex-shrink: 0;\r\n\t\tfont-weight: 600;\r\n\t\topacity: 0.4;\r\n\t\twidth: 20%;\r\n\t\tfont-size: 13px;\r\n\t}\r\n\r\n\t> .control\r\n\t{\r\n\t\tflex-shrink: 0;\r\n\t\tflex-grow: 1;\r\n\t\tflex-direction: column;\r\n\t}\r\n}\r\n\r\n.is-vertical > .field, .field.is-vertical\r\n{\r\n\tflex-direction: column;\r\n\r\n\t> .label\r\n\t{\r\n\t\twidth: auto;\r\n\t\theight: auto;\r\n\t}\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/controls/color/colorsaturationvaluecontrol.cs.scss",
"FileName": "colorsaturationvaluecontrol.cs.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "ColorSaturationValueControl\r\n{\r\n\twidth: 240px;\r\n\theight: 240px;\r\n\tbackground-color: red;\r\n\tposition: relative;\r\n\tborder-radius: 4px;\r\n\tcursor: pointer;\r\n\tborder: 1px solid #333;\r\n\r\n\t&:hover\r\n\t{\r\n\t\tborder: 1px solid #08f;\r\n\t}\r\n\r\n\t&:active\r\n\t{\r\n\t\tborder: 1px solid #fff;\r\n\t}\r\n\r\n\t.handle\r\n\t{\r\n\t\twidth: 16px;\r\n\t\theight: 16px;\r\n\t\tborder-radius: 100px;\r\n\t\tborder: 2px solid #444;\r\n\t\tposition: absolute;\r\n\t\tbackground-color: white;\r\n\t\tbox-shadow: 2px 2px 16px #000a;\r\n\t\ttransform: translateX( -50% ) translateY( -50% );\r\n\t\tpointer-events: none;\r\n\t\tz-index: 100;\r\n\t\tz-index: 100;\r\n\t}\r\n\r\n\t.gradient\r\n\t{\r\n\t\tposition: absolute;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tborder-radius: 4px;\r\n\t\tbackground: linear-gradient( to right, white, rgba( 255, 255, 255, 0 ) );\r\n\r\n\t\t&:after\r\n\t\t{\r\n\t\t\tcontent: \"\";\r\n\t\t\tposition: absolute;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tborder-radius: 4px;\r\n\t\t\tbackground: linear-gradient( to top, black, rgba( 0, 0, 0, 0 ) );\r\n\t\t}\r\n\t}\r\n}\r\n"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/controls/color/colorhuecontrol.cs.scss",
"FileName": "colorhuecontrol.cs.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "ColorHueControl\r\n{\r\n\tgap: 0.5rem;\r\n\tflex-grow: 1;\r\n\tpointer-events: all;\r\n\tbackground: linear-gradient( to right, red, yellow, lime, cyan, blue, magenta, red );\r\n\tborder-radius: 4px;\r\n\tpadding: 2px;\r\n\theight: 12px;\r\n\tposition: relative;\r\n\tcursor: pointer;\r\n\tmargin: 10px 0;\r\n\tborder: 1px solid #333;\r\n\r\n\t&:hover\r\n\t{\r\n\t\tborder: 1px solid #08f;\r\n\t}\r\n\r\n\t&:active\r\n\t{\r\n\t\tborder: 1px solid #fff;\r\n\t}\r\n\r\n\t.handle\r\n\t{\r\n\t\ttop: -5px;\r\n\t\tbottom: -5px;\r\n\t\taspect-ratio: 1;\r\n\t\tborder-radius: 100px;\r\n\t\tborder: 2px solid #444;\r\n\t\tposition: absolute;\r\n\t\tbackground-color: white;\r\n\t\tbox-shadow: 2px 2px 16px #000a;\r\n\t\ttransform: translateX( -50% );\r\n\t\tpointer-events: none;\r\n\t}\r\n}\r\n"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/components/packageflairbar.razor.scss",
"FileName": "packageflairbar.razor.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "PackageFlairBar\r\n{\r\n\tposition: absolute;\r\n\ttop: 6px;\r\n\tleft: 6px;\r\n\tz-index: 2;\r\n\tflex-direction: row;\r\n\tgap: 5px;\r\n\tpointer-events: none;\r\n\r\n\t.flair\r\n\t{\r\n\t\tposition: relative;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t\twidth: 22px;\r\n\t\theight: 22px;\r\n\t\tpointer-events: all;\r\n\t\tborder-radius: 4px;\r\n\t\tcolor: white;\r\n\t\tborder: 1px solid rgba( white, 0.1 );\r\n\t\toutline: 1px solid #0006;\r\n\t\topacity: 0.7;\r\n\r\n\t\t&:hover\r\n\t\t{\r\n\t\t\topacity: 1;\r\n\t\t}\r\n\r\n\t\ticon\r\n\t\t{\r\n\t\t\tfont-size: 15px;\r\n\t\t}\r\n\t}\r\n}\r\n"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "styles/form/_dropdown.scss",
"FileName": "_dropdown.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "\r\n$primary: red !default;\r\n$primary-alt: white !default;\r\n\r\n$switch-padding: 6px !default;\r\n\r\n.button.popupbutton.dropdown\r\n{\r\n\tcursor: pointer;\r\n\ttransition: all .1s ease-out;\r\n\tposition: relative;\r\n\r\n\t> .dropdown_indicator\r\n\t{\r\n\t\tposition: absolute;\r\n\t\tright: 8px;\r\n\t}\r\n\r\n\t&.open\r\n\t{\r\n\t\tborder-bottom-left-radius: 1px;\r\n\t\tborder-bottom-right-radius: 1px;\r\n\t\ttransition: border-radius 0.2s ease-out;\r\n\t}\r\n}\r\n\r\nselect\r\n{\r\n\tmin-height: 40px;\r\n\r\n\t> option\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/controls/vectorcontrol.cs.scss",
"FileName": "vectorcontrol.cs.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "VectorControl\r\n{\r\n\tgap: 2px;\r\n\tflex-grow: 1;\r\n}\r\n\r\nVectorControl NumberEntry\r\n{\r\n\tflex-basis: 50%;\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/components/packagecard.razor.scss",
"FileName": "packagecard.razor.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "@import \"/styles/_theme.scss\";\r\n$background-size: 8px;\r\n\r\nPackageCard\r\n{\r\n\tflex-shrink: 0;\r\n\r\n\t&:hover\r\n\t{\r\n\t\tsound-in: \"ui.button.over\";\r\n\t}\r\n\r\n\t&:active\r\n\t{\r\n\t\tsound-in: \"ui.button.press\";\r\n\t}\r\n\r\n\tflex-direction: column;\r\n\tposition: relative;\r\n\tbackground-color: rgba( $default-950, 0 );\r\n\tborder-radius: $rounding-default;\r\n\ttransition: all 150ms ease;\r\n\tcursor: pointer;\r\n\tz-index: 0;\r\n\theight: 200px;\r\n\r\n\t.image\r\n\t{\r\n\t\tflex-grow: 1;\r\n\t\tflex-shrink: 0;\r\n\t\ttransition: all 150ms ease;\r\n\t\tborder: 1px solid rgba( white, 0.025 );\r\n\t\taspect-ratio: 16 / 9;\r\n\t\tbackground-position: center;\r\n\t\tbackground-size: cover;\r\n\t\tborder-radius: $rounding-small;\r\n\t\tposition: relative;\r\n\t}\r\n\r\n\tcolumn\r\n\t{\r\n\t\tpadding: 8px 2px; // Optically aligned\r\n\t}\r\n\r\n\t\r\n\r\n\t&.list\r\n\t{\r\n\t\tflex-grow: 1;\r\n\t\theight: 64px;\r\n\t\tflex-direction: row;\r\n\t\tgap: 12px;\r\n\t\tpadding: 4px;\r\n\r\n\t\t.inner column\r\n\t\t{\r\n\t\t\tflex-grow: 1;\r\n\t\t}\r\n\r\n\t\t.image\r\n\t\t{\r\n\t\t\theight: 100%;\r\n\t\t\taspect-ratio: 1;\r\n\t\t\tflex-grow: 0;\r\n\t\t\tflex-shrink: 0;\r\n\t\t}\r\n\r\n\t\tcolumn\r\n\t\t{\r\n\t\t\tgap: 3px;\r\n\t\t\tjustify-content: center;\r\n\t\t}\r\n\r\n\t\t.package-title\r\n\t\t{\r\n\t\t\tflex-shrink: 0;\r\n\t\t\tmax-width: 500px;\r\n\t\t}\r\n\r\n\t\t.package-users\r\n\t\t{\r\n\t\t\ttop: 1px;\r\n\t\t\tright: 1px;\r\n\t\t}\r\n\r\n\t\t&:hover\r\n\t\t{\r\n\t\t\tbackground-color: $default-800;\r\n\t\t\ttransform: none;\r\n\r\n\t\t\t&::after\r\n\t\t\t{\r\n\t\t\t\tdisplay: none;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t&.wide\r\n\t{\r\n\t\theight: 250px;\r\n\r\n\t\t.package-title\r\n\t\t{\r\n\t\t\tmax-width: 300px;\r\n\t\t}\r\n\t}\r\n\r\n\t&.small\r\n\t{\r\n\t\theight: 200px;\r\n\t\taspect-ratio: 3/4;\r\n\r\n\t\t.image\r\n\t\t{\r\n\t\t\taspect-ratio: 1;\r\n\t\t}\r\n\r\n\t\t.package-title\r\n\t\t{\r\n\t\t\tmax-width: 140px;\r\n\t\t}\r\n\t}\r\n\r\n\t&.tall\r\n\t{\r\n\t\theight: 400px;\r\n\r\n\t\t.image\r\n\t\t{\r\n\t\t\taspect-ratio: 9/16;\r\n\t\t}\r\n\r\n\t\t.package-title\r\n\t\t{\r\n\t\t\tmax-width: 200px;\r\n\t\t}\r\n\t}\r\n\r\n\t.package-title\r\n\t{\r\n\t\ttext-overflow: ellipsis;\r\n\t\tmax-height: 24px;\r\n\t\tflex-shrink: 1;\r\n\t\tfont-size: 14px;\r\n\t}\r\n\r\n\t.package-users\r\n\t{\r\n\t\tposition: absolute;\r\n\t\tbottom: 4px;\r\n\t\tright: 4px;\r\n\t\tbackground-color: rgba( 10, 40, 10, 0.95 );\r\n\t\tpadding: 3px 5px;\r\n\t\tborder-radius: 2px;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tgap: 3px;\r\n\t\tfont-size: 11px;\r\n\t\tcolor: #def;\r\n\t\tborder: 1px solid #252;\r\n\t\tcolor: #2f3;\r\n\r\n\t\t&:before\r\n\t\t{\r\n\t\t\tcontent: '\u25cf';\r\n\t\t\tfont-size: 0.5rem;\r\n\t\t}\r\n\t}\r\n\t// Hover effect (not for list)\r\n\t&:not(.list)\r\n\t{\r\n\t\t&::after\r\n\t\t{\r\n\t\t\tcontent: \"\";\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 0;\r\n\t\t\tleft: 0;\r\n\t\t\tbottom: 0;\r\n\t\t\tright: 0;\r\n\t\t\tbackground-color: rgba( $default-950, 0 );\r\n\t\t\ttransition: all 150ms ease;\r\n\t\t\tz-index: -10;\r\n\t\t\tborder-radius: $rounding-large;\r\n\t\t\tpointer-events: none;\r\n\t\t}\r\n\r\n\t\t&:hover\r\n\t\t{\r\n\t\t\ttransform: scale( 1.05 );\r\n\r\n\t\t\t&::after\r\n\t\t\t{\r\n\t\t\t\tbackground-color: $default-800;\r\n\t\t\t\ttop: -$background-size;\r\n\t\t\t\tleft: -$background-size;\r\n\t\t\t\tright: -$background-size;\r\n\t\t\t\tbottom: -$background-size;\r\n\t\t\t\tbox-shadow: 0 0 25px rgba( black, 0.3 );\r\n\t\t\t}\r\n\r\n\t\t\tz-index: 100;\r\n\t\t\tbackground-color: $default-900;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n\r\n.package-card.list packageflairbar\r\n{\r\n\tdisplay: none;\r\n}\r\n\r\n.package-card.list .package-users\r\n{\r\n\tdisplay: none;\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/crosshair.razor",
"FileName": "crosshair.razor",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "@inherits PanelComponent\r\n\r\n<root>\r\n<div style=\"position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);\r\noutline: 1px solid gray; width: .25vw; height: .25vw; border-radius: 50%; opacity: 50%;\"> </div>\r\n</root>"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": ".obj/__compiler_extra.cs",
"FileName": "__compiler_extra.cs",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "global using static Sandbox.Internal.GlobalGameNamespace;\r\nglobal using Microsoft.AspNetCore.Components;\r\nglobal using Microsoft.AspNetCore.Components.Rendering;\r\n[assembly: global::System.Reflection.AssemblyMetadata( \"AddonTitle\", \"GQN'er 2\" )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \"AddonIdent\", \"gqner2\" )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \"OrgIdent\", \"dvlpmnt\" )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \"Ident\", \"dvlpmnt.gqner2\" )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \"EngineVersion\", \"28\" )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \"EngineMinorVersion\", \"1\" )]\r\n\r\n[assembly: System.Runtime.Versioning.TargetFramework( \".NETCoreApp,Version=v9.0\", FrameworkDisplayName = \".NET 9.0\" )]\r\n[assembly: global::System.Reflection.AssemblyMetadata( \"CompileTime\", \"2026-07-24T07:29:11.4983180Z\" )]\r\n[assembly: global::System.Reflection.AssemblyVersion(\"0.0.111.0\")]\r\n[assembly: global::System.Reflection.AssemblyFileVersion(\"0.0.111.0\")]"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "components/player_animator.cs",
"FileName": "player_animator.cs",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "using Sandbox;\r\n\r\npublic class Player__Animator : Component\r\n{\r\n\t[Property] public Player__Controller Player_Controller {get;set;}\r\n\t[Property] public SkinnedModelRenderer Model_Renderer {get;set;}\r\n\t\r\n\tstring _ = \"idle\"; \r\n\t\r\n\tprotected override void OnUpdate()\r\n\t{ if (IsProxy) return;\r\n\t\tif (Player_Controller.IsDucking)\r\n\t\t\tSet_Float(Model_Renderer, \"duck\", 1);\r\n\t\telse Set_Float(Model_Renderer, \"duck\", 0);\r\n\t\t\r\n\t\tSet_Vector3(Model_Renderer, \"aim_body\", Player_Controller.Aim);\r\n\t\tSet_Vector3(Model_Renderer, \"aim_head\", Player_Controller.Aim);\r\n\t\tSet_Vector3(Model_Renderer, \"aim_eyes\", Player_Controller.Aim);\r\n\t\t\r\n\t\tif (_ == Player_Controller.State) return;\r\n\t\t_ = Player_Controller.State;\r\n\t\t\r\n\t\tif (_ == \"jump\" || _ == \"fall\")\r\n\t\t{Set_Bool(Model_Renderer, \"b_grounded\", false); return;}\r\n\t\tSet_Bool(Model_Renderer, \"b_grounded\", true);\r\n\t\t\r\n\t\tif (_ == \"run\")\r\n\t\t{Set_Float(Model_Renderer, \"move_x\", 200);\r\n\t\tSet_Float(Model_Renderer, \"move_groundspeed\", 200); return;}\r\n\t\tSet_Float(Model_Renderer, \"move_x\", 100); Set_Float(Model_Renderer, \"move_groundspeed\", 100);\r\n\t\t\r\n\t\tif (_ == \"walk\")\r\n\t\t{Set_Float(Model_Renderer, \"move_x\", 100);\r\n\t\tSet_Float(Model_Renderer, \"move_groundspeed\", 100); return;}\r\n\t\tSet_Float(Model_Renderer, \"move_x\", 0); Set_Float(Model_Renderer, \"move_groundspeed\", 0);\r\n\t}\r\n\t\r\n\t[Rpc.Broadcast]\r\n\tpublic void Set_Bool(SkinnedModelRenderer smr, string s, bool b)\r\n\t{smr.Set(s, b);}\r\n\t\r\n\t[Rpc.Broadcast]\r\n\tpublic void Set_Float(SkinnedModelRenderer smr, string s, float f)\r\n\t{smr.Set(s, f);}\r\n\t\r\n\t[Rpc.Broadcast]\r\n\tpublic void Set_Vector3(SkinnedModelRenderer smr, string s, Vector3 v)\r\n\t{smr.Set(s, v);}\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "styles/form/_colorproperty.scss",
"FileName": "_colorproperty.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "\r\n\r\n.colorproperty\r\n{\r\n\talign-items: center;\r\n\tposition: relative;\r\n\r\n\t.colorsquare\r\n\t{\r\n\t\twidth: 20px;\r\n\t\theight: 20px;\r\n\t\tborder-radius: 4px;\r\n\t\tmargin-right: 8px;\r\n\t\tposition: absolute;\r\n\t\tleft: 7px;\r\n\t\tz-index: 1;\r\n\t\tcursor: pointer;\r\n\t}\r\n\r\n\t> .textentry:not( .a.b.c )\r\n\t{\r\n\t\tpadding-left: 36px;\r\n\t}\r\n}"
},
{
"Ident": "dvlpmnt.gqner2",
"Path": "ui/controlsheet/controlsheetgroupheader.cs.scss",
"FileName": "controlsheetgroupheader.cs.scss",
"PackageType": "game",
"CodeKind": "Game",
"AssetVersionId": 335449,
"Code": "ControlSheetGroupHeader\r\n{\r\n\tfont-size: 1.33rem;\r\n\tcolor: red;\r\n\tgap: 2px;\r\n\talign-items: center;\r\n\r\n\t&.hidden\r\n\t{\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t> .title\r\n\t{\r\n\t\tfont-weight: 600;\r\n\t}\r\n\r\n\t&.has-toggle\r\n\t{\r\n\t\tcursor: pointer;\r\n\t\topacity: 0.8;\r\n\r\n\t\t&:before\r\n\t\t{\r\n\t\t\tcontent: ' ';\r\n\t\t\twidth: 22px;\r\n\t\t\theight: 22px;\r\n\t\t\tbackground-color: #000a;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\ttext-align: center;\r\n\t\t\tborder-radius: 5px;\r\n\t\t\tborder: 1px solid #555;\r\n\t\t}\r\n\r\n\t\t&:hover\r\n\t\t{\r\n\t\t\topacity: 1;\r\n\r\n\t\t\t&:before\r\n\t\t\t{\r\n\t\t\t\tborder-color: #888;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t&.checked\r\n\t\t{\r\n\t\t\t> .title\r\n\t\t\t{\r\n\t\t\t\tcolor: white;\r\n\t\t\t}\r\n\r\n\t\t\t&:before\r\n\t\t\t{\r\n\t\t\t\tcontent: '\u2713';\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t\tcolor: #08f;\r\n\t\t\t\tborder-color: #08f;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n"
}
]
}