extensions icon indicating copy to clipboard operation
extensions copied to clipboard

New extension: Custom controls!

Open veggiecan0419 opened this issue 1 year ago • 13 comments

New extension: Custom Controls

Customize your project's control bar!

With 30 new blocks, you can now...

  • Create custom buttons, bordered ones, and labels with custom:
    • Icons,
    • Text,
    • Text colour,
    • Opacity,
    • And padding
  • Show, hide, and remove controls,
  • Highlight them in any colour,
  • Change their properties (all the above),
  • Get their properties (all the above),
  • Get a list of all the controls (on the left, right, and both sides),
  • Do stuff when they are clicked, double clicked, right clicked, and even hovered,
  • And get the last control clicked, (double clicked, right clicked, or hovered)!

We've also included the following 3 blocks for your convenience:

  • <can load (url)?>,
  • <is packaged?>,
  • and (colour scheme)

Here is an image of the blocks:

Custom controls blocks


Test it out! OR View the sample project.


Notes

Right now the extension is the colour of controls, should I make it be custom blocks color? Should I add set font to? I had decided against it, but what do you think?

veggiecan0419 avatar May 24 '24 10:05 veggiecan0419

doesn't seem to be working for me.

Drago-Cuven avatar Jun 14 '24 14:06 Drago-Cuven

I can't make buttons

Drago-Cuven avatar Jun 14 '24 14:06 Drago-Cuven

@Drago-Cuven Did you load it unsandboxed? It needs to run unsandboxed.

veggiecan0419 avatar Jun 14 '24 14:06 veggiecan0419

@Drago-Cuven Also, maybe you didn't do it correctly? See if this works?

veggiecan0419 avatar Jun 14 '24 14:06 veggiecan0419

@Drago-Cuven ccguide

veggiecan0419 avatar Jun 14 '24 15:06 veggiecan0419

@Drago-Cuven Did it work?

veggiecan0419 avatar Jun 16 '24 16:06 veggiecan0419

@CubesterYT Since you are now a TurboWarp collaborator, could you please review this PR?

veggiecan0419 avatar Jul 18 '24 16:07 veggiecan0419

Known issues:

  • ~~Once the extension is loaded, changing the language doesn't retranslate the it (the blocks array is a constant)~~ (https://github.com/TurboWarp/extensions/pull/1487/commits/9ee443c7f91e45f3e747086621744c5ece848abf)
  • You have to leave the editor and come back in for the text inputs to change to menus
  • ~~Highlighting the fullscreen button on TurboWarp, not packaged, looks different to Control Controls one (Custom Controls uses the parent element)~~ (https://github.com/TurboWarp/extensions/pull/1487/commits/9ee443c7f91e45f3e747086621744c5ece848abf)
  • It didn't work for @Drago-Cuven and they didn't get back afterwards

veggiecan0419 avatar Jul 18 '24 16:07 veggiecan0419

@CubesterYT Since you are now a TurboWarp collaborator, could you please review this PR?

Sure, I'll look it over soon.

CubesterYT avatar Jul 18 '24 17:07 CubesterYT

Known issues:

  • ~Once the extension is loaded, changing the language doesn't retranslate the it (the blocks array is a constant)~ (9ee443c)
  • You have to leave the editor and come back in for the text inputs to change to menus
  • ~Highlighting the fullscreen button on TurboWarp, not packaged, looks different to Control Controls one (Custom Controls uses the parent element)~ (9ee443c)
  • It didn't work for @Drago-Cuven and they didn't get back afterwards

If there are known issues then I am going to make this a draft PR as someone may accidentally miss this comment and merge a broken extension.

yuri-kiss avatar Dec 25 '24 00:12 yuri-kiss

Known issues:

  • ~Once the extension is loaded, changing the language doesn't retranslate the it (the blocks array is a constant)~ (9ee443c)
  • You have to leave the editor and come back in for the text inputs to change to menus
  • ~Highlighting the fullscreen button on TurboWarp, not packaged, looks different to Control Controls one (Custom Controls uses the parent element)~ (9ee443c)
  • It didn't work for @Drago-Cuven and they didn't get back afterwards

If there are known issues then I am going to make this a draft PR as someone may accidentally miss this comment and merge a broken extension.

@yuri-kiss No, the extension is not at all broken. The one issue is with turbowarp, another is just the person not responding, and the 2 others are resolved. If you have used the extension and found it broken, could you please let me know what wasn't working?

veggiecan0419 avatar Jan 19 '25 23:01 veggiecan0419

@yuri-kiss I've resolved the comment

veggiecan0419 avatar Jan 19 '25 23:01 veggiecan0419

@yuri-kiss I've resolved the comment okay :3

yuri-kiss avatar Jan 20 '25 17:01 yuri-kiss