public void OpenDlg( eDLG_STATE eState, int iIndex ) { CreateBackground(); m_eDlgState = eState; SetHidePartyName(); SetShowUpBtn(false); //SetBackGroundEnableCollier( true ); SetActiveTouchBtn( false); SetAreaMapArrawBtn( UIWorldBackGround.eAREAMAP_ARRAW.left, false ); SetAreaMapArrawBtn( UIWorldBackGround.eAREAMAP_ARRAW.right, false ); SetAreaMapArrawBtn( UIWorldBackGround.eAREAMAP_ARRAW.up, false ); SetAreaMapArrawBtn( UIWorldBackGround.eAREAMAP_ARRAW.down, false ); switch( m_eDlgState ) { case eDLG_STATE.ZONE_DLG: SetActiveTouchBtn(true); GetZoneLogic().Open( iIndex ); SetWorldBtnSwitch(1); SetWorldMapSize(UIWorldMapSettingDlg.s_bigMap); if( null != m_uiBackGround ) m_uiBackGround.SetViewBtnSetting( true ); break; case eDLG_STATE.AREA_DLG: GetAreaLogic().Open( iIndex ); SetWorldMapSize(true); if( null != m_uiBackGround ) m_uiBackGround.SetViewBtnSetting( false ); break; case eDLG_STATE.WORLD_DLG: GetWorldLogic().Open(/* iIndex */); SetWorldMapSize(true); if( null != m_uiBackGround ) m_uiBackGround.SetViewBtnSetting( false ); break; case eDLG_STATE.WAYPOINT_AREA_DLG: GetWayPointAreaLogic().Open( iIndex ); SetWorldMapSize(true); if( null != m_uiBackGround ) m_uiBackGround.SetViewBtnSetting( false ); break; case eDLG_STATE.WAYPOINT_WORLD_DLG: GetWayPointWorldLogic().Open(/* iIndex */); SetWorldMapSize(true); if( null != m_uiBackGround ) m_uiBackGround.SetViewBtnSetting( false ); break; } }
public void CloseDlg( eDLG_STATE eState ) { switch( eState ) { case eDLG_STATE.ZONE_DLG: GetZoneLogic().Close(); break; case eDLG_STATE.AREA_DLG: GetAreaLogic().Close(); break; case eDLG_STATE.WORLD_DLG: GetWorldLogic().Close(); break; case eDLG_STATE.WAYPOINT_AREA_DLG: GetWayPointAreaLogic().Close(); break; case eDLG_STATE.WAYPOINT_WORLD_DLG: GetWayPointWorldLogic().Close(); break; } m_eDlgState = eDLG_STATE.CLOSE; }