Record completion after the guided crew upgrade succeeds. Keep the guide dismissible and close it when its slot or menu target disappears. Compile the affected scripts with the stock queue flag bindings.
29 lines
700 B
JSON
29 lines
700 B
JSON
// Save the per-account completion flag from the existing successful upgrade callback.
|
|
{
|
|
"id": "tutorials/save-crew-training-completion",
|
|
"title": "Save completion after the guided crew upgrade",
|
|
"features": [
|
|
"A-Tutorials"
|
|
],
|
|
"variants": [
|
|
{
|
|
"written_for": "2.61.0.37",
|
|
"file": "scripts/crew/crewwndhandler.nut",
|
|
"edits": [
|
|
{
|
|
"find": "find-imports.nut",
|
|
"replace": "replace-imports.nut"
|
|
},
|
|
{
|
|
"find": "find-completion.nut",
|
|
"replace": "replace-completion.nut"
|
|
},
|
|
{
|
|
"find": "find-allow-close.nut",
|
|
"replace": "replace-allow-close.nut"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|