public void ShowIntimacyRelation_Item(CUIComponent com, CFR frData, CUIFormScript uiFrom)
 {
     if (com == null || frData == null)
     {
         return;
     }
     IntimacyRelationViewUT.Show_Item(com, frData, uiFrom);
 }
Ejemplo n.º 2
0
 public void ShowIntimacyRelation_Item(CUIComponent com, CFR frData)
 {
     if (com == null || frData == null)
     {
         return;
     }
     IntimacyRelationViewUT.Show_Item(com, frData);
 }
        private void On_IntimacyRela_Drop_ListElement_Click(CUIEvent uievent)
        {
            CUIComponent   component         = uievent.m_srcWidgetScript.m_widgets[0].GetComponent <CUIComponent>();
            CUIEventScript component2        = component.m_widgets[7].GetComponent <CUIEventScript>();
            ulong          commonUInt64Param = component2.m_onClickEventParams.commonUInt64Param1;
            uint           tagUInt           = component2.m_onClickEventParams.tagUInt;
            CFR            cfr = Singleton <CFriendContoller> .instance.model.FRData.GetCfr(commonUInt64Param, tagUInt);

            if (cfr == null)
            {
                return;
            }
            cfr.bInShowChoiseRelaList = false;
            cfr.choiseRelation        = uievent.m_srcWidgetIndexInBelongedList;
            IntimacyRelationViewUT.Show_Item(component, cfr, this.form);
        }
        private void On_IntimacyRela_Show_Drop_List(CUIEvent uievent)
        {
            ulong commonUInt64Param = uievent.m_eventParams.commonUInt64Param1;
            uint  tagUInt           = uievent.m_eventParams.tagUInt;
            CFR   cfr = Singleton <CFriendContoller> .instance.model.FRData.GetCfr(commonUInt64Param, tagUInt);

            if (cfr != null)
            {
                cfr.bInShowChoiseRelaList = !cfr.bInShowChoiseRelaList;
                CUIComponent  component  = uievent.m_srcWidgetScript.m_widgets[0].GetComponent <CUIComponent>();
                CUIListScript component2 = uievent.m_srcWidgetScript.m_widgets[1].GetComponent <CUIListScript>();
                if (component2 != null)
                {
                    component2.SetElementAmount(4);
                }
                IntimacyRelationViewUT.Show_Item(component, cfr, this.form);
            }
        }