public void PromptTooltip() { AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false); if( eSkillPosition.SkillShop == position) { AsSkillTooltip tip = GameObject.Instantiate( toolTip) as AsSkillTooltip; float screenWidth = desc.RenderCamera.orthographicSize * desc.RenderCamera.aspect * 2.0f; tip.transform.position = new Vector3( ( ( screenWidth * 0.5f) - 500.0f) - ( ( screenWidth - 16.5f) * 0.5f), 0.0f, -10.0f); tip.ID = slot.getSkillID; tip.Level = slot.getSkillLevel; if( ( true == AsUserInfo.Instance.resettedSkills.ContainsKey( skillInfo.getSkillRecord.Index)) || ( true == AsUserInfo.Instance.resettedSkills.ContainsKey( skillInfo.getSkillRecord.CoupleIndex))) price = 0; tip.Init( skillRecord, skillLevelRecord, price); } else { AsSkillTooltipInBook tip = GameObject.Instantiate( toolTipInBook) as AsSkillTooltipInBook; AsDlgBase dlgBase = tip.gameObject.GetComponentInChildren<AsDlgBase>(); tip.transform.position = new Vector3( -500.0f - ( dlgBase.TotalWidth * 0.5f), 0.0f, -10.0f); tip.ID = slot.getSkillID; tip.Level = slot.getSkillLevel; tip.Init( skillRecord, skillLevelRecord); m_tip = tip; } }
public void InputUp( Ray inputRay) { if( ( null != m_ClickDownSlot) && ( AsPStoreManager.Instance.UnableActionByPStore() == false)) //$yde { if( null != m_goMoveIcon) { if( true == m_ClickDownSlot.IsEnableItem || true == m_ClickDownSlot.IsEnableSkill) { m_ClickDownSlot.Disable = false; if( m_iClickDownQuickSlotIndex >= 0) { AsCommonSender.SendQuickslotChange( (short)m_iClickDownQuickSlotIndex, 0, eQUICKSLOT_TYPE.eQUICKSLOT_TYPE_NOTHING); ItemMgr.HadItemManagement.QuickSlot.SetQuickSlot( (short)m_iClickDownQuickSlotIndex, 0, eQUICKSLOT_TYPE.eQUICKSLOT_TYPE_NOTHING); AsSoundManager.Instance.PlaySound( strIconDeleteSounc, Vector3.zero, false); } } } else { if( true == AsUtil.PtInCollider( m_ClickDownSlot.collider, inputRay)) { if( m_ClickDownSlot.IsEnableItem) { TooltipMgr.Instance.OpenTooltip( TooltipMgr.eOPEN_DLG.normal, m_ClickDownSlot.getItemID); } else if( m_ClickDownSlot.IsEnableSkill) { if( null != toolTipInBook) { Tbl_Skill_Record skillRecord = AsTableManager.Instance.GetTbl_Skill_Record( m_ClickDownSlot.getSkillID); Tbl_SkillLevel_Record skillLevelRecord = AsTableManager.Instance.GetTbl_SkillLevel_Record( m_ClickDownSlot.getSkillLevel, m_ClickDownSlot.getSkillID); if( null != skillRecord && null != skillLevelRecord) { AsSkillTooltipInBook tip = GameObject.Instantiate( toolTipInBook) as AsSkillTooltipInBook; //AsDlgBase dlgBase = tip.gameObject.GetComponentInChildren<AsDlgBase>(); tip.transform.position = m_tipPosition;//new Vector3( -500.0f/* - ( dlgBase.TotalWidth * 0.5f)*/, 0.0f, -10.0f); tip.ID = m_ClickDownSlot.getSkillID; tip.Level = m_ClickDownSlot.getSkillLevel; tip.Init( skillRecord, skillLevelRecord); m_skillTooltip = tip; } } } } } } }
public void ItemClick( ref POINTER_INFO ptr) { if( ptr.evt == POINTER_INFO.INPUT_EVENT.TAP) { nowItem = dicItem[ptr.targetObj.gameObject]; if( listRewardItemData[nowItem].type == RewardItemType.ITEM) OpenItemToolTip( listRewardItemData[nowItem].id); else if( listRewardItemData[nowItem].type == RewardItemType.SKILL) { AsSkillTooltipInBook tip = GameObject.Instantiate( toolTipInBook) as AsSkillTooltipInBook; Tbl_Skill_Record skillRecord = AsTableManager.Instance.GetTbl_Skill_Record( listRewardItemData[nowItem].id); Tbl_SkillLevel_Record skillLvRecord = AsTableManager.Instance.GetTbl_SkillLevel_Record( (int)listRewardItemData[nowItem].externalData1, listRewardItemData[nowItem].id); tip.transform.position = new Vector3( transform.position.x - 8.0f, transform.position.y, transform.position.z - 5.0f); tip.ID = listRewardItemData[nowItem].id; tip.Level = (int)listRewardItemData[nowItem].externalData1; tip.Init( skillRecord, skillLvRecord); m_skillTooltip = tip; } } }