Add to Navigation Stack through code?

Answered

Comments

3 comments

  • Official comment
    Alexandru Mares

    Hi Matt,

     

    We've been debating on how to approach this in code and we've come up with several solutions that will be available starting DoozyUI 2.9.4. Below are some of the new features (methods) available:

     

    New Feature:

    UIElement has a new method 'IsUIElementVisible' that returns true if at least one UIElement with the given elementName and elementCategory is currently visible. An UIElement is considered visible if its isVisible value is true.


    New Feature:

    UIManager and UINavigation have a new public static method 'ShowAndHide(List<NavigationPointer> show, List<NavigationPointer> hide, bool addToNavigationHistory, bool instantAction = false)' that shows and/or hidea all the UIElements that have been added to the show and/or hide NavigationPointer Lists while also adding this change to the NaviagtionHistory if addToNavigationHistory is set to true.


    New Feature:

    UIManager and UINavigation have a new public static method 'ShowUiElementAndHideAllTheOthers(string elementName, string elementCategory, bool addToNavigationHistory, bool instantAction = false)' that shows an UIElement and hides all the others (the UIElements that are visible) whith the addToNavigationHistory option.


    New Feature:

    UIManager and UINavigation have a new public static method 'ShowUiElement(string elementName, string elementCategory, bool addToNavigationHistory, bool instantAction = false)' that shows all the UIElements that have the given name and category with addToNavigationHistory option.


    New Feature:

    UIManager and UINavigation have a new public static method 'HideUiElement(string elementName, string elementCategory, bool addToNavigationHistory, bool instantAction = false)' that hides all the UIElements that have the given name and category with addToNavigationHistory option.

     

    Is this what you were looking for?

    Comment actions Permalink
  • Rerosa Itso

    Wow, I have been following this thread, and thankfully an answer came. Cheers to the team of doozy ui. Perhaps doozy ui team is planning on adding a code side of things? Btw. I've been using doozy ui on so many of my projects and its just sad that a lot of times doozy ui does not offer a programmatical/code way of doing stuff. Anyway I just checked and 2.9.4 is still not live. When will you release this version? Thanks :)

    0
    Comment actions Permalink
  • Ben Orona

    Just tried 2.9.4 for the first time. What a joy it is to finally be able to Show UIElements from script while maintaining consistent Navigation/Back button behavior. Before this update, I had basically given up on that and was just either using UIButtons exclusively or doing manual back navigation exclusively which was very limiting. Thank you DoozyUI!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk