Skip to content

Commit 976f371

Browse files
committed
Cleanup menu styles
1 parent 9279252 commit 976f371

14 files changed

Lines changed: 958 additions & 186 deletions

File tree

game/addons/base/code/Styles/rootpanel.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ RootPanel
99
IconPanel, i
1010
{
1111
font-family: Material Icons;
12+
background-position: center;
13+
background-size: contain;
1214
}
1315

1416
.tooltip

game/addons/base/code/UI/IconPanel.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,24 @@ public IconPanel()
1111
AddClass( "iconpanel" );
1212
}
1313

14+
public override string Text
15+
{
16+
get => base.Text;
17+
set
18+
{
19+
if ( value?.StartsWith( "https://" ) ?? false )
20+
{
21+
Log.Info( value );
22+
Style.SetBackgroundImage( value );
23+
base.Text = "";
24+
return;
25+
}
26+
27+
Style.BackgroundImage = null;
28+
base.Text = value;
29+
}
30+
}
31+
1432
public IconPanel( string icon, string classes = null ) : base()
1533
{
1634
Text = icon;

game/addons/menu/Assets/particles/snow_gust.prefab

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"__type": "Sandbox.ParticleEffect",
3737
"__guid": "bbfdd0cb-e43e-430d-9949-65c16488c61f",
3838
"__enabled": true,
39+
"Flags": 0,
3940
"__version": 3,
4041
"Alpha": {
4142
"Type": "Curve",
@@ -351,12 +352,13 @@
351352
"__type": "Sandbox.ParticleSpriteRenderer",
352353
"__guid": "bd5e338d-f574-4ef1-ade7-dc52f7128bc7",
353354
"__enabled": true,
355+
"Flags": 0,
354356
"__version": 2,
355357
"Additive": true,
356358
"Alignment": "LookAtCamera",
357-
"BlurAmount": 0.5,
358-
"BlurOpacity": 0.5,
359-
"BlurSpacing": 0.5,
359+
"BlurAmount": 0.89169675,
360+
"BlurOpacity": 0.5379061,
361+
"BlurSpacing": 0.42238268,
360362
"DepthFeather": 0,
361363
"FaceVelocity": true,
362364
"FogStrength": 1,
@@ -410,6 +412,7 @@
410412
"__type": "Sandbox.ParticleConeEmitter",
411413
"__guid": "9f0da8d8-0c3a-4019-ab27-88591d350e62",
412414
"__enabled": true,
415+
"Flags": 0,
413416
"Burst": 0,
414417
"CenterBias": 0,
415418
"CenterBiasVelocity": 0,

0 commit comments

Comments
 (0)