13
13
using osu . Framework . Graphics . Colour ;
14
14
using osu . Framework . Graphics . Containers ;
15
15
using osu . Framework . Graphics . Pooling ;
16
- using osu . Game . Configuration ;
17
16
using osu . Game . Graphics ;
18
17
using osu . Game . Graphics . Sprites ;
19
- using osu . Game . Online . Chat ;
20
18
using osu . Game . Localisation . HUD ;
21
- using osu . Game . Localisation . SkinComponents ;
19
+ using osu . Game . Online . Chat ;
22
20
using osu . Game . Online . Multiplayer ;
23
21
using osu . Game . Online . Spectator ;
24
22
using osu . Game . Skinning ;
@@ -31,10 +29,7 @@ public partial class SpectatorList : CompositeDrawable, ISerialisableDrawable
31
29
{
32
30
private const int max_spectators_displayed = 10 ;
33
31
34
- [ SettingSource ( typeof ( SkinnableComponentStrings ) , nameof ( SkinnableComponentStrings . Font ) , nameof ( SkinnableComponentStrings . FontDescription ) ) ]
35
- public Bindable < Typeface > Font { get ; } = new Bindable < Typeface > ( Typeface . Torus ) ;
36
-
37
- [ SettingSource ( typeof ( SkinnableComponentStrings ) , nameof ( SkinnableComponentStrings . TextColour ) , nameof ( SkinnableComponentStrings . TextColourDescription ) ) ]
32
+ public Bindable < Typeface > HeaderFont { get ; } = new Bindable < Typeface > ( Typeface . Torus ) ;
38
33
public BindableColour4 HeaderColour { get ; } = new BindableColour4 ( Colour4 . White ) ;
39
34
40
35
private BindableList < SpectatorUser > watchingUsers { get ; } = new BindableList < SpectatorUser > ( ) ;
@@ -97,7 +92,7 @@ protected override void LoadComplete()
97
92
watchingUsers . BindCollectionChanged ( onSpectatorsChanged , true ) ;
98
93
userPlayingState . BindValueChanged ( _ => updateVisibility ( ) ) ;
99
94
100
- Font . BindValueChanged ( _ => updateAppearance ( ) ) ;
95
+ HeaderFont . BindValueChanged ( _ => updateAppearance ( ) ) ;
101
96
HeaderColour . BindValueChanged ( _ => updateAppearance ( ) , true ) ;
102
97
FinishTransforms ( true ) ;
103
98
@@ -198,7 +193,7 @@ private void updateVisibility()
198
193
199
194
private void updateAppearance ( )
200
195
{
201
- header . Font = OsuFont . GetFont ( Font . Value , 12 , FontWeight . Bold ) ;
196
+ header . Font = OsuFont . GetFont ( HeaderFont . Value , 12 , FontWeight . Bold ) ;
202
197
header . Colour = HeaderColour . Value ;
203
198
204
199
Width = header . DrawWidth ;
0 commit comments