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

C# UIInput类代码示例

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

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



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

示例1: MarketBuyView

 public MarketBuyView(Transform transform)
 {
     panel = transform.gameObject;
     name = transform.FindChild("name").GetComponent<UILabel>();
     total = transform.FindChild("total").GetComponent<UILabel>();
     num = transform.FindChild("num").GetComponent<UIInput>();
     minus = transform.FindChild("minus").GetComponent<MogoButton>();
     minusminus = transform.FindChild("minusminus").GetComponent<MogoButton>();
     plus = transform.FindChild("plus").GetComponent<MogoButton>();
     plusplus = transform.FindChild("plusplus").GetComponent<MogoButton>();
     close = transform.FindChild("close").GetComponent<MogoButton>();
     commit = transform.FindChild("commit").GetComponent<MogoButton>();
     UILabel c = transform.FindChild("close/Label").GetComponent<UILabel>();
     UILabel cm = transform.FindChild("commit/Label").GetComponent<UILabel>();
     c.text = Mogo.GameData.LanguageData.GetContent(716); // "取消";
     cm.text = Mogo.GameData.LanguageData.GetContent(717); // "确定";
     
     minus.clickHandler = Minus;
     minusminus.clickHandler = MinusMinus;
     plus.clickHandler = Plus;
     plusplus.clickHandler = PlusPlus;
     close.clickHandler = Close;
     commit.clickHandler = Commit;
     num.validator = Validator;
     num.onSubmit = OnInputSubmit;
 }
开发者ID:lbddk,项目名称:ahzs-client,代码行数:26,代码来源:MarketBuyView.cs


示例2: Awake

	public override void Awake()
	{
		base.Awake();
		
		_UiInputReceiver = gameObject.GetComponent<UIInput>();
		_UiLabelReceiver = gameObject.GetComponent<UILabel>();
	}
开发者ID:Niller,项目名称:CastleDefense,代码行数:7,代码来源:NguiTextBinding.cs


示例3: Start

    // Use this for initialization
    void Start()
    {
        user = GameObject.Find("UI Root/account").GetComponent<UIInput>();
        passwd = GameObject.Find("UI Root/passwd").GetComponent<UIInput>();
        tip = GameObject.Find("UI Root/lanuch/Tip_Label").GetComponent<UILabel>();

    }
开发者ID:baowencheng,项目名称:simplecs,代码行数:8,代码来源:LanuchGame.cs


示例4: Start

 void Start()
 {
     if (this.GetComponent<UIInput>())
     {
         uiInput = this.GetComponent<UIInput>();
     }
 }
开发者ID:hjupter,项目名称:CloudGoodsSDK,代码行数:7,代码来源:UIInputVisualValidation.cs


示例5: Awake

	public override void Awake()
	{
		base.Awake();
		_nvc.Awake(gameObject);
		_input = GetComponent<UIInput> ();
		_uiInputField = GetComponent<UnityEngine.UI.InputField>();
	}
开发者ID:StarkTT,项目名称:TestTask,代码行数:7,代码来源:NguiVisibilityBinding.cs


示例6: Awake

	void Awake(){
		_instance = this;
		headSprite = transform.Find ("HeadSprite").GetComponent<UISprite> ();
		levelLabel = transform.Find ("LevelLabel").GetComponent<UILabel> ();
		nameLabel = transform.Find ("NameLabel").GetComponent<UILabel> ();
		diamondLabel = transform.Find ("DiamondLabel/DiamondNumLabel").GetComponent<UILabel> ();
		coinLabel = transform.Find ("CoinLabel/CoinNumLabel").GetComponent<UILabel> ();

		tween = this.GetComponent<TweenPosition> ();
		closeButton = transform.Find ("CancelButton").GetComponent<UIButton> ();

		changeNameButton = transform.Find ("ChangeNameButton").GetComponent<UIButton> ();
		changeNameGo = transform.Find ("ChangeNameBg").gameObject;
		nameInput = transform.Find ("ChangeNameBg/NameInput").GetComponent<UIInput> ();
		sureButton = transform.Find ("ChangeNameBg/SureButton").GetComponent<UIButton> ();
		cancelButton = transform.Find ("ChangeNameBg/CancelButton").GetComponent<UIButton> ();
		changeNameGo.SetActive (false);

		EventDelegate ed = new EventDelegate(this,"OnButtonCloseClick");
		closeButton.onClick.Add (ed);

		EventDelegate ed2 = new EventDelegate (this, "OnButtonChangeNameClick");
		changeNameButton.onClick.Add (ed2);

		EventDelegate ed3 = new EventDelegate (this, "OnButtonSureClick");
		sureButton.onClick.Add (ed3);

		EventDelegate ed4 = new EventDelegate (this, "OnButtonCancelClick");
		cancelButton.onClick.Add (ed4);


		PlayerInfo._instance.OnPlayerInfoChanged += this.OnPlayerInfoChanged;
	}
