|
306 | 306 | local backup_files, directories = file.Find( "pac3/__backup/*.txt", "DATA", "datedesc") |
307 | 307 | local latest_outfit = cookie.GetString( "pac_last_loaded_outfit", "" ) |
308 | 308 | if not backup_files then |
309 | | - local pnl = Derma_Query("Do you want to load your autoload outfit?", "PAC3 autoload (pac_prompt_for_autoload)", |
| 309 | + local pnl = Derma_Query("Do you want to load your autoload outfit?\nclick outside the window to cancel", "PAC3 autoload (pac_prompt_for_autoload)", |
310 | 310 | "load pac3/autoload.txt : " .. string.NiceSize(file.Size("pac3/autoload.txt", "DATA")), function() |
311 | 311 | pac.Message("Wearing autoload...") |
312 | 312 | pace.LoadParts("autoload") |
|
322 | 322 | end |
323 | 323 | end, |
324 | 324 |
|
325 | | - "cancel", function() pac.Message("Not loading autoload or backups...") end |
| 325 | + "don't show this again", function() GetConVar("pac_prompt_for_autoload"):SetBool(false) end |
326 | 326 | ) |
327 | 327 | pnl.Think = function() if not pnl:HasFocus() or (input.IsMouseDown(MOUSE_LEFT) and not (pnl:IsHovered() or pnl:IsChildHovered())) then pnl:Remove() end end |
328 | 328 | else |
329 | 329 | if backup_files[1] then |
330 | 330 | local latest_autosave = "pac3/__backup/" .. backup_files[1] |
331 | | - local pnl = Derma_Query("Do you want to load an outfit?", "PAC3 autoload (pac_prompt_for_autoload)", |
| 331 | + local pnl = Derma_Query("Do you want to load an outfit?\nclick outside the window to cancel", "PAC3 autoload (pac_prompt_for_autoload)", |
332 | 332 | "load pac3/autoload.txt : " .. string.NiceSize(file.Size("pac3/autoload.txt", "DATA")), function() |
333 | 333 | pac.Message("Wearing autoload...") |
334 | 334 | pace.LoadParts("autoload") |
|
349 | 349 | end |
350 | 350 | end, |
351 | 351 |
|
352 | | - "cancel", function() pac.Message("Not loading autoload or backups...") end |
| 352 | + "don't show this again", function() GetConVar("pac_prompt_for_autoload"):SetBool(false) end |
353 | 353 | ) |
354 | 354 | pnl.Think = function() if not pnl:HasFocus() or (input.IsMouseDown(MOUSE_LEFT) and not (pnl:IsHovered() or pnl:IsChildHovered())) then pnl:Remove() end end |
355 | 355 | else |
356 | | - local pnl = Derma_Query("Do you want to load your autoload outfit?", "PAC3 autoload (pac_prompt_for_autoload)", |
| 356 | + local pnl = Derma_Query("Do you want to load your autoload outfit?\nclick outside the window to cancel", "PAC3 autoload (pac_prompt_for_autoload)", |
357 | 357 | "load pac3/autoload.txt : " .. string.NiceSize(file.Size("pac3/autoload.txt", "DATA")), function() |
358 | 358 | pac.Message("Wearing autoload...") |
359 | 359 | pace.LoadParts("autoload") |
360 | 360 | pace.WearParts() |
361 | 361 | end, |
362 | 362 |
|
363 | | - "cancel", function() pac.Message("Not loading autoload or backups...") end |
| 363 | + "don't show this again", function() GetConVar("pac_prompt_for_autoload"):SetBool(false) end |
364 | 364 | ) |
365 | 365 | pnl.Think = function() if not pnl:HasFocus() or (input.IsMouseDown(MOUSE_LEFT) and not (pnl:IsHovered() or pnl:IsChildHovered())) then pnl:Remove() end end |
366 | 366 | end |
|
0 commit comments