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; }
/// <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); }
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()); }