Beispiel #1
0
    public override void OnInit()
    {
        this.content = this.GetLayoutComponent <UIWindowExampleComponent>();
        this.button  = this.GetLayoutComponent <ButtonComponent>();

        this.button.SetCallback(this.Hide);
    }
	public override void OnInit() {
		
		this.content = this.GetLayoutComponent<UIWindowExampleComponent>();
		this.button = this.GetLayoutComponent<ButtonComponent>();

		this.button.SetCallback(() => this.Hide());
		
		this.content.SetText(this.text);

	}
Beispiel #3
0
    public override void OnInit()
    {
        this.contentComponent = this.GetLayoutComponent <UIWindowExampleComponent>();

        this.buttonAlert = this.GetLayoutComponent <ButtonComponent>(LayoutTag.Tag4);
        this.buttonAlert.SetCallback(this.OnAlert);

        this.button = this.GetLayoutComponent <ButtonWithTipComponent>();
        this.button.SetCallback(this.OnClick);

        this.button.SetTextToTip("<b>Click here to open new instance.</b>\nYou can simply edit this text or pass it from the code. See UIWindowExampleTip and UIWindowExampleScreen.");
    }
    public override void OnInit()
    {
        this.contentComponent = this.GetLayoutComponent <UIWindowExampleComponent>();

        this.buttonAlert = this.GetLayoutComponent <ButtonComponent>(LayoutTag.Tag4);
        this.buttonAlert.SetCallback(this.OnAlert);

        this.button = this.GetLayoutComponent <ButtonWithTipComponent>();
        this.button.SetCallback(this.OnClick);

        this.button.SetTextToTip("<b>Click here to open new instance.</b>\nYou can simply edit this text or pass it from the code. See UIWindowExampleTip and UIWindowExampleScreen.");

        if (this.closeOnButtonPress == true)
        {
            this.contentComponent.SetText("This is the second instance of UIWindowExampleScreen. Look for this behaviour in UIWindowExampleScreen->OnInit() method.");
            this.button.SetTextToTip("<b>Click here to close current instance.</b>\nYou can simply edit this text or pass it from the code. See UIWindowExampleTip and UIWindowExampleScreen.");
        }
    }
	public override void OnInit() {

		this.contentComponent = this.GetLayoutComponent<UIWindowExampleComponent>();

		this.buttonAlert = this.GetLayoutComponent<ButtonComponent>(LayoutTag.Tag4);
		this.buttonAlert.SetCallback(this.OnAlert);

		this.button = this.GetLayoutComponent<ButtonWithTipComponent>();
		this.button.SetCallback(this.OnClick);

		this.button.SetTextToTip("<b>Click here to open new instance.</b>\nYou can simply edit this text or pass it from the code. See UIWindowExampleTip and UIWindowExampleScreen.");
		
		if (this.closeOnButtonPress == true) {
			
			this.contentComponent.SetText("This is the second instance of UIWindowExampleScreen. Look for this behaviour in UIWindowExampleScreen->OnInit() method.");
			this.button.SetTextToTip("<b>Click here to close current instance.</b>\nYou can simply edit this text or pass it from the code. See UIWindowExampleTip and UIWindowExampleScreen.");
			
		}

	}