extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Switch case blocks

Open gomigg07 opened this issue 2 years ago • 15 comments

Self explanatory. Backport the switch and case blocks seen in PenguinMod over to Turbowarp:

image

gomigg07 avatar Oct 10 '23 18:10 gomigg07

@gomiigg, Hello! I might as well say it, but I've been working on a Controls+ extension, it's basically done for a draft PR, so that I can build off with suggestions. But it has working switch case blocks!!

CubesterYT avatar Oct 10 '23 19:10 CubesterYT

It's my biggest thing yet, I worked very hard on it, it was especially difficult making a switch case system.

CubesterYT avatar Oct 10 '23 19:10 CubesterYT

@gomiigg, Hello! I might as well say it, but I've been working on a Controls+ extension, it's basically done for a draft PR, so that I can build off with suggestions. But it has working switch case blocks!!

Is it compatible with compiler? how about break, continue? I have made all these before however they only support interpreter

Skyhigh173 avatar Oct 11 '23 00:10 Skyhigh173

@Skyhigh173, Yes! It's compatible with the compiler! I haven't made break and continue yet, as I'm focusing on making other blocks, because I spent too long making switch case default.

CubesterYT avatar Oct 11 '23 13:10 CubesterYT

me and lily and i think skyhigh have also made switch case, lilys does not include default but skyhighs does not support compiler but has break and continue and run next, mine is just the default blocks for now i do plan on adding run next and run case along with "continue" and break


From: Cubester @.> Sent: Wednesday, October 11, 2023 9:22 AM To: TurboWarp/extensions @.> Cc: Subscribed @.***> Subject: Re: [TurboWarp/extensions] Switch case blocks (Issue #1092)

@gomiigghttps://github.com/gomiigg, Yes! It's compatible with the compiler! I haven't made break and continue yet, as I'm focusing on making other blocks, because I spent too long making switch case default.

— Reply to this email directly, view it on GitHubhttps://github.com/TurboWarp/extensions/issues/1092#issuecomment-1757692095, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAGGRIHISWJNMTRUSGPLQU3X62MSJANCNFSM6AAAAAA52ZCSMA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

yuri-kiss avatar Oct 12 '23 13:10 yuri-kiss

@SurvExe1Pc, I also got default too, I also have a semi working next case, but I gotta fix some things.

CubesterYT avatar Oct 12 '23 13:10 CubesterYT

ah cool!


From: Cubester @.> Sent: Thursday, October 12, 2023 9:19 AM To: TurboWarp/extensions @.> Cc: Surv @.>; Mention @.> Subject: Re: [TurboWarp/extensions] Switch case blocks (Issue #1092)

@SurvExe1Pchttps://github.com/SurvExe1Pc, I also got default too, I also have a semi working next case, but I gotta fix some things.

— Reply to this email directly, view it on GitHubhttps://github.com/TurboWarp/extensions/issues/1092#issuecomment-1759600812, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAGGRIDWJ66BZO5DRHGSXW3X67U7DANCNFSM6AAAAAA52ZCSMA. You are receiving this because you were mentioned.Message ID: @.***>

yuri-kiss avatar Oct 12 '23 13:10 yuri-kiss

do you have break and continue yet?


From: Cubester @.> Sent: Thursday, October 12, 2023 9:19 AM To: TurboWarp/extensions @.> Cc: Surv @.>; Mention @.> Subject: Re: [TurboWarp/extensions] Switch case blocks (Issue #1092)

@SurvExe1Pchttps://github.com/SurvExe1Pc, I also got default too, I also have a semi working next case, but I gotta fix some things.

— Reply to this email directly, view it on GitHubhttps://github.com/TurboWarp/extensions/issues/1092#issuecomment-1759600812, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAGGRIDWJ66BZO5DRHGSXW3X67U7DANCNFSM6AAAAAA52ZCSMA. You are receiving this because you were mentioned.Message ID: @.***>

yuri-kiss avatar Oct 12 '23 13:10 yuri-kiss

do you have break and continue yet?


From: Cubester @.> Sent: Thursday, October 12, 2023 9:19 AM To: TurboWarp/extensions @.> Cc: Surv @.>; Mention @.> Subject: Re: [TurboWarp/extensions] Switch case blocks (Issue #1092)

@SurvExe1Pchttps://github.com/SurvExe1Pc, I also got default too, I also have a semi working next case, but I gotta fix some things.

— Reply to this email directly, view it on GitHubhttps://github.com/TurboWarp/extensions/issues/1092#issuecomment-1759600812, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAGGRIDWJ66BZO5DRHGSXW3X67U7DANCNFSM6AAAAAA52ZCSMA. You are receiving this because you were mentioned.Message ID: @.***>

@SurvExe1Pc, not yet, I won't add them yet as I still need to add a ton more other blocks in Controls+. I spent too long on switch case default.

CubesterYT avatar Oct 12 '23 13:10 CubesterYT

good luck with break and continue xD

btw is there a preview?

Skyhigh173 avatar Oct 13 '23 02:10 Skyhigh173

i give up until i can get my debugger back 😭


From: Skyhigh173 @.> Sent: Thursday, October 12, 2023 10:03 PM To: TurboWarp/extensions @.> Cc: Surv @.>; Mention @.> Subject: Re: [TurboWarp/extensions] Switch case blocks (Issue #1092)

good luck with break and continue xD

— Reply to this email directly, view it on GitHubhttps://github.com/TurboWarp/extensions/issues/1092#issuecomment-1760654274, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAGGRIA7GSU2RQ4LWBGKBKDX7CON3ANCNFSM6AAAAAA52ZCSMA. You are receiving this because you were mentioned.Message ID: @.***>

yuri-kiss avatar Oct 13 '23 12:10 yuri-kiss

good luck with break and continue xD

btw is there a preview?

@Skyhigh173, I will be putting up a draft PR for Controls+ soon.

CubesterYT avatar Oct 13 '23 12:10 CubesterYT

OMG, YES, I GOT RUN NEXT CASE WORKING!!!

CubesterYT avatar Oct 14 '23 01:10 CubesterYT

i am going to fix mine xd


From: Cubester @.> Sent: Friday, October 13, 2023 9:30 PM To: TurboWarp/extensions @.> Cc: Surv @.>; Mention @.> Subject: Re: [TurboWarp/extensions] Switch case blocks (Issue #1092)

OMG, YES, I GOT RUN NEXT CASE WORKING!!!

— Reply to this email directly, view it on GitHubhttps://github.com/TurboWarp/extensions/issues/1092#issuecomment-1762464250, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAGGRIERDKJ6CZUHJ7DU2L3X7HTLLANCNFSM6AAAAAA52ZCSMA. You are receiving this because you were mentioned.Message ID: @.***>

yuri-kiss avatar Oct 14 '23 01:10 yuri-kiss

@CubesterYT What method do you used to get switch's value in case block?

Skyhigh173 avatar Oct 14 '23 03:10 Skyhigh173