当前位置: 首页>>代码示例>>C#>>正文


C# UIInput类代码示例

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


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


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