-
Notifications
You must be signed in to change notification settings - Fork 4
multitool.ts
-
locGalaxy() ⇒
void
Adds region to location sentence
-
addInfo() ⇒
undefined
Constructs additional information sentence.
- appearance(pageData, input)
Calculate the appearance of a multi-tool based on pageData and assigns it to a given input element.
-
acquirement() ⇒
string
Constructs the acquirement sentence.
-
acquirementGallery() ⇒
undefined
Handles acquisition gallery images, retrieves type and highlights location, and generates code array.
-
autoMTType() ⇒
void
Automatically switches to Sentinel Pillar when Royal is selected.
-
MTType() ⇒
void
Shows or hides the size dropdown based on the type of page being displayed and the selected size.
- hideLocName()
Hides location name input fields if the location is in Space. Otherwise, shows the location name input fields.
- hideSrLocName()
Hides the input field for the srLoc name if the srLoc includes the word "Space". Otherwise, shows the input field.
- hideCost()
Hide cost input element if Sentinel Pillar is selected. If cost element exists, its
value
property will be emptied and it will fire theoninput
event.-
hideAddons() ⇒
void
Hides the crystal addons input box if the page type is 'Royal' or 'Sentinel'
-
autoSentinel(input) ⇒
undefined
Automatically sets the type input of a global element to 'Sentinel' and hides certain input elements depending on the value of 'input'.
-
albumDescExternal() ⇒
string
Returns a string that describes the acquisition status of an album in external mode.
-
albumLinkGen() ⇒
string
Generates a link for the multi-tool catalog album based on the pageData properties.
-
generateGalleryArray() ⇒
undefined
Generates an array for use in a gallery. The function uses pageData's location property to determine whether to include the 'Minor Settlement', 'Sentinel Pillar', and 'Harmonic Camp' locations, or remove them from the array.
Adds region to location sentence
Constructs additional information sentence.
Calculate the appearance of a multi-tool based on pageData and assigns it to a given input element.
Kind: global function
Param | Type | Description |
---|---|---|
pageData | Object |
An object containing multi-tool data such as name, type, and colors. |
input | HTMLElement |
The input element to assign the calculated appearance to. |
Constructs the acquirement sentence.
Kind: global function
Returns: string
-
The constructed sentence.
Throws:
-
Will throw an error if page data is missing.
Handles acquisition gallery images, retrieves type and highlights location, and generates code array.
Fills picture object with image and description.
Kind: inner method of acquirementGallery
Param | Type | Description |
---|---|---|
obj | Object |
An object representing pictures. |
img | string |
An image source. |
desc | string |
A picture description. |
Automatically switches to Sentinel Pillar when Royal is selected.
Shows or hides the size dropdown based on the type of page being displayed and the selected size.
Hides location name input fields if the location is in Space. Otherwise, shows the location name input fields.
Hides the input field for the srLoc name if the srLoc includes the word "Space". Otherwise, shows the input field.
Hide cost input element if Sentinel Pillar is selected.
If cost element exists, its value
property will be emptied and it will fire the oninput
event.
Hides the crystal addons input box if the page type is 'Royal' or 'Sentinel'
Automatically sets the type input of a global element to 'Sentinel' and hides certain input elements depending on the value of 'input'.
Kind: global function
Param | Type | Description |
---|---|---|
input | object |
The input element to be checked. |
Returns a string that describes the acquisition status of an album in external mode.
Kind: global function
Returns: string
-
- A string that describes the acquisition status of an album.
Name | Type | Description |
---|---|---|
pageData | Object |
An object that holds user input values. |
pageData.axes | string |
The axes of the MT location. |
pageData.acquirement | string |
The acquisition instructions of the MT. |
Generates a link for the multi-tool catalog album based on the pageData properties.
Kind: global function
Returns: string
-
- Link for the multi-tool catalog album.
Generates an array for use in a gallery. The function uses pageData's location property to determine whether to include the 'Minor Settlement', 'Sentinel Pillar', and 'Harmonic Camp' locations, or remove them from the array.
Kind: global function
Returns: undefined
-
Returns an array for use in a gallery.
Throws:
-
TypeError
If
pageData
object orlocation
property is not found, a TypeError is thrown.
Example
generateGalleryArray();
Thank you for using the Eisvana Wiki Page Creator! I hope it helps you create amazing pages for your No Man's Sky discoveries. If you have any feedback or suggestions for how the project can be improved, please let me know.