示例#1
0
        private void SetChooserOption(PreciseManeuverDropdownItem item)
        {
            if (!(item is PreciseManeuverPagerItem))
            {
                return;
            }
            var pageritem = item as PreciseManeuverPagerItem;

            m_Control.ReplaceTextComponentWithTMPro(pageritem.NodeIdx.GetComponent <Text> ())?.
            Invoke(m_Control.getLocalizedNodeln(pageritem.Index + 1));
            m_Control.ReplaceTextComponentWithTMPro(pageritem.NodeTime.GetComponent <Text> ())?.
            Invoke(m_Control.getManeuverTime(pageritem.Index));
            m_Control.ReplaceTextComponentWithTMPro(pageritem.NodedV.GetComponent <Text> ())?.
            Invoke(m_Control.getManeuverDV(pageritem.Index));
            m_Control.ReplaceTextComponentWithTMPro(pageritem.dVLabel.GetComponent <Text> ());
        }
示例#2
0
        private void setChooserOption(PreciseManeuverDropdownItem item)
        {
            if (!(item is PreciseManeuverPagerItem))
            {
                return;
            }
            var pageritem = item as PreciseManeuverPagerItem;

            m_pagerControl.replaceTextComponentWithTMPro(pageritem.nodeidx.GetComponent <Text> ())?.
            Invoke(m_pagerControl.getManeuverNodeLocalized() + "\n" + (pageritem.index + 1).ToString());
            m_pagerControl.replaceTextComponentWithTMPro(pageritem.nodetime.GetComponent <Text> ())?.
            Invoke(m_pagerControl.getManeuverTime(pageritem.index));
            m_pagerControl.replaceTextComponentWithTMPro(pageritem.nodedv.GetComponent <Text> ())?.
            Invoke(m_pagerControl.getManeuverDV(pageritem.index));
            m_pagerControl.replaceTextComponentWithTMPro(pageritem.dvlabel.GetComponent <Text> ());
        }