PassageDone.tw 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. :: PassageDone[nobr]
  2. <<include 'PassageDoneCommands'>>
  3. :: PassageDoneCommands
  4. <<run $connectedLocations.sort((a,b) => ((b.priority ?? 0) - (a.priority ?? 0)) || (a.label ?? '').localeCompare(b.label ?? ''))>>
  5. <<run console.log("connectedLocations",$connectedLocations)>>
  6. <<append "#connectedLocations">><<for _connectedLocation range $connectedLocations>><<if _connectedLocation.forPassage == passage()>><<ConnectedLocationDom _connectedLocation>><</if>><</for>><</append>>
  7. <<for _npcId, _npcAction range _presentNPCs ?? {}>>
  8. <<if _npcAction.trim()>>
  9. <<act $npc(_npcId).usedname undefined `{image:$npc(_npcId).image,capture:['_npcAction']}`>>_npcAction<</act>>
  10. <</if>>
  11. <</for>>
  12. <<actionsRefresh>>
  13. <<if $settings and $settings.lightmode === true>>
  14. <<done>>
  15. <<run setup.applyLightStyle()>>
  16. <</done>>
  17. <</if>>
  18. <<set _messagingExecuted = true>>
  19. <<for _label, _class range $msg_queue || {}>>
  20. <<msgPresent _label _class>>
  21. <</for>>
  22. <<script>>
  23. $(".autoReload").find("select").on("change", function (event) {
  24. Engine.show();
  25. });
  26. <</script>>