예제 #1
0
 public SlotbarCategoryItemModule(int Id, SlotbarItemStatus status, SlotbarCategoryItemTimerModule timer, CooldownTypeModule varB3M, short counterType, short actionStyle)
 {
     this.Id          = Id;
     this.status      = status;
     this.timer       = timer;
     this.varB3M      = varB3M;
     this.counterType = counterType;
     this.actionStyle = actionStyle;
 }
예제 #2
0
        /// <summary>
        /// Creates the slotbar object button (Called in constructor)
        /// </summary>
        public void Create()
        {
            var itemStatus = new SlotbarItemStatus(
                ItemId,
                Selected,     //selected
                Activable,    //activable
                Buyable,      //buyable
                ItemId,       //clickId
                MaxCounter,   //maxCounter
                Blocked,      //blocked
                new ClientUITooltip(new List <ClientUITooltipTextFormat>()),
                Visible,      //visible
                CounterStyle, //counterStyle
                Available,    //available
                new ClientUITooltip(ToolTipItemBar),
                CounterValue  //counterValue
                );

            var timerModule = new SlotbarCategoryItemTimerModule(ItemId, new TimerState(TimerState.READY), 0, 0, true);

            Object = new SlotbarCategoryItemModule(1, itemStatus, timerModule, new CooldownTypeModule(CooldownTypeModule.NONE),
                                                   CounterType, SlotbarCategoryItemModule.SELECTION);
        }
예제 #3
0
        public byte[] SetCooldown(string itemId, short state, double time, double totalTime, bool activatable)
        {
            var command = new SlotbarCategoryItemTimerModule(itemId, new TimerState(state), time, totalTime, activatable);

            return(command.write2());
        }