• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# UITable类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中UITable的典型用法代码示例。如果您正苦于以下问题:C# UITable类的具体用法?C# UITable怎么用?C# UITable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



UITable类属于命名空间,在下文中一共展示了UITable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Init

 public void Init()
 {
     this.ResetTimer = base.transform.Find("time1").GetComponent<UILabel>();
     Transform transform = base.transform.Find("RewardBK");
     this.Title = transform.transform.Find("Title").GetComponent<UILabel>();
     this.Reward = transform.transform.Find("Reward");
     this.Price = transform.transform.Find("Price").GetComponent<UILabel>();
     this.OffPrice = transform.transform.Find("OffPrice").GetComponent<UILabel>();
     this.BuyVIPLevel = transform.transform.Find("BuyVIPLevel").GetComponent<UILabel>();
     this.CurVipLevel = transform.transform.Find("CurVipLevel").GetComponent<UILabel>();
     this.ToBuy = transform.transform.Find("GoBtn");
     this.Buyed = transform.transform.Find("Buy");
     UIEventListener expr_105 = UIEventListener.Get(this.ToBuy.gameObject);
     expr_105.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_105.onClick, new UIEventListener.VoidDelegate(this.OnBuyVipWeekReward));
     this.rewardScrollView = base.transform.Find("rewardPanel").GetComponent<UIScrollView>();
     this.rewardTable = this.rewardScrollView.transform.Find("rewardContents").GetComponent<UITable>();
     for (int i = 0; i <= 15; i++)
     {
         this.VIPLevel[i] = this.rewardTable.transform.Find(string.Format("{0:D2}", i)).GetComponent<UISprite>();
         UIEventListener expr_1A7 = UIEventListener.Get(this.VIPLevel[i].gameObject);
         expr_1A7.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_1A7.onClick, new UIEventListener.VoidDelegate(this.OnVIPLevelClicked));
     }
     this.mTabBtnScrollBar = base.transform.Find("scrollBar").GetComponent<UIScrollBar>();
     EventDelegate.Add(this.mTabBtnScrollBar.onChange, new EventDelegate.Callback(this.OnScrollBarValueChange));
     this.leftBtn = base.transform.Find("LeftBtn").gameObject;
     this.rightBtn = base.transform.Find("RightBtn").gameObject;
     UIEventListener expr_24D = UIEventListener.Get(this.leftBtn);
     expr_24D.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_24D.onClick, new UIEventListener.VoidDelegate(this.OnLeftBtnClicked));
     UIEventListener expr_279 = UIEventListener.Get(this.rightBtn);
     expr_279.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_279.onClick, new UIEventListener.VoidDelegate(this.OnRightBtnClicked));
     this.RefreshCurLevelToggle();
     this.RefreshCurLevelInfo();
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:33,代码来源:GUIVIPWeekRewardInfo.cs


示例2: OnUpdate

	override protected void OnUpdate (float factor, bool isFinished)
	{
        Vector3 result = from * (1f - factor) + to * factor;

        if (result.x < 0.00001f && result.x > -0.00001f)
        {
            result = new Vector3(0.001f, result.y, result.z);
            Mogo.Util.LoggerHelper.Debug("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ MaiFeo Debug when divid zero");
        }

        if (result.y < 0.00001f && result.y > -0.00001f)
        {
            result = new Vector3(result.x, 0.001f, result.z);
            Mogo.Util.LoggerHelper.Debug("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ MaiFeo Debug when divid zero");
        }

        if (result.z < 0.00001f && result.z > -0.00001f)
        {
            result = new Vector3(result.x, result.y, 0.001f);
            Mogo.Util.LoggerHelper.Debug("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ MaiFeo Debug when divid zero");
        }


        cachedTransform.localScale = result;

		if (updateTable)
		{
			if (mTable == null)
			{
				mTable = NGUITools.FindInParents<UITable>(gameObject);
				if (mTable == null) { updateTable = false; return; }
			}
			mTable.repositionNow = true;
		}
	}
