22
22
available = {
23
23
{
24
24
DisplayName = " Default" ,
25
- font = " Coolvetica Rg " ,
25
+ font = " Coolvetica" ,
26
26
size = 128
27
27
},
28
28
{
29
29
DisplayName = " Default Min" ,
30
- font = " Coolvetica Rg " ,
30
+ font = " Coolvetica" ,
31
31
size = 64
32
32
},
33
33
{
34
34
DisplayName = " Default Small" ,
35
- font = " Coolvetica Rg " ,
35
+ font = " Coolvetica" ,
36
36
size = 32
37
37
}
38
38
},
@@ -235,21 +235,21 @@ hook.Add( "PopulateToolMenu", "YourHUDSettingsHook", function()
235
235
combo :SetSortItems (false )
236
236
combo :SetValue (" [SELECT]" )
237
237
238
- combo :AddChoice (" HP " )
239
- combo :AddChoice (" HP Low" )
238
+ combo :AddChoice (" Health " )
239
+ combo :AddChoice (" Low Health " )
240
240
combo :AddSpacer ()
241
241
242
242
combo :AddChoice (" Damage Indicator" )
243
- combo :AddChoice (" D. Indicator Transition " )
243
+ combo :AddChoice (" Damage Indicator Fade " )
244
244
combo :AddChoice (" Heal Indicator" )
245
- combo :AddChoice (" H. Indicator Transition " )
245
+ combo :AddChoice (" Heal Indicator Fade " )
246
246
combo :AddSpacer ()
247
247
248
248
combo :AddChoice (" Ammo" )
249
- combo :AddChoice (" Ammo Low" )
249
+ combo :AddChoice (" Low Ammo " )
250
250
combo :AddSpacer ()
251
251
252
- combo :AddChoice (" Ammo Reserve " )
252
+ combo :AddChoice (" Clip " )
253
253
combo :AddChoice (" Ammo Alternative" )
254
254
combo :AddChoice (" Armor" )
255
255
@@ -283,10 +283,10 @@ hook.Add( "PopulateToolMenu", "YourHUDSettingsHook", function()
283
283
panel :AddItem (FontList )
284
284
local applycombo = vgui .Create (" DComboBox" ,btnpanel )
285
285
applycombo :Dock (FILL )
286
- applycombo :AddChoice (" Text Main " , " FontHUD" , true )
287
- applycombo :AddChoice (" Text Small " , " FontHUDsmall" )
288
- applycombo :AddChoice (" Text PlayerName " , " FontHUDtarget" )
289
- applycombo :AddChoice (" Text PlayerHP " , " FontHUDtargetSmall" )
286
+ applycombo :AddChoice (" Health and Ammo " , " FontHUD" , true )
287
+ applycombo :AddChoice (" Armor, Clip, Alt, Damage " , " FontHUDsmall" )
288
+ applycombo :AddChoice (" Player Name " , " FontHUDtarget" )
289
+ applycombo :AddChoice (" Player Health " , " FontHUDtargetSmall" )
290
290
panel :AddItem (applycombo )
291
291
local btnpanel = vgui .Create (" DPanel" )
292
292
local apply = vgui .Create (" DButton" ,btnpanel )
@@ -304,7 +304,7 @@ hook.Add( "PopulateToolMenu", "YourHUDSettingsHook", function()
304
304
else
305
305
size = 64
306
306
end
307
- surface .CreateFont (data , {font = " Coolvetica Rg " ,size = size })
307
+ surface .CreateFont (data , {font = " Coolvetica" ,size = size })
308
308
else
309
309
if (YourHUDdebug ) then
310
310
PrintTable (fonts .available )
@@ -321,7 +321,7 @@ hook.Add( "PopulateToolMenu", "YourHUDSettingsHook", function()
321
321
function remove .DoClick ()
322
322
local id , data = applycombo :GetSelected ()
323
323
local k , v = FontList :GetSelectedLine ()
324
- if k == nil then fonts .available = {{DisplayName = " Default" ,font = " Coolvetica Rg " ,size = 128 },{DisplayName = " Default Min" ,font = " Coolvetica Rg " ,size = 64 }} return end
324
+ if k == nil then fonts .available = {{DisplayName = " Default" ,font = " Coolvetica" ,size = 128 },{DisplayName = " Default Min" ,font = " Coolvetica" ,size = 64 }} return end
325
325
fonts .available [k ] = nil
326
326
if fonts .selected [data ] > # fonts .available then
327
327
fonts .selected [data ] = # fonts .available
@@ -364,10 +364,16 @@ hook.Add( "PopulateToolMenu", "YourHUDSettingsHook", function()
364
364
local strike = FontCreator :CheckBox (" Strikeout" )
365
365
strike :SetTooltip (" Add a strike through" )
366
366
strike :SetValue (false )
367
- local Save = FontCreator :Button (" Save " )
367
+ local Save = FontCreator :Button (" Add " )
368
368
function Save .DoClick ()
369
+ local name = DisplayName :GetValue ()
370
+ for k , v in pairs (fonts .available ) do
371
+ if v .DisplayName == name then
372
+ fonts .available [k ] = nil
373
+ end
374
+ end
369
375
table.insert (fonts .available , {
370
- DisplayName = DisplayName : GetValue () ,
376
+ DisplayName = name ,
371
377
font = FontName :GetValue (),
372
378
size = size :GetValue (),
373
379
weight = weight :GetValue (),
0 commit comments