Beispiel #1
0
    public void Setup()
    {
        //  Create list of data to setup all UI elements
        //  MAKE SURE KEPT IN PROPER ORDER MANUALLY - SETUP SIMPLY ITERATES THROUGH EACH LIST
        List <HitChanceUISetupData> setupData = new List <HitChanceUISetupData>();

        setupData.Add(new IFSetupData(SetCombatLevel, DEFAULTCMBLVL));
        setupData.Add(new IFSetupData(SetWeaponAccTier, DEFAULTWEAPONTIER));
        setupData.Add(new DDSetupData(SetAttackStyle, AttackType.GetAttackStyleOptions()));
        setupData.Add(new DDSetupData(SetPrayer, prayerMods.GetOptionNames()));
        setupData.Add(new DDSetupData(SetPotion, potionMods.GetOptionNames()));
        setupData.Add(new DDSetupData(SetAura, auraMods.GetOptionNames()));
        setupData.Add(new DDSetupData(SetNihil, nihilMods.GetOptionNames()));
        setupData.Add(new DDSetupData(SetScrimshaw, scrimMods.GetOptionNames()));
        setupData.Add(new DDSetupData(ToggleReaper, reaperMods.GetOptionNames()));
        setupData.Add(new DDSetupData(ToggleQuake, quakeMods.GetOptionNames()));
        setupData.Add(new DDSetupData(ToggleStatWarh, statWarhMods.GetOptionNames()));
        setupData.Add(new DDSetupData(ToggleGuthixStaff, gstaffMods.GetOptionNames()));
        setupData.Add(new DDSetupData(ToggleBandosBook, bandosBookMods.GetOptionNames()));

        //  Setup the UI elements
        view.Setup(in setupData);

        CalculateHitChance();
    }