-
Notifications
You must be signed in to change notification settings - Fork 4
multitool.ts
-
addInfo() ⇒
undefined
Constructs additional information sentence.
- appearance()
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.
-
autoMTLoc() ⇒
void
Automatically switches location when a specific type is selected.
-
autoMTType() ⇒
void
Automatically switches type when a specific location is selected.
- 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', 'Sentinel' or 'Atlantid'
-
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 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.
Constructs additional information sentence.
Calculate the appearance of a multi-tool based on pageData and assigns it to a given input element.
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 location when a specific type is selected.
Automatically switches type when a specific location is selected.
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', 'Sentinel' or 'Atlantid'
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 album based on the pageData properties.
Kind: global function
Returns: string
-
- Link for the multi-tool 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.