Jump to content

Recommended Posts

3 minutes ago, rangee said:

 

Um... I can't remember exactly because I edited this couple of month ago...

If don't do that, it makes problem with slider.

 

And without edit, code results different with original viewLayout...

 

If there are multi element in row,  there's no problem.

it looks like this

{ "components": [ { "components": [ { "name": "button2_1",

 

If there are one element in row,  there are some differces.

it looks like this without change

{ "components": [ { "components": [ { "name": "button1",

it looks like this with change and this is original code when you make ui at fibaro editor.

{ "components": [ { "name": "button1",
 

Ok, I will fix it in next release (any hour now :-) ). I'm also making some more changes to the UI creation code so let me know if you spot some more issues/incompatibilities.

Link to post
Share on other sites
  • Replies 103
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

This is a thread for the fibaroapiHC3.lua sdk that is under development (keeping it separate from the HC3 QuickApps coding - tips and tricks thread) I've started to run and test HC3 QuickApps off

New version v0.120. Hopefully this version is usable in Visual Studio (Windows) thanks to debugging effort from @10der.    Besides being an emulator for the HC3, fibaroapiHC3.lua is als

The SDK can be useful for coding and debugging large projects with a lot of moving parts. Zerobrane studio allows for setting conditional breakpoints and live variables watches which is real time save

Posted Images

Pushed v0.130.

Updated handling of UI elements.Fix from @rangee also.

Now we can declare UIlements in the UI=.. header like in this example.

At least laying out labels and buttons/sliders on the same row is useful.

Note also that slider takes extra arguments

{slider='s1',min=0,max=50,step=5,value=0,onChanged='s1'}

will make the slider return values 0-50 and move the value in steps of 5.

Link to post
Share on other sites
4 minutes ago, jgab said:

Pushed v0.130.

Updated handling of UI elements.Fix from @rangee also.

Now we can declare UIlements in the UI=.. header like in this example.

At least laying out labels and buttons/sliders on the same row is useful.

Note also that slider takes extra arguments

{slider='s1',min=0,max=50,step=5,value=0,onChanged='s1'}

will make the slider return values 0-50 and move the value in steps of 5.

 

Note that.. when we declare slider or button with label on the same row,

eg)  {slider, label}  or {button, label}

When edit script via hc3 editor, UI will broken up.

Link to post
Share on other sites
Just now, rangee said:

 

Note that.. when we declare slider or button with label on the same row,

eg)  {slider, label}  or {button, label}

When edit script via hc3 editor, UI will broken up.

Yes, the alternative layouts is not supported by the UI editor.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...