Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having Trouble Understand How to Make Custom Plugin for App #24

Open
llpf1112 opened this issue Apr 3, 2019 · 5 comments
Open

Having Trouble Understand How to Make Custom Plugin for App #24

llpf1112 opened this issue Apr 3, 2019 · 5 comments

Comments

@llpf1112
Copy link

llpf1112 commented Apr 3, 2019

So, disclaimer, I'm totally new to coding. And I have trouble understanding the instruction here. Is there a more layman termed instructions that I can follow? So far, I used the C# and I was able to make it to step 4 without problem. But the rest is hard for me to understand.

I just wish to enhance/enable some contextual functions for certain app. Preferably I can customize some of the icons. If someone could tell me what does what, and which par of the code I need to change in a layman term would be helpful. Thanks!

@ju2pom
Copy link

ju2pom commented Apr 3, 2019

Hi,
I've been through the same questions a few months ago, that's why I have created an alternative SDK here: https://github.com/ju2pom/logicraftsdk.NET

@llpf1112
Copy link
Author

llpf1112 commented Apr 3, 2019

oh, thank you for your help. I will give it a try and let you know if it works for me. Thanks again!

@llpf1112
Copy link
Author

llpf1112 commented Apr 3, 2019

I'm sorry but this still seems too difficult for me to understand. But thanks for your help still.

@naokihada
Copy link

naokihada commented Apr 3, 2019

Hi @llpf1112

Following is steps to enhance overlay set.

  1. Context report is by "tool_change" event.
    https://github.com/Logitech/logi_craft_sdk/blob/master/samples/WinFormsCrownSample/WinFormsCrownSample/Form2.cs
    Line #127
    ex) Line #593: toolChange("TextBox");

  2. tools.json file defines overlay set
    https://github.com/Logitech/logi_craft_sdk/blob/master/samples/WinFormsCrownSample/d510af8d-360f-4f3d-9216-20cd4f20f664/Manifest/tools.json
    ex) Line logi #44: "name": "TextBox",
    Same section, it has set of overlay and image files.
    ex) Line In app option to add additional wheel tap configuration to assign existing functions #50: "image_file_path": "height.png",
    If you add more set, it will enhance more overlay set.

  3. Overlay images are in Gallery
    https://github.com/Logitech/logi_craft_sdk/tree/master/samples/WinFormsCrownSample/d510af8d-360f-4f3d-9216-20cd4f20f664/Gallery
    ex) height.png
    https://github.com/Logitech/logi_craft_sdk/blob/master/samples/WinFormsCrownSample/d510af8d-360f-4f3d-9216-20cd4f20f664/Gallery/height.png
    You can add more image files here.

  4. UI strings
    https://github.com/Logitech/logi_craft_sdk/blob/master/samples/WinFormsCrownSample/d510af8d-360f-4f3d-9216-20cd4f20f664/Languages/en.json
    You can add entry here for tool_options.

  5. Back to C# code to handle "crown_turn_event"
    https://github.com/Logitech/logi_craft_sdk/blob/master/samples/WinFormsCrownSample/WinFormsCrownSample/Form2.cs
    Line #212: case "TextBox":
    Please compare with 2)'s json file.

Note:
JSON file is easy to get wrong file format in editing. It's nice to check with some JSON lint program or site with your favorite editor.
Pretty JSON for Sublime Text3
https://packagecontrol.io/packages/Pretty%20JSON
https://jsonlint.com/

Thank you,
Naoki

@llpf1112
Copy link
Author

llpf1112 commented Apr 4, 2019

I see, I guess I understand it a little bit better. Thanks.
It'll take me some time to figure it all out. I might ask more questions in the future. Thank you all for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants