File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ RootPanel
99IconPanel, i
1010{
1111 font-family : Material Icons;
12+ background-position : center ;
13+ background-size : contain ;
1214}
1315
1416.tooltip
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 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" ,
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,
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,
You can’t perform that action at this time.
0 commit comments