Difference between revisions of "MenuMate Tutorial"
Jump to navigation
Jump to search
→XML
imported>Speedo (created) |
imported>Speedo (→XML) |
||
Line 44: | Line 44: | ||
<menu> | <menu> | ||
<start | <start name="main"/> | ||
<dialog | <dialog name="deposit"/> | ||
<dialog> | <dialog name="withdraw"/> | ||
<dialog name="buttondemo"/> | |||
</menu> | </menu> | ||
<main> | <main> | ||
<text format="Greetings %n!%rYour balance is %.0f gold, what do you wish to do?"> | <text format="Greetings %n!%rYour balance is %.0f gold, what do you wish to do?"> | ||
<param | <param name="playerRef"/> | ||
<param | <param name="accountBalance"/> | ||
</text> | </text> | ||
Line 68: | Line 69: | ||
</main> | </main> | ||
<!-- This dialog inverts its counterbuttons via a togglebutton + toggle variable --> | |||
<deposit> | <deposit> | ||
<text format="Deposit Amount: %.0f%rYou have %.0f gold"> | <text format="Deposit Amount: %.0f%rYou have %.0f gold"> | ||
<param | <param name="temp"/> | ||
<param | <param name="playerGold"/> | ||
</text> | </text> | ||
Line 97: | Line 99: | ||
<text format="Finish"/> | <text format="Finish"/> | ||
<script> | <script> | ||
set BankDemo.accountBalance to BankDemo.accountBalance + BankDemo.temp & | set BankDemo.accountBalance to BankDemo.accountBalance + BankDemo.temp | ||
player.RemoveItem 0000000F BankDemo.temp & | player.RemoveItem 0000000F BankDemo.temp | ||
MessageBox "Your new balance is %.0f gold" BankDemo.accountBalance | MessageBox "Your new balance is %.0f gold" BankDemo.accountBalance | ||
</script> | </script> | ||
Line 108: | Line 110: | ||
</deposit> | </deposit> | ||
<!-- This dialog makes use of the toggle key(s) to invert its counters --> | |||
<withdraw> | <withdraw> | ||
<text format="Withdraw Amount: %.0f%rYour balance is %.0f gold"> | <text format="Withdraw Amount: %.0f%rYour balance is %.0f gold%r%rHold one of these keys to decrease the amount: [INVERTKEYS]"> | ||
<param | <param name="temp"/> | ||
<param | <param name="accountBalance"/> | ||
</text> | </text> | ||
<counterbutton targetvar="temp" amount="1" maxvar="accountBalance" minvar="minVar" usekeyinvert="1"> | |||
<counterbutton targetvar="temp" amount="1 | |||
<text format="[STATE]"/> | <text format="[STATE]"/> | ||
</counterbutton> | </counterbutton> | ||
<counterbutton targetvar="temp" amount="10 | <counterbutton targetvar="temp" amount="10" maxvar="accountBalance" minvar="minVar" usekeyinvert="1"> | ||
<text format="[STATE]"/> | <text format="[STATE]"/> | ||
</counterbutton> | </counterbutton> | ||
<counterbutton targetvar="temp" amount="100 | <counterbutton targetvar="temp" amount="100" maxvar="accountBalance" minvar="minVar" usekeyinvert="1"> | ||
<text format="[STATE]"/> | <text format="[STATE]"/> | ||
</counterbutton> | </counterbutton> | ||
<counterbutton targetvar="temp" amount="1000 | <counterbutton targetvar="temp" amount="1000" maxvar="accountBalance" minvar="minVar" usekeyinvert="1"> | ||
<text format="[STATE]"/> | <text format="[STATE]"/> | ||
</counterbutton> | </counterbutton> | ||
Line 137: | Line 136: | ||
<text format="Finish"/> | <text format="Finish"/> | ||
<script> | <script> | ||
set BankDemo.accountBalance to BankDemo.accountBalance - BankDemo.temp & | set BankDemo.accountBalance to BankDemo.accountBalance - BankDemo.temp | ||
player.AddItem 0000000F BankDemo.temp & | player.AddItem 0000000F BankDemo.temp | ||
MessageBox "Your new balance is %.0f gold" BankDemo.accountBalance | MessageBox "Your new balance is %.0f gold" BankDemo.accountBalance | ||
</script> | </script> |