Skip to content

Commit

Permalink
Add Wood UI Theme options to related commands (#138)
Browse files Browse the repository at this point in the history
* Add Wood UI Theme options to related commands

* START button position varies in Wood UI by skin

---------

Co-authored-by: RocketRobz <[email protected]>
  • Loading branch information
Deletecat and RocketRobz authored May 22, 2024
1 parent a95196f commit 26e9254
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions cogs/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ async def r4_button_text(self, itx, button):
self.edit_embed("R4 Theme", self.themeSteps["r4"])
await itx.response.edit_message(embed=self.embed)

@discord.ui.button(label="Wood Theme")
async def wood_button_text(self, itx, button):
self.edit_embed("Wood Theme", self.themeSteps["wood"])
await itx.response.edit_message(embed=self.embed)

async def start(self):
self.message = await self.ctx.send(embed=self.embed, view=self)

Expand Down Expand Up @@ -296,6 +301,7 @@ async def twlmanual(self, ctx):
embed.add_field(name="DS Classic Menu", value=cleandoc("""Tap the green book icon in the bottom right of the touchscreen"""), inline=False)
embed.add_field(name="Nintendo 3DS theme", value=cleandoc("""Tap the green book icon in the top middle of the touchscreen"""), inline=False)
embed.add_field(name="R4 Original theme", value=cleandoc("""In the main menu, tap the green book icon\n- If you are in the file explorer, press the START button to return to the main menu"""), inline=False)
embed.add_field(name="Wood UI theme", value=cleandoc("""Press the START button or tap the START icon in the touchscreen\n- The screen should turn white and then you will be met with a different menu, follow the instructions for "**DS Classic Menu**" above"""), inline=False)
embed.add_field(name="Online", value=cleandoc("""The TWiLight Menu++ manual is also available online at https://manual.ds-homebrew.com."""), inline=False)
await ctx.send(embed=embed)

Expand All @@ -308,7 +314,8 @@ async def twlsettings(self, ctx):
"dsi": """Press the SELECT button\n- If you are met with a list of options, select **TWLMenu++ Settings**\n- If the screen turns white and then you are met with a different menu, follow the instructions for "**DS Classic Menu**" below""",
"ds": """Tap the small icon in the bottom center of the touchscreen""",
"3ds": """Tap the icon in the top left corner of the touchscreen""",
"r4": """In the main menu, press the SELECT button\n- If you are in the file explorer, press the START button to return to the main menu"""
"r4": """In the main menu, press the SELECT button\n- If you are in the file explorer, press the START button to return to the main menu""",
"wood": """Press the START button or tap the START icon in the touchscreen\n- The screen should turn white and then you will be met with a different menu, follow the instructions for "**DS Classic Menu**" below"""
}
view = TWLMThemeMenu(ctx, title, initDescription, themeSteps)
await view.start()
Expand All @@ -322,7 +329,8 @@ async def slot1launch(self, ctx):
"dsi": """Press the SELECT button\n- If you are met with a list of options, select **Launch Slot-1 card**\n- If the screen turns white and then you are met with a different menu, follow the instructions for "**DS Classic Menu**" below""",
"ds": """Tap the Slot-1 card on the center of the touchscreen""",
"3ds": """Tap the Game Card icon at the top of the touchscreen""",
"r4": """In the main menu, tap the center icon\n- If you are in the file explorer, press the START button to return to the main menu"""
"r4": """In the main menu, tap the center icon\n- If you are in the file explorer, press the START button to return to the main menu""",
"wood": """Press the START button or tap the START icon in the touchscreen\n- The screen should turn white and then you will be met with a different menu, follow the instructions for "**DS Classic Menu**" below"""
}
view = TWLMThemeMenu(ctx, title, initDescription, themeSteps)
await view.start()
Expand All @@ -336,7 +344,8 @@ async def homemenulaunch(self, ctx):
"dsi": """Press the SELECT button\n- If you are met with a list of options, select **DSi Menu** / **3DS HOME Menu**\n- If the screen turns white and then you are met with a different menu, follow the instructions for \"**DS Classic Menu**\" below""",
"ds": """Press X""",
"3ds": """Tap the HOME icon at the top-right corner of the touchscreen""",
"r4": """In the main menu, press B\n- If you are in the file explorer, press the START button to return to the main menu"""
"r4": """In the main menu, press B\n- If you are in the file explorer, press the START button to return to the main menu""",
"wood": """Press the START button or tap the START icon in the touchscreen\n- The screen should turn white and then you will be met with a different menu, follow the instructions for "**DS Classic Menu**" below"""
}
view = TWLMThemeMenu(ctx, title, initDescription, themeSteps)
await view.start()
Expand Down

0 comments on commit 26e9254

Please sign in to comment.