[FREE] Component tools extension

Thank you very much! You did an amazing work! This extension is super!
So many possibilities. It is working great. And best of all : it’s completely free! I love it!

2 Likes

Thanks very much :heart_eyes:

2 Likes

Hello every one :grin:,

Version 2.0 is now out :partying_face: :partying_face:

Thanks every one for your suggestions.I tried to consider it all in this update.If i missed to add any thing please tell me :slightly_smiling_face:
Actually i thought some time how to achieve gesture events in real-time without adding loads of code and blocks.Actually, i ended with only two blocks.
It only have one touched block. It have a parameter its name is action.It covers almost every valid action.Even clicks.Doable clicks can be detected by comparing the times that the touch event ACTION_UP and then ACTION_DOWN has been called.Long click can be detected by the time of the event. Also you can know how many thumbs clicked.And knowing coordinates of every thumb.And the click event.Also i considered @WatermelonIce, @ADDYLIN and @nandu_aeer voting’s.In a future update i will add the ability of setting a listener that detects touches in any place on the screen.

New blocks:

The extension have 4 new blocks. Based on your suggestions.

RegisterComponent
component_method (42)
Register component so the extension can detect touches on it.
Component ~ Component

Touched
component_event (18)
This event is triggerred when a component is touched.The action is returned in the action parameter.
Component ~ Component ( the component which is clicked )
info~ String ( A detailed info about the touch in json format )
x~ int ( X positions of the first touch place )
y~ int ( Y positions of the first touch place )
action ~ String ( Action name of the action occurred.)
Thanks for @Zia_Choudhary and @themaayur

Valid action types

ACTION_BUTTON_PRESS

ACTION_BUTTON_RELEASE

ACTION_CANCEL

ACTION_DOWN

ACTION_HOVER_ENTER

ACTION_HOVER_EXIT

ACTION_HOVER_MOVE

int ACTION_MASK

int ACTION_MOVE

ACTION_OUTSIDE

ACTION_POINTER_DOWN

ACTION_POINTER_INDEX_MASK

ACTION_POINTER_INDEX_SHIFT

ACTION_POINTER_UP

ACTION_SCROLL

ACTION_UP

SetZ
component_method (43)
Sets the Z position of any component you want.
Component ~ Component
z ~ int
Thanks for @broekmancompany

GetZ
component_method (44)
Gets the Z position of any component you want.
Component ~ Component
Thanks for @broekmancompany

Bug fixed

Only small bug with the extension icon.

Download link

io.mohamed.ComponentTools.aix (19.8 KB) (V2)

5 Likes

First post will be updated now :+1:

2 Likes

Usage Examples:
First post will be updated also:
Real-time update And multiple thumb support:


The long text above is the info parameter in the touched event.
Test AIA: RealtimeTest (3).aia (22.3 KB)
Test APK: RealtimeTest (4).apk (5.0 MB)
3 Likes

Quick update :grin:

I love night updates

Actually, i found some small bugs in the new update.So i considered fixing now and not waiting for tomorrow.
Version : 2.1

Bugs fixed:

1- x and y parameters was returning an int of only the first x position and y position.So if we have 2 thumbs only the first thumb position will be returned.Now it returns a list of all of the x and why positions.
2- Touch event wasn’t called on perform click and perform long click methods.Now it will be called with the component and the action and also the thumb number.But some values will be empty list like x,y or 0 like event time.

Download link

io.mohamed.ComponentTools.aix (20.6 KB) ( V2.1 )

6 Likes

Did you update the link in the first post too? Just checking so there’s isn’t an outdated link in the thread.

2 Likes

Yes i update it @Italo :+1: you’ll see ( V2.1 ) beside it.

2 Likes

Great, you are just crazy.

You updated your extension 2 times in night when I was in a deep sleep and probably a good dream :rofl:

3 Likes

No words to explain your enthusiasm, spirit and craze of development

In our native language we used to express our feelings in such cases by saying… Uffff
So uffff​:star_struck::joy:

1 Like

Can i suggest:
1 That you put the video in the first post ?
2 Upload aia file (and not ais, if the extension not are upload to the proyect when import the screen (ais) an error occurs, it’s just to avoid problems)

2 Likes

:rofl: :rofl: Thanks @themaayur

Thanks very much :sweat_smile: @Zia_Choudhary

Thanks for you suggestions @bestprintsf
1- Already added.
2- Ok i will upload a test aia.That happened because of i’m not testing in screen1 of the project. :sweat_smile:

2 Likes

First thanks for you reply !!!
You can post say that the demo of your extension is on the screen 2/3/4 !!!
I wait for the next extension that you have promised !!! :wink: :shushing_face:

1 Like

I created a new aia and i will post it now.As i don’t want to conflict anyone.

Ofc, i already finished half of it. :grin:

1 Like

You are the best man!! Very nice update, Z-index works great! :grinning:
I tried some other features, but there was a small thing.

“moveHorizontally” works like “moveVertically” and “moveVertically” works like “moveHorizontally”

The names are just at the wrong feature that’s all :sweat_smile:

2 Likes

Thanks for reporting.I add an update now which this is one of the bugs that fixed in.

Thanks very much :sweat_smile:

1 Like

Sorry but i like this extension

1 Like

Thanks very much :grin:

Why sorry :face_with_monocle: :crazy_face:

Hi problem in move vertically and horizontally block for me when I set component move to vertically its moving horizontal pls check

1 Like

Thanks for reporting! This problem i’m aware from and already fixed.There’s just a really hard bug occuringnow .I’m working for fixing it.

2 Likes