예제 #1
0
        private static ClientUISlotBarCategoryItemModule CreateCategoryItem(string pLootId, string pTooltipId,
                                                                            bool pCountable, long pCount, long pMaxCount,
                                                                            long pCooldownTime, bool pAvailable,
                                                                            bool pSelected, short counterStyle = ClientUISlotBarCategoryItemModule.SELECTION,
                                                                            short localisation = ClientUITooltipTextFormatModule.LOCALIZED)
        {
            ClientUISlotBarCategoryItemStatusModule rocketsCategoryItemStatus = CreateItemStatus(pLootId, pTooltipId,
                                                                                                 pCountable, pCount, pMaxCount, pAvailable, pSelected, localisation);

            // create category timer
            ClientUISlotBarCategoryItemTimerStateModule categoryItemTimerState =
                new ClientUISlotBarCategoryItemTimerStateModule(ClientUISlotBarCategoryItemTimerStateModule.ACTIVE);
            ClientUISlotBarCategoryItemTimerModule categoryTimerModule =
                new ClientUISlotBarCategoryItemTimerModule(pLootId, categoryItemTimerState, pCooldownTime, 90000000,
                                                           false);

            // create 5th parameter
            CooldownTypeModule cooldownType = new CooldownTypeModule(CooldownTypeModule.NONE);

            short counterType =
                pCountable ? counterStyle : ClientUISlotBarCategoryItemModule.NONE;

            // create rockets category item
            return(new ClientUISlotBarCategoryItemModule(1, rocketsCategoryItemStatus, categoryTimerModule, cooldownType,
                                                         counterType, ClientUISlotBarCategoryItemModule.SELECTION));
        }
예제 #2
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;
 }