public void findWidget() { if (EnDZPlayer.ePlayerSelf == m_playerSide) { m_text = new AuxLabel(UtilApi.GoFindChildByPObjAndName(CVSceneDZPath.SelfMpText)); } else { m_text = new AuxLabel(UtilApi.GoFindChildByPObjAndName(CVSceneDZPath.EnemyMpText)); } if (EnDZPlayer.ePlayerSelf == m_playerSide) { m_mpGrid = new UIGrid(); m_mpGrid.setGameObject(UtilApi.GoFindChildByPObjAndName(CVSceneDZPath.SelfMpList)); m_mpGrid.maxPerLine = 1; m_mpGrid.cellWidth = 0.5f; m_mpGrid.cellHeight = 0.5f; } else { m_mpGrid = new UIGrid(); m_mpGrid.setGameObject(UtilApi.GoFindChildByPObjAndName(CVSceneDZPath.EnemyMpList)); m_mpGrid.maxPerLine = 10; m_mpGrid.cellWidth = 0.5f; m_mpGrid.cellHeight = 0.5f; } }
public HeroCenteArear(HeroData data) : base(data) { m_heroGrid.setGameObject(UtilApi.TransFindChildByPObjAndPath(m_heroData.m_goRoot, "HeroGrid")); m_heroGrid.cellWidth = 0.388f; m_heroGrid.cellHeight = 0.651f; }
public new void findWidget() { m_tuJianData.m_onClkCard = onClkCard; m_btnArr[(int)TuJianCardPnl_BtnIndex.eBtnPre] = new AuxBasicButton(m_tuJianData.m_form.m_GUIWin.m_uiRoot, TuJianPath.BtnPrePage); m_btnArr[(int)TuJianCardPnl_BtnIndex.eBtnNext] = new AuxBasicButton(m_tuJianData.m_form.m_GUIWin.m_uiRoot, TuJianPath.BtnNextPage); m_cardGrid.setGameObject(m_cardGo); m_cardGrid.cellWidth = 3.0f; m_cardGrid.cellHeight = 4.0f; m_cardGrid.maxPerLine = (int)TuJianCardNumPerPage.eCol; // 当前页号 m_textPageNum = new AuxLabel(m_tuJianData.m_form.m_GUIWin.m_uiRoot, TuJianPath.TextPageNum); }