开发者ID:ziyihu,项目名称:LordOfSinU3D,代码行数:33,代码来源:PlayerStatus.cs


示例7: FindItem

	public void FindItem() {
		labelText = transform.Find("name").GetComponent<UILabel>();
		select = transform.Find("xuanzhong").gameObject;
		addStatue = transform.Find("addstatue").gameObject;
		sendGroup = transform.Find("send_group").gameObject;
		inputSend = sendGroup.GetComponent<UIInput>();
	}
开发者ID:musicseli,项目名称:emoji,代码行数:7,代码来源:ChatCommonTalkItem.cs


示例8: InitGame

 void InitGame()
 {
     mName = skinTransform.Find("name").GetComponent<UILabel>();
     mInputNum = skinTransform.Find("inputNum").GetComponent<UIInput>();
     mInputNum.value = mNowSelectNums.ToString();
     mInputNum.onChange.Add(new EventDelegate(ChangeInput));
 }
开发者ID:gdmec07131032,项目名称:zhugongkaipai,代码行数:7,代码来源:PanelShop.cs


示例9: OnChange

		public void OnChange (UIInput input) {
			string text = "";
			for (int i=0; i<=input.value.Length; i++) {
				text += "  ";
			}
			text += postfix;
			postfixLabel.text = text;
		}
开发者ID:huwz2015,项目名称:cloud3dview_cloudshare,代码行数:8,代码来源:InputPostfixer.cs


示例10: Awake

	// Use this for initialization
	void Awake() {
		_instance = this;
		tween = this.GetComponent<TweenPosition> ();
		NumDialog = this.transform.Find ("NumDilag").gameObject;

		inputxu=transform.Find("NumDilag/NumInput").GetComponent<UIInput>();
		NumDialog.SetActive (false);
	}
开发者ID:baihualinzi,项目名称:DarkLIght,代码行数:9,代码来源:ShopDrug.cs


示例11: OnInit

    public override void OnInit()
    {
        base.OnInit();

        m_InputName = FindChildComponent<UIInput>("Input_NickName");

        AddChildElementClickEvent(OnClickCreate, "UIButton_Create");
    }
开发者ID:Blizzardx,项目名称:ClientFrameWork,代码行数:8,代码来源:UIWindowCreateChar.cs


示例12: Start

	void Start()
	{
        // 获得各种控件
        lbAccount = transform.FindChild("lbAccount").GetComponent<UIInput>();
        lbPassword = transform.FindChild("lbPassword").GetComponent<UIInput>();
        btnLogin = transform.FindChild("btnLogin").GetComponent<UIButton>();
        EventDelegate.Add(btnLogin.onClick, OnClickLogin);
	}
开发者ID:sundoom,项目名称:nova,代码行数:8,代码来源:PanelLogin.cs


示例13: OnEngineSlotXInput

 void OnEngineSlotXInput(UIInput sender)
 {
     float result = 0;
     if (CheckFloatInput (sender, ref result)) {
         currentShip.engineSlots [int.Parse (poplst_engineSlots.selection)] = new Vector2 (
             result,
             currentShip.engineSlots [int.Parse (poplst_engineSlots.selection)].y);
     }
 }
开发者ID:mrimsh,项目名称:SpaceTrial,代码行数:9,代码来源:ShipEditor.cs


