Perhaps some useful UI components

Share your helpful Urho3D code snippets, samples and tutorials here.

Re: Perhaps some useful UI components

PostPosted by sabotage3d » 09 Nov 2016, 21:29

Nice! Is it currently possible to antialias the lines?
User avatar
sabotage3d
Have many posts
Have many posts
 
Posts: 515
Joined: 25 Oct 2014, 13:26

Re: Perhaps some useful UI components

PostPosted by Lumak » 09 Nov 2016, 23:39

No, I haven't added anything. But I think 1vank or someone added AA on debug lines about a month ago. I think same could be applied to the linebatcher.

Anyway, checked in my latest code that includes node graph.
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Perhaps some useful UI components

PostPosted by yushli » 10 Nov 2016, 02:32

Woo, you are making great progress! Nice to see node graph built solely on Urho3D, not depending on other UI libraries. Looking forward to other exciting components...
User avatar
yushli
Some active
Some active
 
Posts: 94
Joined: 18 Oct 2014, 05:42

Re: Perhaps some useful UI components

PostPosted by Miegamicis » 10 Nov 2016, 09:44

Awesome work! Looks great, will check this out. :)
User avatar
Miegamicis
New user
New user
 
Posts: 14
Joined: 19 Apr 2016, 10:19

Re: Perhaps some useful UI components

PostPosted by godan » 10 Nov 2016, 13:34

Nicely done! Node graphs FTW!
User avatar
godan
Active user
Active user
 
Posts: 122
Joined: 23 Sep 2014, 20:28

Re: Perhaps some useful UI components

PostPosted by Lumak » 10 Nov 2016, 17:49

Thanks. I hope I've written enough to be a good foundation for others to build on.
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Perhaps some useful UI components

PostPosted by namic » 10 Nov 2016, 20:55

The node graph is amazing. Thank you.
User avatar
namic
Some active
Some active
 
Posts: 64
Joined: 31 May 2015, 23:12

Re: Perhaps some useful UI components

PostPosted by Lumak » 15 Nov 2016, 16:45

sabotage3d wrote:Nice! Is it currently possible to antialias the lines?


I looked into this and this doesn't work like the debug lines as I previously thought. All batches are rendered by UI class, and I'm not sure how to specify anti aliasing for a specific batch. Maybe someone in the community has a clear idea on how to fix it.
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Perhaps some useful UI components

PostPosted by sabotage3d » 15 Nov 2016, 22:24

I am getting some errors on OSX. This is the log:
http://codepad.org/qtKWPhbK
User avatar
sabotage3d
Have many posts
Have many posts
 
Posts: 515
Joined: 25 Oct 2014, 13:26

Re: Perhaps some useful UI components

PostPosted by Lumak » 15 Nov 2016, 23:15

The
Code: Select all
void SetCheckedInternal(bool enable);

is defined in: Urho3D-UI-Components/Source/Urho3D/UI/CheckBox.h

Try changing the two fn params in the .cpp/.h files to:
Code: Select all
    void SetRange(const Variant &vmin, const Variant &vmax);
    void SetCurrentValue(const Variant &val);



I appreciate the PR once you verified it's fixed.

edit: and I'm not sure what this error means:
Code: Select all
/DEV/Urho3D-UI-Components/Source/Samples/61_UITest/TabGroup.h:59:27: error:
      extra qualification on member 'GetTabElement'
    TabElement* TabGroup::GetTabElement(unsigned idx);
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

PreviousNext

Return to Code Exchange

Who is online

Users browsing this forum: No registered users and 0 guests

cron