开发者ID:lbddk,项目名称:ahzs-client,代码行数:35,代码来源:TweenScale.cs


示例3: Awake

 private void Awake()
 {
     this.rechargeScrollView = base.transform.FindChild("contentsPanel").GetComponent<UIScrollView>();
     this.rechargeTable = this.rechargeScrollView.transform.FindChild("infoContents").gameObject.AddComponent<UITable>();
     this.rechargeTable.columns = 3;
     this.rechargeTable.direction = UITable.Direction.Down;
     this.rechargeTable.sorting = UITable.Sorting.None;
     this.rechargeTable.hideInactive = true;
     this.rechargeTable.keepWithinPanel = true;
     this.rechargeTable.padding = new Vector2(6f, 0f);
     int privilege = Globals.Instance.CliSession.Privilege;
     foreach (PayInfo current in Globals.Instance.AttDB.PayDict.Values)
     {
         if (!current.Test || privilege > 0)
         {
             if (current.Type == 0)
             {
                 UIRechargeItem uIRechargeItem = UIRechargeItem.CreateItem(this.rechargeTable.transform, this.rechargeScrollView);
                 uIRechargeItem.Init(current);
             }
             else
             {
                 UIMonthCard uIMonthCard = UIMonthCard.CreateItem(this.rechargeTable.transform, this.rechargeScrollView);
                 uIMonthCard.Init(current);
             }
         }
     }
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:28,代码来源:UIRechargePage.cs


示例4: Awake

 public override void Awake()
 {
     base.Awake();
     _uiTable = GetComponent<UITable>();
     _uiGrid = GetComponent<UIGrid>();
     _itemTemplate = gameObject.GetComponent<NguiListItemTemplate>();
 }
开发者ID:NateFromSpace,项目名称:Sandbox,代码行数:7,代码来源:NguiItemsSourceBinding.cs


示例5: Awake

 protected override void Awake() {
     base.Awake();
     Arguments.ValidateNotNull(rowPrefab);
     _table = gameObject.GetSafeFirstMonoBehaviourInChildren<UITable>();
     _table.sorting = UITable.Sorting.Custom;
     _cmdLookup = new Dictionary<GameObject, IFleetCmdItem>();
 }
开发者ID:Maxii,项目名称:CodeEnv.Master,代码行数:7,代码来源:FleetsScreenManager.cs


示例6: CreateObjects

 private void CreateObjects()
 {
     this.btnTab = base.transform.Find("tab").GetComponent<UIToggle>();
     EventDelegate.Add(this.btnTab.onChange, new EventDelegate.Callback(this.OnTabCheckChanged));
     this.txtTab = this.btnTab.transform.Find("tabTxt").GetComponent<UILabel>();
     this.txtTab2 = this.btnTab.transform.Find("tabCheck/tabTxt").GetComponent<UILabel>();
     Transform transform = base.transform.Find("tabPanel");
     this.topBtn = GameUITools.RegisterClickEvent("TopBtn", new UIEventListener.VoidDelegate(this.OnTopBtnClick), transform.gameObject);
     this.topBtn.SetActive(false);
     this.bottomBtn = GameUITools.RegisterClickEvent("BottomBtn", new UIEventListener.VoidDelegate(this.OnBottomBtnClick), transform.gameObject);
     this.bottomBtn.SetActive(false);
     this.btnsTable = transform.Find("tabBtnsPanel/tabBtns").GetComponent<UITable>();
     this.scrollBar = transform.Find("scrollBar").GetComponent<UIScrollBar>();
     EventDelegate.Add(this.scrollBar.onChange, new EventDelegate.Callback(this.OnScrollBarValueChange));
     this.txtTab.text = this.initData.strName;
     this.txtTab2.text = this.initData.strName;
     if (this.initData.strName.Length > 2)
     {
         this.txtTab.spacingX = 5;
         this.txtTab2.spacingX = 5;
     }
     this.infoTable = transform.Find("bg/infoPanel/infoContents").GetComponent<UITable>();
     this.infoTitle = this.infoTable.transform.Find("Label0").GetComponent<UILabel>();
     this.infoTitle.spaceIsNewLine = false;
     this.infoContent = this.infoTable.transform.Find("Label1").GetComponent<UILabel>();
     this.infoContent.spaceIsNewLine = false;
     UIEventListener expr_206 = UIEventListener.Get(this.infoContent.gameObject);
     expr_206.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_206.onClick, new UIEventListener.VoidDelegate(this.OnInfoContentClick));
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:29,代码来源:FairyTaleTabItem.cs


示例7: Awake

 protected override void Awake() {
     base.Awake();
     Arguments.ValidateNotNull(rowPrefab);
     _table = gameObject.GetSafeFirstMonoBehaviourInChildren<UITable>();
     _table.sorting = UITable.Sorting.Custom;
     _systemLookup = new Dictionary<GameObject, ISystemItem>();
     _doneButtonGo = gameObject.GetComponentInChildren<InputModeControlButton>().gameObject;
 }
开发者ID:Maxii,项目名称:CodeEnv.Master,代码行数:8,代码来源:SystemsScreenManager.cs


示例8: CreateObjects

 private void CreateObjects()
 {
     Transform transform = base.transform.Find("commonArea");
     this.mCommonTable = transform.Find("commonLayer/commonContents").GetComponent<UITable>();
     this.mGUICommonItem = this.mCommonTable.transform.Find("commonLabelContents").gameObject.AddComponent<GUICommonItem>();
     this.mGUICommonItem.gameObject.SetActive(false);
     UIEventListener expr_68 = UIEventListener.Get(transform.gameObject);
     expr_68.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_68.onClick, new UIEventListener.VoidDelegate(this.OnBgClick));
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:9,代码来源:GUICommonLayer.cs


示例9: Init

 public void Init()
 {
     GameUITools.RegisterClickEvent("FadeBG", new UIEventListener.VoidDelegate(this.OnCloseClick), base.gameObject);
     this.mWinBG = GameUITools.FindGameObject("winBG", base.gameObject);
     this.mCloseBtn = GameUITools.RegisterClickEvent("closeBtn", new UIEventListener.VoidDelegate(this.OnCloseClick), this.mWinBG);
     this.mFinishBtn = GameUITools.RegisterClickEvent("finishBtn", new UIEventListener.VoidDelegate(this.OnFinishClick), this.mWinBG);
     this.mPanel = GameUITools.FindGameObject("panel", this.mWinBG).GetComponent<UIPanel>();
     this.mTable = GameUITools.FindGameObject("contents", this.mPanel.gameObject).GetComponent<UITable>();
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:9,代码来源:GUIPVP4FarmPopUp.cs


示例10: CreateObjects

 private void CreateObjects()
 {
     this.mBG = GameUITools.FindGameObject("BG", base.gameObject);
     GameUITools.RegisterClickEvent("CloseBtn", new UIEventListener.VoidDelegate(this.OnCloseClick), this.mBG);
     this.mContents = GameUITools.FindGameObject("GetRewardItems/Panel/Contents", this.mBG).GetComponent<UITable>();
     GameUITools.RegisterClickEvent("StartBtn", new UIEventListener.VoidDelegate(this.OnStartBtnClick), this.mBG);
     this.mTimeBtns.Add(GameUITools.FindGameObject("0", this.mBG).AddComponent<GUICostumePartyStartPopUp.TimeBtn>().Init(0, new GUICostumePartyStartPopUp.TimeBtn.ChangeCallBack(this.RefreshItem)));
     this.mTimeBtns.Add(GameUITools.FindGameObject("1", this.mBG).AddComponent<GUICostumePartyStartPopUp.TimeBtn>().Init(1, new GUICostumePartyStartPopUp.TimeBtn.ChangeCallBack(this.RefreshItem)));
     this.mTimeBtns.Add(GameUITools.FindGameObject("2", this.mBG).AddComponent<GUICostumePartyStartPopUp.TimeBtn>().Init(2, new GUICostumePartyStartPopUp.TimeBtn.ChangeCallBack(this.RefreshItem)));
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:10,代码来源:GUICostumePartyStartPopUp.cs


示例11: Create

 public static LobbyRowType2 Create(DataLobby data, UITable parent)
 {
     GameObject go = GameObject.Instantiate(Resources.Load("Prefabs/Lobby/LobbyRowType2")) as GameObject;
     go.transform.parent = parent.transform;
     go.transform.localPosition = Vector3.zero;
     go.transform.localScale = Vector3.one;
     go.name = data.roomId + " - " + data.roomName;
     LobbyRowType2 item = go.GetComponent<LobbyRowType2>();
     item.StartCoroutine(item.setData(data));
     return item;
 }
开发者ID:npnf-seta,项目名称:Fox-Poker,代码行数:11,代码来源:LobbyRowType2.cs


示例12: Awake

 public override void Awake()
 {
     base.Awake();
     _groupNumber = Random.Range(1, 10000);
     if (_usedGroupNumbers.Contains(_groupNumber))
         _groupNumber++;
     _usedGroupNumbers.Add(_groupNumber);
     _uiTable = GetComponent<UITable>();
     _uiGrid = GetComponent<UIGrid>();
     _itemTemplate = gameObject.GetComponent<NguiListItemTemplate>();
     scrollRect = transform.parent.GetComponent<ScrollRect>();
 }
开发者ID:StarkTT,项目名称:TestTask,代码行数:12,代码来源:NguiItemsSourceBinding.cs


示例13: Create

 public static LobbyRowType1 Create(DataLobby data, UITable parent, Action<DataLobby> callBack)
 {
     GameObject go = GameObject.Instantiate(Resources.Load("Prefabs/Lobby/LobbyRowType1")) as GameObject;
     go.transform.parent = parent.transform;
     go.transform.localPosition = Vector3.zero;
     go.transform.localScale = Vector3.one;
     go.GetComponent<UIDragScrollView>().scrollView = parent.GetComponentInParent<UIScrollView>();
     go.name = "#" + data.roomId;
     LobbyRowType1 item = go.GetComponent<LobbyRowType1>();
     item.setData(data);
     item.action = callBack;
     return item;
 }
开发者ID:npnf-seta,项目名称:Fox-Poker,代码行数:13,代码来源:LobbyRowType1.cs


示例14: OnUpdate

	protected override void OnUpdate (float factor, bool isFinished)
	{
		cachedTransform.localScale = from * (1f - factor) + to * factor;

		if (updateTable)
		{
			if (mTable == null)
			{
				mTable = NGUITools.FindInParents<UITable>(gameObject);
				if (mTable == null) { updateTable = false; return; }
			}
			mTable.repositionNow = true;
		}
	}
开发者ID:frizac-b,项目名称:gladiawar,代码行数:14,代码来源:TweenScale.cs


示例15: DestroyRows

	public void DestroyRows()
	{
		if(tableEvidencias == null)
			tableEvidencias = GetComponent<UITable>();

		foreach (var item in tableEvidencias.GetChildList()) {
			Destroy (item.gameObject);
		}

		if(evidencias != null)
			evidencias.Clear();
		else
			Debug.Log("null evidencias");
	}
开发者ID:rodsordi,项目名称:CheckSpace,代码行数:14,代码来源:EvidenciasFotograficas.cs


示例16: OnUpdate

	/// <summary>
	/// Tween the value.
	/// </summary>

	protected override void OnUpdate (float factor, bool isFinished)
	{
		value = Mathf.RoundToInt(from * (1f - factor) + to * factor);

		if (updateTable)
		{
			if (mTable == null)
			{
				mTable = NGUITools.FindInParents<UITable>(gameObject);
				if (mTable == null) { updateTable = false; return; }
			}
			mTable.repositionNow = true;
		}
	}
开发者ID:mr-kelly,项目名称:ProjectWeak,代码行数:18,代码来源:TweenHeight.cs


示例17: Awake

    public override void Awake()
    {
        base.Awake();
        if(!prefabCell){
            prefabCell=getChildren(table.transform)[0];
            // prefabCell.parent=null;
            poolAdd(prefabCell);

            foreach(Transform e in table.transform){
                Destroy(e.gameObject);
            }
        }
        if(!table)table=GetComponent<UITable>();
    }
开发者ID:QuenZhan,项目名称:TrnthUnityUtlityUiKit,代码行数:14,代码来源:TrnthUiTableViewController.cs


示例18: CreateObjects

 private void CreateObjects()
 {
     this.mRightInfoTable = base.transform.Find("contents").gameObject.AddComponent<UITable>();
     this.mRightInfoTable.columns = 1;
     this.mRightInfoTable.direction = UITable.Direction.Down;
     this.mRightInfoTable.sorting = UITable.Sorting.Alphabetic;
     this.mRightInfoTable.hideInactive = true;
     this.mRightInfoTable.keepWithinPanel = true;
     this.mRightInfoTable.padding = new Vector2(0f, 2f);
     this.mValues = GameUITools.FindGameObject("a", this.mRightInfoTable.gameObject).AddComponent<GUIAttributeValue>();
     this.mSkills = GameUITools.FindGameObject("b", this.mRightInfoTable.gameObject).AddComponent<LopetInfoSkillLayer>();
     this.mSkills.Init();
     this.mLopetDescSp = this.mRightInfoTable.transform.Find("e").GetComponent<UISprite>();
     this.mDesc = GameUITools.FindUILabel("desc", this.mLopetDescSp.gameObject);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:15,代码来源:GUILopetTrainBaseInfo.cs


示例19: CreateObjects

 private void CreateObjects()
 {
     GameObject gameObject = base.transform.Find("winBG").gameObject;
     GameObject gameObject2 = gameObject.transform.Find("closeBtn").gameObject;
     UIEventListener expr_32 = UIEventListener.Get(gameObject2);
     expr_32.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_32.onClick, new UIEventListener.VoidDelegate(this.OnCloseClick));
     this.mContentsTable = gameObject.transform.Find("contentsBg/contentsPanel/contents").GetComponent<UITable>();
     this.mContentsTable.sorting = UITable.Sorting.None;
     this.mC1 = this.mContentsTable.transform.Find("c1").GetComponent<UILabel>();
     for (int i = 0; i < this.mRewardItems.Length; i++)
     {
         this.mRewardItems[i] = this.mContentsTable.transform.Find(string.Format("ruleInfoLine{0}", i)).gameObject.AddComponent<GUIWBRuleInfoRewardItem>();
         this.mRewardItems[i].InitWithBaseScene();
     }
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:15,代码来源:GUIWBRuleInfoPopUp.cs


示例20: Create

	public static LobbyTab Create(DataChannel data,UITable parent,int index){
		GameObject gobj = null;
		if (index != 0)
			gobj = GameObject.Instantiate (Resources.Load ("Prefabs/Lobby/LobbyTabCenter")) as GameObject;
		else {
			gobj = GameObject.Instantiate (Resources.Load ("Prefabs/Lobby/LobbyTabLeft")) as GameObject;
		}
        gobj.name = data.zoneId + "-" + data.name;
		gobj.transform.parent = parent.transform;
		gobj.transform.localPosition = Vector3.zero;
		gobj.transform.localScale = Vector3.one;
		LobbyTab item = gobj.GetComponent<LobbyTab> ();
		item.SetData (data,index);
		return item;

	}
开发者ID:npnf-seta,项目名称:Fox-Poker,代码行数:16,代码来源:LobbyTab.cs



注:本文中的UITable类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# UITableView类代码示例发布时间:2022-05-24
下一篇:
C# UISwitch类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap