Search Unity

eDriven.Gui

Discussion in 'Immediate Mode GUI (IMGUI)' started by dkozar, Jul 7, 2012.

  1. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    You'll be able to purchase it via the Asset Store (currently in version 11, v12 in comes a week or two - I'm in the middle of a major refactoring).

    Please, use the Q&A thread for further questions. Thanks!
     
  2. lylenical

    lylenical

    Joined:
    Apr 28, 2013
    Posts:
    8
    dkozar,
    hi,when will the v12 be published,i am waiting for the scalemode of the image.:)
     
  3. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    Hi,

    I'm so sorry, but I'm currently deep into the (heavy) rewrite, and I cannot promise any concrete date. It's a meter of weeks, rather than days.

    In the meantime, you should know that with eDriven you can implement your own, custom component with a few lines of code.

    You can use the following code to create your own component (which uses GUI.DrawTexture internally):

    Code (csharp):
    1. using UnityEngine;
    2.  
    3. namespace eDriven.Gui.Components
    4. {
    5.     public class Simple : Component
    6.     {
    7.         public Texture Texture; // example of the exposed property
    8.  
    9.         public Simple() // constructor
    10.         {
    11.             // defaults
    12.             Width = 200;
    13.             Height = 150;
    14.         }
    15.  
    16.         protected override void Render() // render
    17.         {
    18.             GUI.DrawTexture(RenderingRect, Texture, ScaleMode.ScaleAndCrop, true, 1f); // RenderingRect is provided by the system
    19.         }
    20.  
    21.         protected override void Measure()
    22.         {
    23.             // override measuring
    24.             // this component won't measure itself since it must have the styling implemented for doing that
    25.             // instead it should be sized from the outside using Width and Height properties
    26.         }
    27.     }
    28. }
    And then, you can use the following code to produce and use your component:

    Code (csharp):
    1. var comp = new Simple
    2. {
    3.    Texture = (Texture) Resources.Load("edriven"),
    4.    Width = 150,
    5.    Height = 100
    6. };
    7.  
    8. container.AddChild(comp);
    This simple type of component is fully capable of "dancing the eDriven dance" with all the other eDriven.Gui components, except of auto measuring and sizing. Note that I have exposed only the Texture property. You can do the same with other properties (scale mode etc.)

    If you need to adapt the component for designer, you will find the example of two classes that need to be implemented (component adapter and component editor class) in the manual.

    Good luck! :)
     

    Attached Files:

    Last edited: May 10, 2013
  4. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
  5. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
  6. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    After more than a year on the Asset Store, I just thought this is the right time for fine-tuning the eDriven.Gui price. :)

    >>> Read more <<<
     
    Last edited: Aug 29, 2013
  7. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
  8. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
  9. zajac

    zajac

    Joined:
    Dec 7, 2012
    Posts:
    1
    Deal sounds interesting ;)
    Tho i would love to know if it is possible to merge event-driven layer of eDriven with display-layer of NGUI (issues? workarounds?)

    it is impossible for me to test it in within next 20 hrs (24 hrs deal afterall :) ) , so any thoughts? :)
    ~regards
     
  10. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    Hi!

    As for the event layer: I believe it is possible because the event layer is not dependent of eDriven.Gui, in fact it is the separate assembly available as open source.

    You could just download the Free edition (since eDriven Core at the Asset Store still isn't updated to a new version) and delete all the assemblies/demo scripts related to eDriven.Gui.

    As for the the styling layer (eDriven.Stylesheets) - it is capable of styling every type of script having the standard type of values (not custom nested structures). It's still not published as a separate (mini) package, but I'm planning to do it soon.

    (you should try to use the styling layer with NGUI, I believe it should work)

    Each eDriven.Gui user will be able to receive the eDriven.Stylesheet version for free (once it's out) and he could then use it without eDriven.Gui features (because of the smaller app size).
     
  11. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
  12. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
  13. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    eDriven.Gui promotional sale - 50% OFF!!!

    Get it for $50!!!

    Try | Buy

    $edrivengui_featured.png
     
  14. diggerjohn

    diggerjohn

    Joined:
    Apr 28, 2009
    Posts:
    60
    Looks real good.
    Certainly interested.
     
  15. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    Thumbs up! ^_^
     
  16. vguruv

    vguruv

    Joined:
    Jul 8, 2008
    Posts:
    6
    @dkozar are there any plans for wrapping eDriven.Gui around the new Unity GUI that is out now in Unity 4.6 beta ?
     
  17. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
    Unfortunately no (at least for some time), because I'm busy working on some other technologies, and having no energy for explaining Unity users what GUI framework is.. Sorry :)

    PS And if I would wrap, I would most probably wrap around the sprite system (I believe it has all the ingredients needed).
     
  18. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
  19. dkozar

    dkozar

    Joined:
    Nov 30, 2009
    Posts:
    1,410
  20. terrynoya

    terrynoya

    Joined:
    Jul 16, 2014
    Posts:
    5
    I just want to say I admire your hard work!!
    You are awsome
    I am also transform from actionscript to unity gui
    flex design is more easier to use than gui I think, Especially I want to make some custom edior,I found unity gui below 4.6 is hard to use.