Beispiel #1
0
        // Token: 0x0600A517 RID: 42263 RVA: 0x002E7320 File Offset: 0x002E5520
        private ArenaActionOrderButton CreateActionOrderButton(BattleHero hero, Transform parent)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateActionOrderButtonBattleHeroTransform_hotfix != null)
            {
                return((ArenaActionOrderButton)this.m_CreateActionOrderButtonBattleHeroTransform_hotfix.call(new object[]
                {
                    this,
                    hero,
                    parent
                }));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GameObject             go = UnityEngine.Object.Instantiate <GameObject>(this.m_actionOrderButtonPrefab, parent, false);
            ArenaActionOrderButton arenaActionOrderButton = GameObjectUtility.AddControllerToGameObject <ArenaActionOrderButton>(go);

            if (hero != null)
            {
                arenaActionOrderButton.SetHero(hero);
            }
            arenaActionOrderButton.EventOnClick     += this.ActionOrderButton_OnClick;
            arenaActionOrderButton.EventOnBeginDrag += this.ActionOrderButton_OnBeginDrag;
            arenaActionOrderButton.EventOnEndDrag   += this.ActionOrderButton_OnEndDrag;
            arenaActionOrderButton.EventOnDrag      += this.ActionOrderButton_OnDrag;
            arenaActionOrderButton.EventOnDrop      += this.ActionOrderButton_OnDrop;
            return(arenaActionOrderButton);
        }
        // Token: 0x060099A4 RID: 39332 RVA: 0x002BDE9C File Offset: 0x002BC09C
        private void __callDele_EventOnEndDrag(ArenaActionOrderButton arg1, PointerEventData arg2)
        {
            Action <ArenaActionOrderButton, PointerEventData> eventOnEndDrag = this.EventOnEndDrag;

            if (eventOnEndDrag != null)
            {
                eventOnEndDrag(arg1, arg2);
            }
        }
        // Token: 0x060099A0 RID: 39328 RVA: 0x002BDE3C File Offset: 0x002BC03C
        private void __callDele_EventOnClick(ArenaActionOrderButton obj)
        {
            Action <ArenaActionOrderButton> eventOnClick = this.EventOnClick;

            if (eventOnClick != null)
            {
                eventOnClick(obj);
            }
        }
Beispiel #4
0
 // Token: 0x0600A51E RID: 42270 RVA: 0x002E7864 File Offset: 0x002E5A64
 private void ActionOrderButton_OnClick(ArenaActionOrderButton b)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ActionOrderButton_OnClickArenaActionOrderButton_hotfix != null)
     {
         this.m_ActionOrderButton_OnClickArenaActionOrderButton_hotfix.call(new object[]
         {
             this,
             b
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
 }
Beispiel #5
0
 // Token: 0x0600A520 RID: 42272 RVA: 0x002E796C File Offset: 0x002E5B6C
 private void ActionOrderButton_OnEndDrag(ArenaActionOrderButton b, PointerEventData eventData)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ActionOrderButton_OnEndDragArenaActionOrderButtonPointerEventData_hotfix != null)
     {
         this.m_ActionOrderButton_OnEndDragArenaActionOrderButtonPointerEventData_hotfix.call(new object[]
         {
             this,
             b,
             eventData
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.DestroyDragginActionOrderButton();
 }
Beispiel #6
0
 // Token: 0x0600A51F RID: 42271 RVA: 0x002E78D4 File Offset: 0x002E5AD4
 private void ActionOrderButton_OnBeginDrag(ArenaActionOrderButton b, PointerEventData eventData)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ActionOrderButton_OnBeginDragArenaActionOrderButtonPointerEventData_hotfix != null)
     {
         this.m_ActionOrderButton_OnBeginDragArenaActionOrderButtonPointerEventData_hotfix.call(new object[]
         {
             this,
             b,
             eventData
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix        = false;
     this.m_draggingActionOrderButtonIndex = b.GetIndex();
     this.CreateDraggingActionOrderButton(b.GetHero());
 }
Beispiel #7
0
 // Token: 0x0600A56D RID: 42349 RVA: 0x002E8390 File Offset: 0x002E6590
 public void ActionOrderButton_OnEndDrag(ArenaActionOrderButton b, PointerEventData eventData)
 {
     this.m_owner.ActionOrderButton_OnEndDrag(b, eventData);
 }
Beispiel #8
0
 // Token: 0x0600A56B RID: 42347 RVA: 0x002E8370 File Offset: 0x002E6570
 public void ActionOrderButton_OnClick(ArenaActionOrderButton b)
 {
     this.m_owner.ActionOrderButton_OnClick(b);
 }
 // Token: 0x060099C1 RID: 39361 RVA: 0x002BE3AC File Offset: 0x002BC5AC
 public void __clearDele_EventOnEndDrag(ArenaActionOrderButton arg1, PointerEventData arg2)
 {
     this.m_owner.__clearDele_EventOnEndDrag(arg1, arg2);
 }
 // Token: 0x060099BE RID: 39358 RVA: 0x002BE37C File Offset: 0x002BC57C
 public void __callDele_EventOnBeginDrag(ArenaActionOrderButton arg1, PointerEventData arg2)
 {
     this.m_owner.__callDele_EventOnBeginDrag(arg1, arg2);
 }
 // Token: 0x060099BD RID: 39357 RVA: 0x002BE36C File Offset: 0x002BC56C
 public void __clearDele_EventOnClick(ArenaActionOrderButton obj)
 {
     this.m_owner.__clearDele_EventOnClick(obj);
 }
 // Token: 0x060099AC RID: 39340 RVA: 0x002BE254 File Offset: 0x002BC454
 public LuaExportHelper(ArenaActionOrderButton owner)
 {
     this.m_owner = owner;
 }
 // Token: 0x060099A5 RID: 39333 RVA: 0x002BDEC0 File Offset: 0x002BC0C0
 private void __clearDele_EventOnEndDrag(ArenaActionOrderButton arg1, PointerEventData arg2)
 {
     this.EventOnEndDrag = null;
 }
 // Token: 0x060099A1 RID: 39329 RVA: 0x002BDE60 File Offset: 0x002BC060
 private void __clearDele_EventOnClick(ArenaActionOrderButton obj)
 {
     this.EventOnClick = null;
 }