From 9a0a6dc224aa73c5fb08c8a883b3f4b4a3597687 Mon Sep 17 00:00:00 2001 From: kmmiio99o Date: Wed, 1 Oct 2025 15:54:07 +0200 Subject: [PATCH] Add better choosing menu for gary API v2 --- plugins/Commands/settings.tsx | 51 ++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/plugins/Commands/settings.tsx b/plugins/Commands/settings.tsx index 8e31a38..d4c384a 100644 --- a/plugins/Commands/settings.tsx +++ b/plugins/Commands/settings.tsx @@ -91,31 +91,34 @@ export default function Settings() { }; const showGarySourceSelection = () => { - alerts.showInputAlert({ + alerts.showConfirmationAlert({ title: "Choose Gary Image Source", - content: "Select an image source:", - placeholder: "", - confirmText: "Cancel", - confirmColor: "grey", - onConfirm: () => {}, - extraOptions: [ - { - text: "Gary API", - onPress: () => handleGarySourceChange("gary"), - }, - { - text: "Cat API", - onPress: () => handleGarySourceChange("catapi"), - }, - { - text: "Minker API", - onPress: () => handleGarySourceChange("minker"), - }, - { - text: "Goober API", - onPress: () => handleGarySourceChange("goober"), - }, - ], + content: "Select an image source for the Gary command:", + confirmText: "Gary API", + cancelText: "Other Options", + confirmColor: "brand", + onConfirm: () => handleGarySourceChange("gary"), + onCancel: () => { + alerts.showConfirmationAlert({ + title: "Choose Image Source", + content: "Select from remaining options:", + confirmText: "Cat API", + cancelText: "More Options", + confirmColor: "brand", + onConfirm: () => handleGarySourceChange("catapi"), + onCancel: () => { + alerts.showConfirmationAlert({ + title: "Choose Image Source", + content: "Select from final options:", + confirmText: "Minker API", + cancelText: "Goober API", + confirmColor: "brand", + onConfirm: () => handleGarySourceChange("minker"), + onCancel: () => handleGarySourceChange("goober"), + }); + }, + }); + }, }); };