New extension: Custom controls!
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:
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?
doesn't seem to be working for me.
I can't make buttons
@Drago-Cuven Did you load it unsandboxed? It needs to run unsandboxed.
@Drago-Cuven Also, maybe you didn't do it correctly? See if this works?
@Drago-Cuven
@Drago-Cuven Did it work?
@CubesterYT Since you are now a TurboWarp collaborator, could you please review this PR?
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
@CubesterYT Since you are now a TurboWarp collaborator, could you please review this PR?
Sure, I'll look it over soon.
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.
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?
@yuri-kiss I've resolved the comment
@yuri-kiss I've resolved the comment okay :3