From 26e9254af9c4802dc93a188d3900c943585f0006 Mon Sep 17 00:00:00 2001 From: Deletecat <55948500+Deletecat@users.noreply.github.com> Date: Wed, 22 May 2024 21:48:31 +0100 Subject: [PATCH] Add Wood UI Theme options to related commands (#138) * Add Wood UI Theme options to related commands * START button position varies in Wood UI by skin --------- Co-authored-by: RocketRobz --- cogs/general.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/cogs/general.py b/cogs/general.py index e4dcd67..08c8013 100644 --- a/cogs/general.py +++ b/cogs/general.py @@ -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) @@ -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) @@ -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() @@ -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() @@ -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()