示例14: Awake

 void Awake ()
 {
     Object.DontDestroyOnLoad (GameObject.Find ("PC Packet"));
     PC = GameObject.Find ("PC Packet").GetComponent<Character> ();
     UI = GetComponent<UIController> ();
     ClassSelectList = GameObject.Find ("Class Select: List")
         .GetComponent<UIPopupList> ();
     NameInput = GameObject.Find ("Name: Input")
         .GetComponent<UIInput> ();
 }
开发者ID:Reppy-Why,项目名称:TODO,代码行数:10,代码来源:CharacterCreateController.cs


示例15: Start

	void Start () {
		if (!GameManager.Instance.GameLogin) {
			SceneManager.LoadScene (0, LoadSceneMode.Single);
			return;
		}
		GameData.SetBtn (this.transform, "BtnOk", "Press", this);
		m_ipNickName = this.transform.FindChild ("Input").GetComponent<UIInput> ();
		UILabel tGuide = this.transform.FindChild ("tGuide").GetComponent<UILabel> ();
		tGuide.text = "닉네임은 2~10글자 까지 영문과 숫자만 가능합니다.";
	}
开发者ID:ssmktr,项目名称:SeaEscape,代码行数:10,代码来源:NickNameManagerScript.cs


示例16: OnSubmitAsObservable

 public IObservable<string> OnSubmitAsObservable(UIInput input)
 {
     this.input = input;
     if(input != null) {
         input.onSubmit.Add(new EventDelegate(Submit));
         return onSubmit ?? (onSubmit = new Subject<string>());
     } else {
         return Observable.Empty<string>();
     }
 }
开发者ID:mavriel,项目名称:UniRxForNGUI,代码行数:10,代码来源:ObservableUIInputTrigger.cs


示例17: OnChangeAsObservable

 public IObservable<string> OnChangeAsObservable(UIInput input)
 {
     this.input = input;
     if(input != null) {
         input.onChange.Add(new EventDelegate(Change));
         return onChange ?? (onChange = new Subject<string>());
     } else {
         return Observable.Empty<string>();
     }
 }
开发者ID:mavriel,项目名称:UniRxForNGUI,代码行数:10,代码来源:ObservableUIInputTrigger.cs


示例18: OnInit

    public override void OnInit()
    {
        base.OnInit();

        m_InputUserName = FindChildComponent<UIInput>("Input_UserName");
        m_InputPassword = FindChildComponent<UIInput>("Input_Password");

        AddChildElementClickEvent(OnClickLogin, "UIButton_Login");
        AddChildElementClickEvent(OnClickRegister, "UIButton_Register");
    }
开发者ID:Blizzardx,项目名称:ClientFrameWork,代码行数:10,代码来源:UIWindowLogin.cs


