<animation>
toggle up = prop1=1, prop2=0 prop3=0
toggle mid = prop2=1, prop1=0 prop3=0
toggle down = prop3=1, prop1=0 prop2=0
</animation>
<animation>
toggle up = prop0=0
toggle mid = prop0=1
toggle down = prop0=2
</animation>
<switch or FCS or Nasal>
if prop0=0 {prop1=1, prop2=0 prop3=0}
if prop0=1 {prop2=1, prop1=0 prop3=0}
if prop0=2 {prop3=1, prop1=0 prop2=0}
</switch or FCS or Nasal>
<animation>
<type>knob</type>
<object-name>F6SW-1-7</object-name>
<property>/fdm/jsbsim/systems/adi/toggle-switch</property>
<factor>-35</factor>
<offset-deg>35</offset-deg>
<center>
<x-m>-12.38974</x-m>
<y-m>-0.5833</y-m>
<z-m>-0.71387</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
<action>
<binding>
<command>property-adjust</command>
<property>/fdm/jsbsim/systems/adi/toggle-switch</property>
<factor>1</factor>
<min>0</min>
<max>2</max>
<wrap>false</wrap>
</binding>
</action>
</animation>
<switch name="/fdm/jsbsim/systems/ap/orbital-dap-inertial">
<default value="0"/>
<test logic="AND" value="1">
/fdm/jsbsim/systems/adi/toggle-switch EQ 2
</test>
</switch>
<switch name="/fdm/jsbsim/systems/ap/orbital-dap-lvlh">
<default value="0"/>
<test logic="AND" value="1">
/fdm/jsbsim/systems/adi/toggle-switch EQ 1
</test>
</switch>
<switch name="/fdm/jsbsim/systems/ap/orbital-dap-free">
<default value="0"/>
<test logic="AND" value="1">
/fdm/jsbsim/systems/adi/toggle-switch EQ 0
</test>
</switch>
Can the bindings be written to assign a different value to 3 different properties instead
<radio>
<row>2</row>
<col>1</col>
<label>+X</label>
<halign>left</halign>
<name>sense-X</name>
<property>/fdm/jsbsim/systems/fcs/sense-X</property>
<live>true</live>
<binding>
<command>property-assign</command>
<property>/fdm/jsbsim/systems/fcs/sense-minus-X</property>
<value>0</value>
</binding>
<binding>
<command>property-assign</command>
<property>/fdm/jsbsim/systems/fcs/sense-minus-Z</property>
<value>0</value>
</binding>
<binding>
<command>property-assign</command>
<property>/fdm/jsbsim/systems/fcs/sense-X</property>
<value>1</value>
</binding>
</radio>
do you want responses primarily via the ticket system
Thorsten wrote:My main concern is to figure out just what needs to be instanced how in Richard's display framework to generalize it - seems I misunderstood how this works, it appears more complicated than I guessed.Richard wrote in Fri Dec 11, 2015 8:36 pm:I've been through the Nasal now and I've got a plan for turning it all into an object that we can instantiate multiple versions of (one for each screen) - I'm still not totally up to speed with the way it's all going to work; so the first step is to change the Nasal so we can have what we've got now on multiple screens and then figure out the next step..
device.MEDS_menu_title.setText(" MAIN MENU");
# Set alignment
#
# @param align String, one of:
# left-top
# left-center
# left-bottom
# center-top
# center-center
# center-bottom
# right-top
# right-center
# right-bottom
# left-baseline
# center-baseline
# right-baseline
# left-bottom-baseline
# center-bottom-baseline
# right-bottom-baseline
#
setAlignment: func(align)
Note that you can also set font/formatting related attributes using dedicated properties, i.e. you don't need to prepend/append whitespaces for such purposes.
Equally, layouting can be accomplished using the vbox/hbox layouts - which in turn can be used to create table (row/column) layouts
wlbragg wrote in Thu Dec 17, 2015 5:47 am:@Richard, I have no idea if you will know the answer to this question but I need to ask. I am starting to animate some of the switches in the Shuttle. The first one I did was the Commander's ADI switch. Next I decided I might as well go ahead and do the Pilot's ADI switch. Two things I noticed. The Commander's switch was one solid object including the pedestal, the Pilot's was many faces and still part of the Fwd_Equipment_Knobs object which is literally half the ship. One was on a texture (text legend) panel, the other was not. Can you shed some light on this for me and maybe guide me on steps you were planning on taking down the road to deal with this?
To remind you, it appears that you somehow may have already converted many switches to stand alone objects and named them, does that sound familiar?
Users browsing this forum: No registered users and 1 guest