コード例 #1
0
        public void ShowShopDialog(ButtonClickEvent e, PurchaseButtonNode node, [JoinAll] SingleNode <Dialogs60Component> dialogs)
        {
            ShopDialogs dialogs2 = dialogs.component.Get <ShopDialogs>();

            node.purchaseDialog.shopDialogs = dialogs2;
            node.purchaseDialog.ShowDialog(node.purchaseButton.GoodsEntity);
        }
コード例 #2
0
 public void Show(Entity item, ICollection <Entity> methods, bool xCryPack, string itemDesc = "")
 {
     instance     = this;
     this.item    = item;
     this.methods = methods.ToList <Entity>();
     if (item.HasComponent <SpecialOfferComponent>())
     {
         if (< > f__am$cache0 == null)
         {
コード例 #3
0
ファイル: PlatboxWindow.cs プロジェクト: radiomonter/Tanki_X
 public void Show(Entity item, Entity method, Action onBack, Action onForward)
 {
     this.phone.text = string.Empty;
     this.phone.Select();
     MainScreenComponent.Instance.OverrideOnBack(new Action(this.Cancel));
     this.onBack = onBack;
     this.onForward = onForward;
     base.gameObject.SetActive(true);
     this.info.text = ShopDialogs.FormatItem(item, method);
 }
コード例 #4
0
 public void Show(Entity item, Action onBack, Action onForward)
 {
     MainScreenComponent.Instance.OverrideOnBack(new Action(this.Cancel));
     this.onBack    = onBack;
     this.onForward = onForward;
     base.gameObject.SetActive(true);
     this.info.text    = ShopDialogs.FormatItem(item, null);
     this.warning.text = string.Empty;
     Entity[] entities = new Entity[] { SelfUserComponent.SelfUser, item };
     ECSBehaviour.EngineService.Engine.NewEvent <CalculateCompensationRequestEvent>().AttachAll(entities).Schedule();
 }
コード例 #5
0
 public void Show(Entity item, Entity method, Action onHide)
 {
     this.onHide = onHide;
     base.gameObject.SetActive(true);
     this.info.text = ShopDialogs.FormatItem(item, method);
 }
コード例 #6
0
 private void Awake()
 {
     instance = this;
 }
コード例 #7
0
 public void ShowPurchaseDialog(ShopDialogs shopDialogs, Entity entity, bool xCry = false)
 {
     this.shopDialogs = shopDialogs;
     this.OnPackClick(entity, xCry);
 }