Modding:JSTableOfContents

From Corru Observer Wiki

corru.js

(Last updated: EP3 (Nov 18 2023))

Data definitions

Code definitions

  • (corru.js:196) "page loaded" corru startup handler. Establishes many basic features of the corru environment such as clicking and other event listeners.
  • (corru.js:561) "chatter" function for displaying small portions of text over an entity on the screen.
  • (corru.js:604) "readoutAdd" function for putting a message into the mindspike readout
  • (corru.js:657) "getReadoutMsg" function for getting the HTML to produce a specific readout message. Used by "readoutAdd"
  • (corru.js:707) "reloadSessionLog" function to retrieve the log from the user's sessionStorage
  • (corru.js:732) "createEntity" function that takes a JSON definition of an entity and adds it to the environment, as well as the user's detectedEntities list in the "flags" save structure
  • (corru.js:765) "entityShowActions" function that determines whether an entity should have an "act" tab or not
  • (corru.js:779) "scannerGetTargets" function that highlights selectable entities under the cursor
  • (corru.js:799) "scannerOpen" function that expands the user interface
  • (corru.js:846) "MUI" function that manages the state machine for if the UI can be expanded or not
  • (corru.js:890) "toggleEntMenu" function that expands the entity listing menu
  • (corru.js:965) "toggleSysMenu" function that toggles the system menu
  • (12 functions from 979->1186 skipped)
  • (corru.js:1189) "addResources" function that adds an array of javascript or css resources to the current page
  • (corru.js:1216) "change" function which sets a value in one of various locations depending on the key, and fires the corru_changed callback
  • (corru.js:1247) "check" function which checks a value in various ways, depending on the format of the inputKey value