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