Toggle menu
2
16
17
151
The My Singing Monsters Modding Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Menu Editing: Difference between revisions

From The My Singing Monsters Modding Wiki
Content added Content deleted
(simple tabbers for island function)
No edit summary
Line 33: Line 33:
<tabber>
<tabber>
|-|Plant Island=
|-|Plant Island=
<pre>
game.is'''Plant'''Island()
game.is<b>Plant</b>Island()
</pre>
|-|Cold Island=
|-|Cold Island=
<pre>
game.is'''Cold'''Island()
game.is<b>Cold</b>Island()
</pre>
|-|Air Island=
|-|Air Island=
<pre>
game.is'''Air'''Island()
game.is<b>Air</b>Island()
</pre>
|-|Water Island=
|-|Water Island=
<pre>
game.is'''Water'''Island()
game.is<b>Water</b>Island()
</pre>
|-|Earth Island=
|-|Earth Island=
<pre>
game.is'''Earth'''Island()
game.is<b>Earth</b>Island()
</pre>
</tabber>
</tabber>
<hr>
<hr>

Revision as of 19:36, 16 November 2023

This article is a stub. You can help the My Singing Monsters Modding Wiki by expanding it.
File:Menu Editing Page Thumb.png
An example menu edit

Menu Editing is a form of modding which consists of lua and menu xml file editing. The following article will help you understand more about this topic.

Functions

Functions are short strings of code that hold data and are used internally to cause something inside of the game to happen. This article lists all of those functions.

This section lists all functions that you can find and use inside of the menu XML files.

Notable "game." Functions

game.popPopUp()

This function closes the current menu on the screen.


game.pushPopUp()

This function opens almost any xml file found in the 'menus' folder. Usage: game.pushPopUp("filename").


game.displayNotification() 

This function displays a "Listen Up!" notification, with text that you can customize. Usage: game.displayNotification("test message"). To make line breaks, you have to enter a large amount of empty characters/spaces, and then put text after it.


game.showWebView()

This function opens a specified link. Usage: game.showWebView("yourlink")


game.loadWorldContext()

This function loads your island after visting another persons island or going to the market.


game.setMonsterVolume()

This function sets the selected Monster's volume. Usage: game.setMonsterVolume("number")


game.isXIsland()

This function calls something to happen/appear if you are on a certain Island. Usage: "if game.isCelestialIsland() then" followed by what you want to happen. You can replace the "X" with whatever Island you want it to be. Wublin Island and the Colossingum are labelled as "Underling" and "Battle", instead of their real names when using this function.

 game.is<b>Plant</b>Island()

game.is<b>Cold</b>Island()

game.is<b>Air</b>Island()

game.is<b>Water</b>Island()

game.is<b>Earth</b>Island()


game.logout()

This function logs the user out of their account.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.