public UIRankInfoBar(GameObject obj) { mObj = obj; mRankingText = ObjectCommon.GetChildComponent <UILabel>(obj, "mRankingText"); mNameText = ObjectCommon.GetChildComponent <UILabel>(obj, "mNameText"); mScoreText = ObjectCommon.GetChildComponent <UILabel>(obj, "mScoreText"); }
public SubMenuForm(GameObject go) { mGo = go; mBg = ObjectCommon.GetChildComponent <UISprite>(go, "bg"); mGrid = ObjectCommon.GetChildComponent <UIGrid>(go, "grid"); }
private void OnStoneItemClicked(GameObject obj) { int resid = int.Parse(obj.gameObject.name.Substring(6, 7)); if (mOldSelected) { SetIcon(mOldSelected, "atlas_defence:combelement2"); } mOldSelected = ObjectCommon.GetChildComponent <UISprite>(obj, "Sprite"); SetIcon(mOldSelected, "atlas_defence:combelement1"); mParam.stoneid = resid; if (StoneCombInfoInit(resid)) { if (!mStoneDemandPanel.activeSelf) { mStoneDemandPanel.SetActive(true); } } else { if (mStoneDemandPanel.activeSelf) { mStoneDemandPanel.SetActive(false); } } }
public WingPropertyItem(GameObject view) { mView = view; propProcessBar = ObjectCommon.GetChildComponent <UISlider>(view, "propProcessBar"); propname = ObjectCommon.GetChildComponent <UILabel>(view, "propname"); foreGround = ObjectCommon.GetChildComponent <UISprite>(view, "propProcessBar/fg"); }
public TitleGroupUI(GameObject go) { mName = ObjectCommon.GetChildComponent <UILabel>(go, "name"); mSelectSp = ObjectCommon.GetChildComponent <UISprite>(go, "selectSp"); mDirSp = ObjectCommon.GetChildComponent <UISprite>(go, "dirSp"); mGrid = ObjectCommon.GetChildComponent <UIGrid>(go, "Grid"); }
public ActivityItem(GameObject gameObj) { mObj = gameObj; mActivityName = ObjectCommon.GetChildComponent <UILabel>(mObj, "activityname"); mNeedLevel = ObjectCommon.GetChildComponent <UILabel>(mObj, "level"); mActivityTime = ObjectCommon.GetChildComponent <UILabel>(mObj, "time"); mLeftCount = ObjectCommon.GetChildComponent <UILabel>(mObj, "leftcount"); mCompleted = ObjectCommon.GetChildComponent <UISprite>(mObj, "completed"); mDesc = ObjectCommon.GetChildComponent <UILabel>(mObj, "liangli_miaoshu"); mOkLabel = ObjectCommon.GetChildComponent <UILabel>(mObj, "LabelOK"); mback = ObjectCommon.GetChildComponent <UISprite>(mObj, "bg"); mSprite1 = ObjectCommon.GetChildComponent <UISprite>(mObj, "Sprite1"); mSprite2 = ObjectCommon.GetChildComponent <UISprite>(mObj, "Sprite2"); mLabel1 = ObjectCommon.GetChildComponent <UILabel>(mObj, "Label1"); mLabel2 = ObjectCommon.GetChildComponent <UILabel>(mObj, "Label2"); mLabel3 = ObjectCommon.GetChildComponent <UILabel>(mObj, "Label3"); mLabel4 = ObjectCommon.GetChildComponent <UILabel>(mObj, "Label4"); mLabel5 = ObjectCommon.GetChildComponent <UILabel>(mObj, "Label5"); mXiangQingBtn = ObjectCommon.GetChildComponent <UIButton>(mObj, "xiangqing"); mOkBtn = ObjectCommon.GetChildComponent <UIButton>(mObj, "OkBtn"); EventDelegate.Add(mXiangQingBtn.onClick, OnXiangQingClick); EventDelegate.Add(mOkBtn.onClick, OnOkClick); }
public EnergyBarUI(GameObject obj, UIWindow win) { mWindow = win; closeBt = ObjectCommon.GetChildComponent <UIButton>(obj, "mCloseBtn"); starNumLb = ObjectCommon.GetChildComponent <UILabel>(obj, "mStarNumText"); starBt = ObjectCommon.GetChildComponent <UIButton>(obj, "mStarIcon"); spValueLb = ObjectCommon.GetChildComponent <UILabel>(obj, "mSPValueText"); spBt = ObjectCommon.GetChildComponent <UIButton>(obj, "mSpBtn"); EventDelegate.Add(closeBt.onClick, OnCloseClick); EventDelegate.Add(spBt.onClick, OnSpBtnClick); EventDelegate.Add(starBt.onClick, OnStarBtnClick); Init(); if (mStageListModule == null) { mStageListModule = ModuleManager.Instance.FindModule <StageListModule>(); } if (mPlayerDataModule == null) { mPlayerDataModule = ModuleManager.Instance.FindModule <PlayerDataModule>(); } EventSystem.Instance.addEventListener(PlayerDataEvent.PLAYER_DATA_CHANGED, onPlayerDataChanged); EventSystem.Instance.addEventListener(PropertyEvent.MAIN_PROPERTY_CHANGE, onPlayerDataChanged); UpdateEnergy(); }
void DestroyUnlock(GameObject go) { go.SetActive(false); GameObject Obj = go.transform.parent.gameObject.transform.parent.gameObject; if (!Obj) { return; } UIButton MapBtn = Obj.GetComponent <UIButton>(); if (!MapBtn) { return; } UIAtlasHelper.SetButtonImage(MapBtn, go.transform.parent.gameObject.name, true); UILabel Condition = ObjectCommon.GetChildComponent <UILabel>(Obj, "condition"); Condition.gameObject.SetActive(false); Condition.text = ""; go.transform.parent.gameObject.SetActive(false); UpdateAnimation(); }
public PromoteGridUI(GameObject obj) { mObj = obj; mIcon = ObjectCommon.GetChildComponent <UISprite>(mObj, "weaponSp"); mMainOrSub = ObjectCommon.GetChildComponent <UISprite>(mObj, "selectSpMainOrSub"); ChangeEquipedWeapon(); }
public void OnBtnSkill3Press(GameObject target, bool isPressed) { if (isPressed) { CropsTableItem cropsitem = DataManager.CropsTable[mOldSelected.GetCropsId()] as CropsTableItem; if (null == cropsitem) { return; } CropsSkillLearnTableItem learn = DataManager.CropsSkillLearnTable[cropsitem.skillid3] as CropsSkillLearnTableItem; if (null == learn) { return; } UILabel lb = ObjectCommon.GetChildComponent <UILabel>(mSkillNotes, "Label"); UILabel head = ObjectCommon.GetChildComponent <UILabel>(mSkillNotes, "head"); lb.text = learn.skill_desc; head.text = "[fed514]" + learn.skill_name + ":"; mSkillNotes.SetActive(true); mPropertyPanel.SetActive(false); } else { mSkillNotes.SetActive(false); mPropertyPanel.SetActive(true); } }
public StageBalanceItemUI(GameObject obj) { mObj = obj; mBtn = mObj.GetComponent <UIButton>(); mAwardObject = ObjectCommon.GetChild(mObj, "mAwardObject"); mAwardTweener = ObjectCommon.GetChildComponent <TweenRotation>(mObj, "mAwardObject"); mAwardPanel = ObjectCommon.GetChild(mObj, "mAwardObject/mAwardPanel"); mAwardIcon = ObjectCommon.GetChildComponent <UISprite>(mObj, "mAwardObject/mAwardIcon"); mAwardText = ObjectCommon.GetChildComponent <UILabel>(mObj, "mAwardObject/mAwardText"); mMaskObject = ObjectCommon.GetChild(mObj, "mMaskObject"); mMaskTweener = ObjectCommon.GetChildComponent <TweenRotation>(mObj, "mMaskObject"); mAwardMask = ObjectCommon.GetChild(mObj, "mMaskObject/mAwardMask"); mCostPanel = ObjectCommon.GetChild(mObj, "mMaskObject/mAwardCostPanel"); mCostIcon = ObjectCommon.GetChildComponent <UISprite>(mObj, "mMaskObject/mAwardCostPanel/mAwardCostIcon"); mCostText = ObjectCommon.GetChildComponent <UILabel>(mObj, "mMaskObject/mAwardCostPanel/mAwardCostText"); mAni = ObjectCommon.GetChildComponent <UISpriteAnimation>(mObj, "mAni"); mMaskParamList[0] = new Vector3(0.0f, 63.3f, 0.0f); mMaskParamList[1] = new Vector3(0.0f, 80.5f, 0.0f); mMaskParamList[2] = new Vector3(0.0f, -80.5f, 0.0f); mMaskParamList[3] = new Vector3(0.0f, -63.3f, 0.0f); mAwardParamList[0] = new Vector3(0.0f, -116.7f, 0.0f); mAwardParamList[1] = new Vector3(0.0f, -99.5f, 0.0f); mAwardParamList[2] = new Vector3(0.0f, 99.5f, 0.0f); mAwardParamList[3] = new Vector3(0.0f, 116.7f, 0.0f); Reset(); }
public TotalChargeItemUI(GameObject go) { mIcon = ObjectCommon.GetChildComponent <UISprite>(go, "icon"); mName = ObjectCommon.GetChildComponent <UILabel>(go, "name"); mCount = ObjectCommon.GetChildComponent <UILabel>(go, "number"); mGo = go; }
public TitleItemUI(GameObject go) { mName = ObjectCommon.GetChildComponent <UILabel>(go, "name"); mGet = ObjectCommon.GetChildComponent <UISprite>(go, "getSp"); mBg = ObjectCommon.GetChildComponent <UISprite>(go, "selectSp");; mGo = go; }
public wingConditionUI(GameObject view) { mView = view; content1 = ObjectCommon.GetChildComponent <UILabel>(view, "content1"); biaoji1 = ObjectCommon.GetChildComponent <UISprite>(view, "biaoji1"); num1 = ObjectCommon.GetChildComponent <UISprite>(view, "num1"); }
void Awake() { labelSilver = ObjectCommon.GetChildComponent <Text>(gameObject, "top/label_sivler"); labelYb = ObjectCommon.GetChildComponent <Text>(gameObject, "top/label_yuanbao"); labelTili = ObjectCommon.GetChildComponent <Text>(gameObject, "top/label_tili"); labelJingli = ObjectCommon.GetChildComponent <Text>(gameObject, "top/label_jingli"); labelBattleScore = ObjectCommon.GetChildComponent <Text>(gameObject, "top/label_zhandouli_value"); }
public EggGoodsUI(GameObject go) { iconsp = ObjectCommon.GetChildComponent <UISprite>(go, "icon"); countlb = ObjectCommon.GetChildComponent <UILabel>(go, "count"); anisp = ObjectCommon.GetChildComponent <UISprite>(go, "ani"); mGo = go; }
public AwardWidgetUI(GameObject obj) { mObj = obj; backGround2 = ObjectCommon.GetChild(mObj, "background2"); mTween = ObjectCommon.GetChildComponent <UIPlayTween>(mObj, "Award"); DropGrid = ObjectCommon.GetChildComponent <UIGrid>(mObj, "Award/DropGrid"); UIEventListener.Get(backGround2).onClick = CloseUI; }
public FuncItemUI(GameObject obj) { gameobject = obj; label = ObjectCommon.GetChildComponent<UILabel>(obj, "Label"); seletedSprite = ObjectCommon.GetChildComponent<UISprite>(obj, "selected"); mBtn = obj.GetComponent<UIButton>(); EventDelegate.Add(mBtn.onClick, OnBtnClick); }
public T FindComponent <T>(string path) where T : Component { if (mView == null) { return(null); } return(ObjectCommon.GetChildComponent <T>(mView, path)); }
public TotalChargeGroupUI(GameObject go) { mGrid = ObjectCommon.GetChildComponent <UIGrid>(go, ""); mScrollBar = ObjectCommon.GetChildComponent <UIScrollBar>(go, ""); mScrollView = ObjectCommon.GetChildComponent <UIScrollView>(go, ""); mGo = go; }
public CityPanel(GameObject gameObj) { mObj = gameObj; mCondition = ObjectCommon.GetChildComponent <UILabel>(mObj, "condition"); mLock = ObjectCommon.GetChildComponent <UISprite>(mObj, "lock"); mTip = ObjectCommon.GetChildComponent <UISprite>(mObj, "tip"); mGuide = ObjectCommon.GetChildComponent <UISprite>(mObj, "guide"); mMapBtn = mObj.GetComponent <UIButton>(); }
public FightGradeUI(GameObject go) { valLb = ObjectCommon.GetChildComponent <UILabel>(go, "valObj/valLb"); ani = ObjectCommon.GetChild(go, "ani"); //valLb.transform.parent.transform.localPosition = new Vector3(0f, Screen.height * 0.6f, 0f); mGo = go; }
public AnnounceItem(GameObject go) { mObj = go; if (go != null) { mText = ObjectCommon.GetChildComponent <UILabel>(go, "mText"); mIcon = ObjectCommon.GetChildComponent <UISprite>(go, "mIcon"); } }
public BigItemUnit(GameObject gameObj) { mObj = gameObj; mDate = ObjectCommon.GetChildComponent <UISprite>(mObj, "Sprite/date"); mItemsGrid = ObjectCommon.GetChildComponent <UIGrid>(mObj, "ItemsScrollView/UIGrid"); mScrollView = ObjectCommon.GetChildComponent <UIScrollView>(mObj, "ItemsScrollView"); mClickBtn = ObjectCommon.GetChildComponent <UIButton>(mObj, "Button"); mlabel = ObjectCommon.GetChildComponent <UILabel>(mObj, "Label"); mTitle = ObjectCommon.GetChildComponent <UISprite>(mObj, "Title"); }
public ChaRankAwardUI(GameObject obj) { mGameObject = obj; mRankLabel = ObjectCommon.GetChildComponent <UILabel>(mGameObject, "RankLabel"); mRankIcon = ObjectCommon.GetChildComponent <UISprite>(mGameObject, "RankIcon"); mTip1 = ObjectCommon.GetChildComponent <UILabel>(mGameObject, "Tip1"); mTip2 = ObjectCommon.GetChildComponent <UILabel>(mGameObject, "TipTxt2"); mAwardGuid = ObjectCommon.GetChildComponent <UIGrid>(mGameObject, "AwardGrid"); Background = ObjectCommon.GetChild(mGameObject, "BackGround"); }
private void InitAnimator(GameObject player) { m_animator = ObjectCommon.GetChildComponent <Animator>(player, "player"); if (m_animator == null) { Debug.LogError("Animator cannot find!!"); } //todo:Load Controller m_curAnimType = EPlayerAnimType.Idle; }
public void Init() { mModule = ModuleManager.Instance.FindModule <QuestModule>(); mObject.SetActive(true); QBtn = mObject.GetComponent <UIButton>(); QIcon = ObjectCommon.GetChildComponent <UISprite>(mObject, "QIcon"); QName = ObjectCommon.GetChildComponent <UILabel>(mObject, "Label"); selectedSprite = ObjectCommon.GetChildComponent <UISprite>(mObject, "selected"); selectedSprite.gameObject.SetActive(false); EventDelegate.Add(QBtn.onClick, OnBtnClick); }
public UIQualifyingRole(GameObject obj) { mObj = obj; mInfoText = ObjectCommon.GetChildComponent <UILabel>(obj, "mRoleInfoPanel/mInfoText"); mBattleGradeText = ObjectCommon.GetChildComponent <UILabel>(obj, "mRoleInfoPanel/mBattleGradeText"); mRankingText = ObjectCommon.GetChildComponent <UILabel>(obj, "mRoleInfoPanel/mRankingText"); mRoleIcon = ObjectCommon.GetChildComponent <UISprite>(obj, "mRoleInfoPanel/mRoleIcon"); mBeginBtn = ObjectCommon.GetChildComponent <UIButton>(obj, "mBeginBtn"); }
public PlayerHeadUI(GameObject go) { mObj = go; if (go == null) { return; } nameLb = ObjectCommon.GetChild(go, "name").GetComponent <UILabel>(); titleSp = ObjectCommon.GetChildComponent <UISprite>(go, "titleSp"); }
public FashionItemUI(GameObject obj) { mBtn = obj.GetComponent <UIButton>(); bg = obj.GetComponent <UISprite>(); cloth = ObjectCommon.GetChildComponent <UISprite>(obj, "Icon"); name = ObjectCommon.GetChildComponent <UILabel>(obj, "name"); flag = ObjectCommon.GetChildComponent <UISprite>(obj, "flag"); flagTxt = ObjectCommon.GetChildComponent <UILabel>(obj, "flag/Label"); mLock = ObjectCommon.GetChildComponent <UISprite>(obj, "lock"); mObject = obj; EventDelegate.Add(mBtn.onClick, OnClick); }