示例19: CreateObjects

 private void CreateObjects()
 {
     Transform transform = base.transform.Find("winBG");
     GameObject gameObject = transform.Find("titleBg/CloseBtn").gameObject;
     UIEventListener expr_28 = UIEventListener.Get(gameObject);
     expr_28.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_28.onClick, new UIEventListener.VoidDelegate(this.OnCloseClick));
     Transform transform2 = transform.Find("panel");
     gameObject = transform2.Find("codeBtn").gameObject;
     UIEventListener expr_6C = UIEventListener.Get(gameObject);
     expr_6C.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_6C.onClick, new UIEventListener.VoidDelegate(this.OnCodeBtnClick));
     gameObject = transform2.Find("bindBtn").gameObject;
     UIEventListener expr_A4 = UIEventListener.Get(gameObject);
     expr_A4.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_A4.onClick, new UIEventListener.VoidDelegate(this.OnBindBtnClick));
     this.inputCode = transform2.Find("codeInput").GetComponent<UIInput>();
     this.inputCode.defaultText = Singleton<StringManager>.Instance.GetString("phoneBindTxt1");
     this.inputCode.characterLimit = 11;
     this.inputCode.validation = UIInput.Validation.Integer;
     this.inputCode.keyboardType = UIInput.KeyboardType.NumberPad;
     this.inputBind = transform2.Find("bindInput").GetComponent<UIInput>();
     this.inputBind.defaultText = Singleton<StringManager>.Instance.GetString("phoneBindTxt2");
     this.inputBind.characterLimit = 4;
     this.inputBind.validation = UIInput.Validation.Integer;
     this.inputBind.keyboardType = UIInput.KeyboardType.NumberPad;
     MiscInfo info = Globals.Instance.AttDB.MiscDict.GetInfo(16);
     int num = 0;
     int num2 = 0;
     while (num < info.Day7RewardType.Count && num < 3)
     {
         if (info.Day7RewardType[num] != 0 && info.Day7RewardType[num] != 20)
         {
             int num3 = info.Day7RewardType[num];
             int num4 = info.Day7RewardValue1[num];
             int num5 = info.Day7RewardValue2[num];
             Transform parent = transform.Find(string.Format("RewardItem{0}", num));
             if (num3 == 3)
             {
                 this.itemInfo = Globals.Instance.AttDB.ItemDict.GetInfo(num4);
                 GameObject go = GameUITools.CreateReward(num3, num4, num5, parent, true, false, 0f, 0f, 0f, 255f, 255f, 255f, 0);
                 UIEventListener expr_25C = UIEventListener.Get(go);
                 expr_25C.onPress = (UIEventListener.BoolDelegate)Delegate.Combine(expr_25C.onPress, new UIEventListener.BoolDelegate(this.OnRewardPress));
             }
             else
             {
                 GameUITools.CreateReward(num3, num4, num5, parent, true, true, 0f, 0f, 0f, 255f, 255f, 255f, 0);
             }
             this.rewardType[num2] = num3;
             this.rewardValue1[num2] = num4;
             this.rewardValue2[num2] = num5;
             num2++;
         }
         num++;
     }
     Globals.Instance.CliSession.Register(395, new ClientSession.MsgHandler(this.OnMsgRequestSMSCode));
     Globals.Instance.CliSession.Register(397, new ClientSession.MsgHandler(this.OnMsgVerifySMSCode));
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:55,代码来源:GameUIPhoneBindPopUp.cs


示例20: Awake

	void Awake () {

        mInput = GetComponent<UIInput>();
		if (mInput != null)
		{
			EventDelegate.Add(mInput.onSubmit, OnSubmit);
			EventDelegate.Add(mInput.onChange, OnChange);
		}

		UIToggle Toggle = GetComponent<UIToggle>();
		if (Toggle != null)
		{
			EventDelegate.Add(Toggle.onChange, OnToggle);
		}

		UIToggleEx ToggleEx = GetComponent<UIToggleEx>();
		if (ToggleEx != null)
		{
			EventDelegate.Add(ToggleEx.onChange, OnToggleEx);
		}

		UIProgressBar ProgressBar = GetComponent<UIProgressBar>();
		if (ProgressBar != null)
		{
			EventDelegate.Add(ProgressBar.onChange, OnProgressBar);
		}

		UIPopupList PopupList = GetComponent<UIPopupList>();
		if (PopupList != null)
		{
			EventDelegate.Add(PopupList.onChange, OnPopupList);
		}

		SpringPanel SpringPanel = GetComponent<SpringPanel>();
		if (SpringPanel != null)
		{
			SpringPanel.onFinishedEx = OnSpringPanel;
		}

		UITweener oneTweener = GetComponent<UITweener>();
		if (oneTweener != null)
		{
			UITweener[] tweenerArr = GetComponents<UITweener>();
			foreach (var tweener in tweenerArr)
			{
				EventDelegate.Add(tweener.onFinished, OnTweenerFinish);
			}
		}

		UIPlayTween playTweener = GetComponent<UIPlayTween>();
		if (playTweener != null)
		{
			EventDelegate.Add(playTweener.onFinished, OnPlayTweenFinish);
		}
	}
开发者ID:fengqk,项目名称:Art,代码行数:55,代码来源:GUIKeyInputDeliver.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# UIInterfaceOrientation类代码示例发布时间:2022-05-24
下一篇:
C# UIImageView类代码示例发布时间: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