How to import file only if condition is met? (1 Viewer)

ddlooping

MP Donator
  • Premium Supporter
  • November 23, 2008
    80
    5
    Home Country
    United Kingdom United Kingdom
    Hi all :)

    I was wondering if there was a way to import a file based on a visibility condition.

    Example:

    if <visible>facadeview.smallicons+Control.IsVisible(50)</visible>
    then <import>movingpictures.smallthumbnails.xml</import>

    That would enable me to have the different views layouts in separate files, hence smaller files and cleaner code.

    :D
     

    ddlooping

    MP Donator
  • Premium Supporter
  • November 23, 2008
    80
    5
    Home Country
    United Kingdom United Kingdom
    Thanks, SOUNDYTIM. :)

    Judging from your reply I assume it is not yet possible, or is it a guess on your part?
     

    ddlooping

    MP Donator
  • Premium Supporter
  • November 23, 2008
    80
    5
    Home Country
    United Kingdom United Kingdom
    Is there any skin guru who might know? :confused:
     

    cul8er

    Retired Team Member
  • Premium Supporter
  • August 31, 2006
    2,159
    2,679
    Home Country
    Sweden Sweden
    Hi,

    To my knowledge what you request does not exist. You will have to add the visibility tags on all controlls in the "movingpictures.smallthumbnails.xml" from your example above....

    cheers
    cul8er
     

    ddlooping

    MP Donator
  • Premium Supporter
  • November 23, 2008
    80
    5
    Home Country
    United Kingdom United Kingdom
    Not what I was hoping to hear. :(

    Thanks nonetheless, cul8er. :)
     

    Users who are viewing this thread

    Top Bottom