Jump to content
Server Maintenance This Week. ×

Setting Active Segments


This topic is 3221 days old. Please don't post here. Open a new topic instead.

Recommended Posts

So I am mocking up vertical navigation bar to the left and have a slide panel to the right ( kind of like a left tab panel )

So each button is static text & icon, and each button targets one script and passes a parameter, to go to the desired slide panel.

Some times I have to switch layouts and on return script I target the correct slide panel but now trying to target the corresponding active segment - but it appears that it it requires each segment to be named too?

I feel like I am repeating myself to many times

  • button is named the ( no point in making it 'dynamic' since the text has to correspond to the icon )
  • script parameter is named - buried one level deep in HUD
  • the segment is named ( inspector )
     

Screen_Shot_2015-06-30_at_6.35.26_PM.thu

from examples I am seeing people seem just to name the segment something generic like nav_1 - nav_10 etc. 

curious how others handle this?

 

Link to comment
Share on other sites

What i ended up doing is to name the segments in the inspector nav1 - nav7 and then i named the sliders: slide1 - slide7 

Then the script passes a parameter as number the script sets animation on and then goes to object "slide" & Get ( ScriptParameter ) and sets a variable  $$nav_active to "nav" & Get ( ScriptParameter )

 

Link to comment
Share on other sites

The purpose of not sharing is that I modified one of Daniel Wood's example files, 14for14_NavigationButtonBar, and it seems to be kind of questionable to present somebody else's file that way. Maybe it's not a big deal. 

Link to comment
Share on other sites

I was just interested in what you did and we usually discourage off-sharing ideas when a question is posted since others reading the thread will also wish you would have presented it here.

As is, we still don't know your optional suggestion which might be useful at other times.  Anyway, thanks for explaining.   :-)

Link to comment
Share on other sites

That would be good also although Stephen explained his and I think we can take it from there.  Your approach is still invisible.  Maybe you could just explain it so we have rough idea at least?  

If not, that's okay ... I, and I'm sure others, would be curious.

Link to comment
Share on other sites

This topic is 3221 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.