Inheritance: PostEffectsBase
示例#1
0
    private void SetMenuEffects(bool isOpen)
    {
        var volume = GameObject.FindGameObjectWithTag("PostProcessVolume")?.GetComponent <Volume>();

        if (volume != null)
        {
            for (int i = 0; i < volume.profile.components.Count; i++)
            {
                if (volume.profile.components[i].name.Contains("Bloom"))
                {
                    Bloom bloom = (Bloom)volume.profile.components[i];
                    bloom.intensity.value = isOpen ? 1.0f : 0.25f;
                }
            }
        }

        if (isOpen)
        {
            CameraObject.CanAlterCursor = false;
            CameraObject.MoveToCursor   = false;
            Cursor.lockState            = CursorLockMode.None;
            Cursor.visible = true;
        }
        else
        {
            CameraObject.PrepareCursor();
        }
    }
示例#2
0
 private void Start()
 {
     _postProcessingProfile = FindObjectOfType <PostProcessVolume>();
     grain = _postProcessingProfile.profile.GetSetting <Grain>();
     bloom = _postProcessingProfile.profile.GetSetting <Bloom>();
     StartCoroutine(GhostTimer());
 }
示例#3
0
 private Receipt(
     uint256 postState,
     ulong gasUsed,
     Log[] logs,
     Bloom bloom,
     uint256 transactionHash,
     uint256 blockHash,
     uint160 from,
     uint160 to,
     uint160 newContractAddress,
     bool success,
     string errorMessage)
 {
     this.PostState       = postState;
     this.GasUsed         = gasUsed;
     this.Logs            = logs;
     this.Bloom           = bloom;
     this.TransactionHash = transactionHash;
     this.BlockHash       = blockHash;
     this.From            = from;
     this.To = to;
     this.NewContractAddress = newContractAddress;
     this.Success            = success;
     this.ErrorMessage       = errorMessage;
 }
示例#4
0
    void Start()
    {
        //Data.Zenith = -0.4f;
        //Data.Length = CameraLength;
        zoomTemp = CameraLength;

        if (GameApp.Instance.GetParameter("EnableDepthOfField") > 0)
        {
            DepthOfField dof = FightCamera.gameObject.GetComponent <DepthOfField>();
            if (dof != null)
            {
                dof.enabled = true;
            }
        }
        if (GameApp.Instance.GetParameter("EnableBloom") > 0)
        {
            Bloom b = FightCamera.gameObject.GetComponent <Bloom>();
            if (b != null)
            {
                b.enabled = true;
            }
        }
        if (GameApp.Instance.GetParameter("EnableAmbientOcclusion") > 0)
        {
            AmbientOcclusion ao = FightCamera.gameObject.GetComponent <AmbientOcclusion>();
            if (ao != null)
            {
                ao.enabled = true;
            }
        }
    }
示例#5
0
        // Use this for initialization
        void Start()
        {
            bloom = gameObject.AddComponent <Bloom>();
            bloom.bloomIntensity = 0.8f;
            bloom.bloomThreshold = 0.8f;

            bloom.lensFlareVignetteMask  = bloomLensFlareVignetteMask;
            bloom.lensFlareShader        = bloomLensFlareShader;
            bloom.screenBlendShader      = bloomScreenBlendShader;
            bloom.blurAndFlaresShader    = bloomBlurAndFlaresShader;
            bloom.brightPassFilterShader = bloomBrightPassFilter;

            blur               = gameObject.AddComponent <CameraMotionBlur>();
            blur.filterType    = CameraMotionBlur.MotionBlurFilter.LocalBlur;
            blur.velocityScale = 1;
            blur.maxVelocity   = 1000;
            blur.minVelocity   = 0.1f;

            blur.shader = motionBlurShader;
            blur.dx11MotionBlurShader = motionBlurDX11Shader;
            blur.replacementClear     = motionBlurReplacementClearShader;
            blur.noiseTexture         = motionBlurNoiseTexture;

            if (ActiveData.ESportsFullyReady)
            {
            }

            EnableEffects();
        }
示例#6
0
        public async void SaveAndFilter()
        {
            BloomTrain saver1 = new BloomTrain
            {
                Sieve = "UnitTest1"
            };

            Bloom bloom1 = new Bloom
            {
                Sieve    = "UnitTest1",
                Polarity = "Block"
            };

            StringMessage msg1 = new StringMessage(null, "Rhubarb");
            StringMessage msg2 = new StringMessage(null, "Custard");
            StringMessage msg3 = new StringMessage(null, "Marmite");
            StringMessage msg4 = new StringMessage(null, "Beeswax");

            Assert.Same(msg1, await bloom1.HandleMessage(msg1));
            Assert.Same(msg2, await bloom1.HandleMessage(msg2));
            Assert.NotSame(msg1, await bloom1.HandleMessage(msg2));

            await saver1.HandleMessage(msg1);

            Assert.Null(await bloom1.HandleMessage(msg1));
            Assert.NotNull(await bloom1.HandleMessage(msg2));

            await saver1.HandleMessage(msg2);

            Assert.Null(await bloom1.HandleMessage(msg2));
        }
    protected virtual void Start()
    {
        bloom = volume.profile.GetSetting <Bloom>();
        chromaticAberration = volume.profile.GetSetting <ChromaticAberration>();
        colorGrading        = volume.profile.GetSetting <ColorGrading>();
        vignette            = volume.profile.GetSetting <Vignette>();

        //Set Min values
        if (bloom)
        {
            minBloomIntensity = bloom.intensity.value;
        }
        if (vignette)
        {
            minVignetteIntensity = vignette.intensity.value;
        }
        if (chromaticAberration)
        {
            minChromaticIntensity = chromaticAberration.intensity.value;
        }
        if (colorGrading)
        {
            minPostExposure  = colorGrading.postExposure.value;
            minSaturation    = colorGrading.saturation.value;
            minContrast      = colorGrading.contrast.value;
            startColorFilter = colorGrading.colorFilter.value;
        }
    }
示例#8
0
        private Bloom GetBloom(params LogEntry[] logEntries)
        {
            var bloom = new Bloom();

            bloom.Add(logEntries);
            return(bloom);
        }
示例#9
0
        /// <summary>
        /// Constructs a <see cref="PostProcessing"/>.
        /// </summary>
        public PostProcessing()
        {
            mSaturation = 1.0f;

            mFxaa  = new Fxaa();
            mBloom = new Bloom();
        }
示例#10
0
文件: Utility.cs 项目: DavidBlaa/mct
        public static TimePeriod CreateTimePeriodFromModel(TimePeriodModel model)
        {
            TimePeriod tp;

            switch (model.Type)
            {
            case "Cultivate": { tp = new Cultivate(); break; }

            case "Implant": { tp = new Implant(); break; }

            case "Bloom": { tp = new Bloom(); break; }

            case "Sowing": { tp = new Sowing(); break; }

            case "Harvest": { tp = new Harvest(); break; }

            case "SeedMaturity": { tp = new SeedMaturity(); break; }

            case "LifeTime": { tp = new LifeTime(); break; }

            default: tp = new LifeTime(); break;
            }
            tp.Id         = model.Id;
            tp.Start      = model.Start;
            tp.StartArea  = model.StartArea;
            tp.StartMonth = model.StartMonth;
            tp.EndArea    = model.EndArea;
            tp.EndMonth   = model.EndMonth;

            if (model.Next != null)
            {
                tp.Next = CreateTimePeriodFromModel(model.Next);
            }
            return(tp);
        }
示例#11
0
    // Token: 0x06000C16 RID: 3094 RVA: 0x0004BDF4 File Offset: 0x00049FF4
    public void ApplyBloomSetting()
    {
        Bloom bloom = null;

        this.postProcessingVolume.profile.TryGetSettings <Bloom>(out bloom);
        bloom.enabled.value = (PlayerPrefs.GetInt("bloom") == 0);
    }
示例#12
0
 private Receipt(uint256 postState,
                 ulong gasUsed,
                 Log[] logs,
                 Bloom bloom,
                 uint256 transactionHash,
                 uint256 blockHash,
                 uint160 @from,
                 uint160 to,
                 uint160 newContractAddress,
                 bool success,
                 string result,
                 string errorMessage,
                 ulong gasPrice,
                 ulong amount,
                 string methodName)
 {
     this.PostState       = postState;
     this.GasPrice        = gasPrice;
     this.GasUsed         = gasUsed;
     this.Logs            = logs;
     this.Bloom           = bloom;
     this.TransactionHash = transactionHash;
     this.BlockHash       = blockHash;
     this.From            = from;
     this.To = to;
     this.NewContractAddress = newContractAddress;
     this.Success            = success;
     this.Result             = result;
     this.ErrorMessage       = errorMessage;
     this.Amount             = amount;
     this.MethodName         = methodName;
 }
示例#13
0
 /** [シングルトン]インスタンス。作成。
  */
 public static void CreateInstance()
 {
     if (s_instance == null)
     {
         s_instance = new Bloom();
     }
 }
示例#14
0
    void Awake()
    {
        bloom = postProcess.profile.settings.First(setting => setting is Bloom) as Bloom;
        bloom.intensity.value = bloomIntensityInOpening;

        Hero.Current
        .Where(hero => hero != null)
        .Subscribe(hero =>
        {
            hero.Eye.IsOpen.SkipLatestValueOnSubscribe()
            .Subscribe(open =>
            {
                blindAnim.enabled = true;
                blindAnim.Play(open ? "eyeEffect_open" : "eyeEffect_close");
                openOrCloseCurrent?.Kill();
                openOrCloseCurrent = DOVirtual.DelayedCall
                                     (
                    blindAnim.GetCurrentAnimatorStateInfo(0).length,
                    () => blindAnim.enabled = false
                                     );

                DOTween.To
                (
                    () => bloom.intensity.value,
                    val => bloom.intensity.value = val,
                    open ? bloomIntensityInOpening : bloomIntensityInClosing,
                    blindAnim.GetCurrentAnimatorStateInfo(0).length / 3
                );
            })
            .AddTo(this);
        });
    }
 public void BeginDraw()
 {
     if (PostProcessingEnabled)
     {
         Bloom.BeginDraw();
     }
 }
        public void Are_log_indexes_unique()
        {
            Keccak txHash = Keccak.OfAnEmptyString;

            LogEntry[] logEntries = { Build.A.LogEntry.TestObject, Build.A.LogEntry.TestObject, Build.A.LogEntry.TestObject };

            TxReceipt receipt1 = new()
            {
                Bloom           = new Bloom(logEntries),
                Index           = 1,
                Recipient       = TestItem.AddressA,
                Sender          = TestItem.AddressB,
                BlockHash       = TestItem.KeccakA,
                BlockNumber     = 1,
                ContractAddress = TestItem.AddressC,
                GasUsed         = 1000,
                TxHash          = txHash,
                StatusCode      = 0,
                GasUsedTotal    = 2000,
                Logs            = logEntries
            };

            UInt256       effectiveGasPrice = new(5526);
            ReceiptForRpc receiptForRpc     = new(txHash, receipt1, effectiveGasPrice);

            long?[] indexes  = receiptForRpc.Logs.Select(log => log.LogIndex).ToArray();
            long?[] expected = { 0, 1, 2 };

            Assert.AreEqual(expected, indexes);
        }
    }
示例#17
0
    void FixedUpdate()
    {
        ++fixedCounter;
        Bloom bloomLayer = null;

        postProcVol.profile.TryGetSettings(out bloomLayer);
        if (fixedCounter <= 50)
        {
            bloomLayer.intensity.value -= 0.05f;
        }
        else if (fixedCounter < 100)
        {
            bloomLayer.intensity.value += 0.05f;
        }
        else
        {
            //Debug.Log(bloomLayer.intensity.value);
            fixedCounter = 1;
        }

        if (player && player.speed != lastPlayerSpeed)
        {
            var playerSpeed = player.speed;
            if (playerSpeed > 6.8f)
            {
                targetDof = 30.0f - playerSpeed * 3.15f;
            }
            else
            {
                targetDof = 30.0f;
            }
            lastPlayerSpeed = playerSpeed;
        }
    }
示例#18
0
    public void OpenInventory()
    {
        var volume = GameObject.FindGameObjectWithTag("PostProcessVolume")?.GetComponent <Volume>();

        if (volume != null)
        {
            for (int i = 0; i < volume.profile.components.Count; i++)
            {
                if (volume.profile.components[i].name.Contains("Bloom"))
                {
                    Bloom bloom = (Bloom)volume.profile.components[i];
                    bloom.intensity.value = 1f;
                }
            }
        }
        InventoryUI.GetComponent <Image>().enabled = true;


        Owner.CurrentOwner = gameObject;
        CameraObject.GetComponent <CameraFollow>().CanAlterCursor = false;
        CameraObject.GetComponent <CameraFollow>().MoveToCursor   = false;
        Cursor.visible   = true;
        Cursor.lockState = CursorLockMode.None;
        IsOpen           = true;
        ReDraw();
    }
示例#19
0
 void Start()
 {
     cp    = slider.GetComponent <CharacterChoice>();
     text  = transform.GetChild(0).gameObject.GetComponent <Text>();
     dof   = cam.GetComponent <DepthOfField>();
     bloom = cam.GetComponent <Bloom>();
 }
示例#20
0
        public async Task AddValue_With_Null_Test()
        {
            var bloom = new Bloom();

            bloom.AddValue((IMessage)null);
            bloom.Data.Length.ShouldBe(0);
        }
示例#21
0
        public async Task ApplyAsync(IEnumerable <Block> blocks)
        {
            Logger.LogTrace("Apply log event handler.");
            foreach (var block in blocks)
            {
                var blockBloom = new Bloom(block.Header.Bloom.ToByteArray());
                if (!Blooms.Values.Any(b => b.IsIn(blockBloom)))
                {
                    // No interested event in the block
                    continue;
                }

                foreach (var transactionId in block.Body.TransactionIds)
                {
                    var result =
                        await _transactionResultQueryService.GetTransactionResultAsync(transactionId, block.GetHash());

                    if (result == null)
                    {
                        continue;
                    }

                    if (result.Status == TransactionResultStatus.Failed)
                    {
                        continue;
                    }

                    if (result.Bloom.Length == 0)
                    {
                        continue;
                    }

                    var resultBloom = new Bloom(result.Bloom.ToByteArray());

                    foreach (var handler in _eventHandlers)
                    {
                        var interestedEvent = handler.InterestedEvent;
                        var interestedBloom = Blooms[interestedEvent];
                        if (!interestedBloom.IsIn(resultBloom))
                        {
                            // Interested bloom is not found in the transaction result
                            continue;
                        }

                        // Interested bloom is found in the transaction result,
                        // find the log that yields the bloom and apply the handler
                        foreach (var log in result.Logs)
                        {
                            if (log.Address != interestedEvent.Address || log.Name != interestedEvent.Name)
                            {
                                continue;
                            }
                            await handler.HandleAsync(block, result, log);
                        }
                    }
                }
            }

            Logger.LogTrace("Finish apply log event handler.");
        }
示例#22
0
        public bool Matches(Bloom bloom)
        {
            if (Addresses != null)
            {
                bool result  = true;
                var  indexes = AddressesBloomExtracts;
                for (var i = 0; i < indexes.Length; i++)
                {
                    var index = indexes[i];
                    result = bloom.Matches(ref index);
                    if (result)
                    {
                        break;
                    }
                }

                return(result);
            }
            else if (Address == null)
            {
                return(true);
            }
            else
            {
                return(bloom.Matches(AddressBloomExtract));
            }
        }
    public IEnumerator SlowTimeEffect()
    {
        IsSlowDownCurrentlyRunning = true;
        var prevTimeScale = GameManager.Instance.TimeScale;

        GameManager.Instance.TimeScale = _slowdownTimeScale;

        PostProcessVolume   vol   = FindObjectOfType <PostProcessVolume>();
        Bloom               bloom = null;
        ChromaticAberration CA    = null;

        vol.profile.TryGetSettings(out bloom);
        vol.profile.TryGetSettings(out CA);
        bloom.intensity.value = 15;
        CA.intensity.value    = 0.4f;

        yield return(new WaitForSeconds(_slowdownDuration));

        bloom.intensity.value = 7.5f;
        CA.intensity.value    = 0.1f;

        GameManager.Instance.TimeScale = prevTimeScale;
        yield return(new WaitForSeconds(_slowdownCooldownDuration));

        IsSlowDownCurrentlyRunning = false;
    }
示例#24
0
    public void OpenCrafting()
    {
        var volume = GameObject.FindGameObjectWithTag("PostProcessVolume")?.GetComponent <Volume>();

        if (volume != null)
        {
            for (int i = 0; i < volume.profile.components.Count; i++)
            {
                if (volume.profile.components[i].name.Contains("Bloom"))
                {
                    Bloom bloom = (Bloom)volume.profile.components[i];
                    bloom.intensity.value = 1f;
                }
            }
        }
        foreach (Transform child in CraftUI.transform)
        {
            child.gameObject.SetActive(true);
        }
        CameraObject.GetComponent <CameraFollow>().CanAlterCursor = false;
        CameraObject.GetComponent <CameraFollow>().MoveToCursor   = false;
        Cursor.visible   = true;
        Cursor.lockState = CursorLockMode.None;
        IsOpen           = true;
    }
示例#25
0
            public Bloom DecodeBloom()
            {
                Span <byte> bloomBytes;

                // tks: not sure why but some nodes send us Blooms in a sequence form
                // https://github.com/NethermindEth/nethermind/issues/113
                if (Data[Position] == 249)
                {
                    Position  += 5; // tks: skip 249 1 2 129 127 and read 256 bytes
                    bloomBytes = Read(256);
                }
                else
                {
                    bloomBytes = DecodeByteArraySpan();
                    if (bloomBytes.Length == 0)
                    {
                        return(null);
                    }
                }

                Bloom bloom = bloomBytes.Length == 256
                    ? new Bloom(bloomBytes.ToBigEndianBitArray2048())
                    : throw new InvalidOperationException("Incorrect bloom RLP");

                return(bloom);
            }
示例#26
0
    void OnEnable()
    {
        Debug.Log("Intense phase START");

        depthOfField = ScriptableObject.CreateInstance <DepthOfField>();
        bloom        = ScriptableObject.CreateInstance <Bloom>();

        depthOfField.enabled.Override(true);
        bloom.enabled.Override(true);

        depthOfField.focusDistance.Override(DoFFocusDistance);
        depthOfField.kernelSize.Override(DoFKernelSize);
        depthOfField.aperture.Override(DoFAperture);
        depthOfField.focalLength.Override(DoFFocalLength);

        bloom.intensity.Override(BloomIntensity);
        bloom.softKnee.Override(BloomSoftKnee);
        bloom.dirtTexture.Override(BloomTextures[0]);
        bloom.dirtIntensity.Override(BloomDirtIntensity);
        bloom.clamp.Override(BloomClamp);
        bloom.diffusion.Override(BloomDiffusion);
        bloom.anamorphicRatio.Override(BloomAnamorphicRatio);

        m_Volume = PostProcessManager.instance.QuickVolume(gameObject.layer, 100f, depthOfField, bloom);
    }
    void OnEnable()
    {
        Debug.Log("Psychedelic phase START");
        depthOfField = ScriptableObject.CreateInstance <DepthOfField>();
        colorGrading = ScriptableObject.CreateInstance <ColorGrading>();
        bloom        = ScriptableObject.CreateInstance <Bloom>();

        depthOfField.enabled.Override(true);
        colorGrading.enabled.Override(true);
        bloom.enabled.Override(true);

        colorGrading.tint.Override(ColorGradingTint);
        colorGrading.hueShift.Override(ColorGradingHueShift);
        colorGrading.saturation.Override(ColorGradingSaturation);
        colorGrading.postExposure.Override(ColorGradingPostExposure);

        bloom.intensity.Override(BloomIntensity);
        bloom.softKnee.Override(BloomSoftKnee);
        bloom.dirtTexture.Override(BloomTexture);

        bloom.dirtIntensity.Override(BloomDirtIntensity);
        bloom.clamp.Override(BloomClamp);
        bloom.diffusion.Override(BloomDiffusion);
        bloom.anamorphicRatio.Override(BloomAnamorphicRatio);

        depthOfField.focusDistance.Override(DoFFocusDistance);
        depthOfField.kernelSize.Override(DoFKernelSize);
        depthOfField.aperture.Override(DoFAperture);
        depthOfField.focalLength.Override(DoFFocalLength);

        m_Volume = PostProcessManager.instance.QuickVolume(gameObject.layer, 100f, depthOfField, bloom, colorGrading);
    }
示例#28
0
        public static void Processor()
        {
            Console.Title = "Bloom Converter";
            Program.Choose(1, "blt", out string[] fileNames);
            if (fileNames.Length < 1)
            {
                return;
            }

            string filepath, ext;
            Bloom  blt;

            foreach (string file in fileNames)
            {
                using (blt = new Bloom())
                {
                    ext      = Path.GetExtension(file);
                    filepath = file.Replace(ext, "");
                    ext      = ext.ToLower();

                    Console.Title = "Bloom Converter: " + Path.GetFileNameWithoutExtension(file);
                    if (ext == ".blt")
                    {
                        blt.BLTReader(filepath); blt.TXTWriter(filepath);
                    }
                }
            }
        }
 // Start is called before the first frame update
 void Start()
 {
     volume = GetComponent <PostProcessVolume>();
     //設定を取得する
     bloom    = volume.profile.GetSetting <Bloom>();
     shipMove = GameObject.Find("Ship").GetComponent <ShipMove>();
 }
        private Task <Block> FillBlockAfterExecutionAsync(BlockHeader header,
                                                          IEnumerable <Transaction> transactions, ExecutionReturnSetCollection executionReturnSetCollection, BlockStateSet blockStateSet)
        {
            Logger.LogTrace("Start block field filling after execution.");
            var bloom = new Bloom();

            foreach (var returnSet in executionReturnSetCollection.Executed)
            {
                bloom.Combine(new[] { new Bloom(returnSet.Bloom.ToByteArray()) });
            }

            var allExecutedTransactionIds = transactions.Select(x => x.GetHash()).ToList();
            var orderedReturnSets         = executionReturnSetCollection.GetExecutionReturnSetList()
                                            .OrderBy(d => allExecutedTransactionIds.IndexOf(d.TransactionId)).ToList();

            var block = new Block
            {
                Header = new BlockHeader(header)
                {
                    Bloom = ByteString.CopyFrom(bloom.Data),
                    MerkleTreeRootOfWorldState        = CalculateWorldStateMerkleTreeRoot(blockStateSet),
                    MerkleTreeRootOfTransactionStatus = CalculateTransactionStatusMerkleTreeRoot(orderedReturnSets),
                    MerkleTreeRootOfTransactions      = CalculateTransactionMerkleTreeRoot(allExecutedTransactionIds)
                },
                Body = new BlockBody
                {
                    TransactionIds = { allExecutedTransactionIds }
                }
            };

            Logger.LogTrace("Finish block field filling after execution.");
            return(Task.FromResult(block));
        }
示例#31
0
 private static void LoadDefaults()
 {
     resolution = Screen.currentResolution;
     fullscreen = Screen.fullScreen;
     antialiasing = Antialiasing.Ultra;
     shadows = Shadows.High;
     bloom = Bloom.High;
     motionBlur = MotionBlur.High;
 }
示例#32
0
        public void LoadContent()
        {
            LineBatch = new LineBatch(graphicsDevice);
            PointBatch = new PointBatch(graphicsDevice);
            SpriteBatch = new SpriteBatch(graphicsDevice);
            bloom = new Bloom(graphicsDevice, SpriteBatch);

            foreach (GameObject gameObject in gameObjects)
                gameObject.LoadContent();
        }
示例#33
0
 // Use this for initialization
 void Start()
 {
     p = player.GetComponent<Player>();
     fish = cam.GetComponent<Fisheye>();
     bloom = cam.GetComponent<Bloom>();
     fish.strengthX = fish.strengthY = currentFishEyeStrength = startingFishEyeStrength;
     playerLight.light.intensity = 0f;
     playerLight.light.range = 10f;
     //		player.light.intensity = 0f;
 }
 // Use this for initialization
 void Start()
 {
     if(adjustBloom){
         bloom = GameObject.FindGameObjectWithTag(Tags.mainCamera).GetComponent<Bloom>();
         bloom.bloomIntensity = bloomIntensity;
         bloom.bloomThreshold = bloomThreshold;
         if(bloom.enabled != bloomEnabled){
             bloom.enabled = bloomEnabled;
         }
     }
 }
示例#35
0
    void Start()
    {
        m_cam = Camera.main;
        m_sunShafts = m_cam.GetComponent<SunShafts>();
        m_bloom = m_cam.GetComponent<Bloom>();
        m_motionBlur = m_cam.GetComponent<CameraMotionBlur>();
        m_antiAliasing = m_cam.GetComponent<AntiAliasing>();
        m_colorGrading = m_cam.GetComponent<TonemappingColorGrading>();

        m_defaultGrading = m_colorGrading.colorGrading;

        GameController.GameOver += OnGameOver;
    }
示例#36
0
 // Use this for initialization
 void Start()
 {
     bloom = GetComponent<Bloom>();
     if(bloom != null){
         bUpdateBloom = true;
         targetBloomStrength = bloom.bloomIntensity;
     }
     dof = GetComponent<DepthOfFieldScatter>();
     if(dof != null){
         bUpdateDoF = true;
         targetDofAperture = dof.aperture;
     }
 }
示例#37
0
        static void Main()
        {
            var bloom = new Bloom(102400) {Hashes = 10};

            for (char a = 'a'; a < 'z'; a++)
                for (char b = 'a'; b < 'z'; b++)
                    for (var l = 1; l < 10; l++)
                    {
                        var str = new string(a, l) + new string(b, l);
                        bloom.Add(str);
                    }

            var x1 = bloom.MayContains("aaabbb");
            var x2 = bloom.MayContains("ccdd");
            var x3 = bloom.MayContains("aaabbc");
        }
    private void Start()
    {
        volumeFadeIn = true;
        AudioListener.volume = 0.0f;

        // Initialize values
        pauseAnimation = false;
        pause = false;
        started = false;
        client = false;
        settings = false;
        isDrifting = false;
        canContinue = false;
        canDrift = true;
        canShowExtra = true;
        avoiding = false;
        timeLabelState = 0;
        totalScore = 0;
        driftScore = 0;
        maxDriftScore = 0;
        multiplier = 0;
        rigidbodyVelocity = Vector3.zero;
        multiplierTemp = multiplierTempInit;
        collisionTemp = collisionTempInit;
        avoidTemp = avoidTempInit;
        initPosition = new Vector3[labelsUI.Length];
        dataManager = DataManager.Instance;
        carInput = CarInput.Instance;

        if(!standaloneModule)
        {
            standaloneModule = GameObject.Find ("EventSystem").GetComponent<KeyboardInputModule>();
        }

        if(dataManager.isGamepad)
        {
            standaloneModule.horizontalAxis = "Horizontal360";
            standaloneModule.verticalAxis = "Vertical360";
            standaloneModule.submitButton = "Submit360";
            standaloneModule.cancelButton = "Cancel360";

            #if !UNITY_EDITOR
            UnityEngine.Cursor.visible = false;
            UnityEngine.Cursor.lockState = CursorLockMode.Locked;
            #endif
        }
        else
        {
            standaloneModule.horizontalAxis = "Horizontal";
            standaloneModule.verticalAxis = "Vertical";
            standaloneModule.submitButton = "Submit";
            standaloneModule.cancelButton = "Cancel";

            #if !UNITY_EDITOR
            UnityEngine.Cursor.visible = false;
            UnityEngine.Cursor.lockState = CursorLockMode.None;
            #endif
        }

        if(dataManager.isGamepad)
        {
            #if !UNITY_EDITOR
            UnityEngine.Cursor.visible = false;
            UnityEngine.Cursor.lockState = CursorLockMode.Locked;
            #endif
        }
        else
        {
            #if !UNITY_EDITOR
            UnityEngine.Cursor.visible = false;
            UnityEngine.Cursor.lockState = CursorLockMode.None;
            #endif
        }

        // Load data
        maxDriftScore = dataManager.bestDrift;

        for(int i = 0; i < labelsUI.Length; i++)
        {
            labelsUI[i].color = initColor;
            auxColor = labelsUI[i].color;
            auxColor.a = initAlpha;
            labelsUI[i].color = auxColor;
            initPosition[i] = labelsUI[i].transform.position;
        }

        network = GetComponent<CustomNetworkManager>();
        introAnimation = GetComponent<CameraIntroAnimation>();
        settingsManager = GetComponent<SettingsManager>();
        extraTweenText = extraTween.GetComponent<Text>();
        challengeLabelTween = challengeLabel.GetComponent<TweenFontSize>();
        bloomUI = GameObject.Find ("UICamera").GetComponent<Bloom>();

        pauseUI.SetActive (false);
        settingsUI.SetActive (false);
        gameplayUI.SetActive (false);
        startUI.SetActive(false);
        bloomUI.enabled = false;

        EventSystem.current.SetSelectedGameObject(null);

        // Enable match maker by default
        network.StartMatchMaker();
        network.matchMaker.SetProgramAppID((UnityEngine.Networking.Types.AppID)338802);
        network.SetMatchHost("mm.unet.unity3d.com", 443, true);
        network.matchSize = 5;
        network.matchName = adressField.text;
    }
 void Start()
 {
     bloom = gameObject.GetComponent<Bloom>();
     frameIntensity = (bloom.bloomIntensity - toIntensity) / fadeTime;
     animTime = (1f-toScale) / 0.5f ;
 }
 void Start()
 {
     bloomScript = GetComponent <Bloom> ();
 }
示例#41
0
        private void TestTemplateInsertion(Bloom.Book.Book book, IPage existingPage, string divContent)
        {
            Mock<IPage> templatePage = CreateTemplatePage(divContent);

               book.InsertPageAfter(existingPage, templatePage.Object);
            AssertPageCount(book, 4);
            Assert.AreEqual("bloom-page somekind A5Portrait", GetPageFromBookDom(book, 1).GetStringAttribute("class"));
        }
示例#42
0
 void OnLevelWasLoaded(int levelIndex)
 {
     //levelIndex: 0 => main title; 1 => ship selection; 2 => gameplay; 3 => results
     switch(levelIndex){
     case 0:
         if (lastLevel == 3){
             Destroy(intro.gameObject);
             Destroy(introLoop.gameObject);
             Destroy(layer1.gameObject);
             Destroy(layer2.gameObject);
             Destroy(gameObject);
         }
         lastLevel = 0;
         break;
     case 1:
         //just continue from main menu music
         lastLevel = 1;
         break;
     case 2:
         StartCoroutine(GameplayMusic());
         bloom = GameObject.FindWithTag("GameMgr").GetComponent("Bloom") as Bloom;
         lastLevel = 2;
         break;
     case 3:
         StartCoroutine(ResultsMusic());
         lastLevel = 3;
         break;
     }
 }
示例#43
0
 private void AssertPageCount(Bloom.Book.Book book, int expectedCount)
 {
     var result = book.RawDom.StripXHtmlNameSpace();
     AssertThatXmlIn.Dom(result).HasSpecifiedNumberOfMatchesForXpath("//div[contains(@class, 'bloom-page')]", expectedCount);
 }
    // Use this for initialization
    void Start()
    {
        heartRateMonitor = 1f;
        transformedForward = new Vector3();
        finalThrust = new Vector3();
        powerVomitCharged = false;

        initialRotation = transform.rotation;

        bloom = Camera.mainCamera.GetComponent("Bloom") as Bloom;
        noise = Camera.mainCamera.GetComponent("NoiseEffect") as NoiseEffect;
        colour = Camera.mainCamera.GetComponent("ColorCorrectionCurves") as ColorCorrectionCurves;
        particleStartSize = particleStartSize;
        Reset();
    }
示例#45
0
    private void Start()
    {
        volumeFadeIn = true;
        AudioListener.volume = 0.0f;

        // Initialize values
        pauseAnimation = false;
        pause = false;
        started = false;
        settings = false;
        isDrifting = false;
        canContinue = false;
        canDrift = true;
        canShowExtra = true;
        avoiding = false;
        pressedExit = false;
        tutorial = false;
        canAdvanceTutorial = true;
        driftTutorial = false;
        driftTutorialObjective = false;
        driftTutorialDriftDone = false;
        checkingGamepad = false;
        disabledUI = false;
        totalScore = 0;
        driftScore = 0;
        maxDriftScore = 0;
        multiplier = 0;
        challengeTextState = 0;
        tutorialState = 0;
        driftTutorialState = 0;
        playerName = "";
        previousTimeScale = Time.timeScale;
        rigidbodyVelocity = Vector3.zero;
        multiplierTemp = multiplierTempInit;
        collisionTemp = collisionTempInit;
        avoidTemp = avoidTempInit;
        initPosition = new Vector3[labelsUI.Length];
        dataManager = DataManager.Instance;
        carInput = CarInput.Instance;

        // Initialize time challenge values
        leftTime = leftTimeInit;
        timePickupsCount = timePickupRoot.transform.childCount;
        currentTimePickup = 0;

        timePickups = new GameObject[timePickupsCount];

        for(int i = 0; i < timePickups.Length; i++)
        {
            timePickups[i] = timePickupRoot.transform.GetChild (i).gameObject;
        }

        for(int i = 0; i < timePickups.Length; i++)
        {
            timePickups[i].GetComponent<DriftPickup>().DisablePickupForMinimap();
        }

        timeChallengeUI.SetActive (false);

        for(int i = 0; i < freeTutorialLabels.Length; i++)
        {
            freeTutorialCameras[i].enabled = false;
            freeTutorialLabels[i].SetActive (false);
        }

        for(int i = 0; i < challengeTutorialCameras.Length; i++)
        {
            challengeTutorialCameras[i].enabled = false;
            challengeTutorialLabels[i].SetActive (false);
        }

        // Get player references
        carController = GameObject.FindWithTag ("Player").GetComponent<CarController>();
        carEngine = carController.GetComponent<CarEngine>();
        carSetup = carController.GetComponent<CarSetup>();
        carAudio = carController.GetComponent<CarAudio>();
        carRigidbody = carController.GetComponent<Rigidbody>();
        introAnimation = GetComponent<CameraIntroAnimation>();
        settingsManager = GetComponent<SettingsManager>();
        extraTweenText = extraTween.GetComponent<Text>();
        challengeLabelTween = challengeLabel.GetComponent<TweenFontSize>();
        bloomUI = GameObject.Find ("UICamera").GetComponent<Bloom>();

        if(dataManager.isGamepad)
        {
            #if !UNITY_EDITOR
            UnityEngine.Cursor.visible = false;
            UnityEngine.Cursor.lockState = CursorLockMode.Locked;
            #endif
        }
        else
        {
            #if !UNITY_EDITOR
            UnityEngine.Cursor.visible = false;
            UnityEngine.Cursor.lockState = CursorLockMode.None;
            #endif
        }

        // Load data
        maxDriftScore = dataManager.bestDrift;

        for(int i = 0; i < labelsUI.Length; i++)
        {
            labelsUI[i].color = initColor;
            auxColor = labelsUI[i].color;
            auxColor.a = initAlpha;
            labelsUI[i].color = auxColor;
            initPosition[i] = labelsUI[i].transform.position;
        }

        pauseUI.SetActive (false);
        settingsUI.SetActive (false);
        gameplayUI.SetActive (false);
        startUI.SetActive(false);
        bloomUI.enabled = false;

        carController.enabled = false;
        carEngine.enabled = false;
        carSetup.enabled = false;
        carRigidbody.isKinematic = true;
        //carRigidbody.constraints = RigidbodyConstraints.FreezeAll;

        // Disable car audio
        carAudio.EnableSources(0.5f);

        EventSystem.current.SetSelectedGameObject(null);
    }
示例#46
0
 /// <summary>
 /// Make an ePUB out of the specified book. Sets up several instance variables with commonly useful parts of the results.
 /// </summary>
 /// <param name="mainFileName"></param>
 /// <param name="folderName"></param>
 /// <param name="book"></param>
 /// <returns></returns>
 private ZipFile MakeEpub(string mainFileName, string folderName, Bloom.Book.Book book)
 {
     var epubFolder = new TemporaryFolder(folderName);
     var epubName = mainFileName + ".epub";
     var epubPath = Path.Combine(epubFolder.FolderPath, epubName);
     using (var maker = CreateEpubMaker(book))
     {
         maker.Unpaginated = true; // Currently we always make unpaginated epubs.
         maker.SaveEpub(epubPath);
     }
     Assert.That(File.Exists(epubPath));
     _epub= new ZipFile(epubPath);
     _manifestFile = GetManifestFile(_epub);
     _manifestContent = StripXmlHeader(GetZipContent(_epub, _manifestFile));
     _manifestDoc = XDocument.Parse(_manifestContent);
     GetPageOneData();
     return _epub;
 }
示例#47
0
 void MakeImageFiles(Bloom.Book.Book book, params string[] images)
 {
     foreach (var image in images)
         MakeSamplePngImageWithMetadata(book.FolderPath.CombineForPath(image + ".png"));
 }
示例#48
0
 public EpubMakerAdjusted(Bloom.Book.Book book, BookThumbNailer thumbNailer)
     : base(thumbNailer, new NavigationIsolator())
 {
     this.Book = book;
 }
示例#49
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Bloom bloom1 = new Bloom();
            Bloom bloom2 = new Bloom();
            Bloom bloom3 = new Bloom();
            Bloom bloom4 = new Bloom();
            Bloom bloom5 = new Bloom();
            Bloom bloom6 = new Bloom();
            Bloom bloom7 = new Bloom();
            Bloom bloom8 = new Bloom();
            Bloom bloom9 = new Bloom();
            Bloom bloom10 = new Bloom();
            Bloom bloom11 = new Bloom();
            Bloom bloom12 = new Bloom();
            Bloom bloom13 = new Bloom();
            Bloom bloom14 = new Bloom();
            Bloom bloom15 = new Bloom();
            Bloom bloom16 = new Bloom();
            Bloom bloom17 = new Bloom();
            Bloom bloom18 = new Bloom();
            Bloom bloom19 = new Bloom();
            Bloom bloom20 = new Bloom();
            Bloom bloom21 = new Bloom();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Start));
            this.APB = new System.Windows.Forms.Button();
            this.Game = new System.Windows.Forms.Button();
            this.Advanced = new System.Windows.Forms.Button();
            this.CheckUpdates = new System.Windows.Forms.Button();
            this.flowTheme1 = new FlowTheme();
            this.flowButton1 = new FlowButton();
            this.flowTheme1.SuspendLayout();
            this.SuspendLayout();
            // 
            // APB
            // 
            this.APB.Location = new System.Drawing.Point(65, 63);
            this.APB.Name = "APB";
            this.APB.Size = new System.Drawing.Size(123, 23);
            this.APB.TabIndex = 3;
            this.APB.Text = "Start APB:EMU";
            this.APB.UseVisualStyleBackColor = true;
            this.APB.Click += new System.EventHandler(this.APB_Click);
            // 
            // Game
            // 
            this.Game.Location = new System.Drawing.Point(65, 111);
            this.Game.Name = "Game";
            this.Game.Size = new System.Drawing.Size(123, 23);
            this.Game.TabIndex = 4;
            this.Game.Text = "Start APB";
            this.Game.UseVisualStyleBackColor = true;
            this.Game.Click += new System.EventHandler(this.Game_Click);
            // 
            // Advanced
            // 
            this.Advanced.Location = new System.Drawing.Point(172, 266);
            this.Advanced.Name = "Advanced";
            this.Advanced.Size = new System.Drawing.Size(75, 23);
            this.Advanced.TabIndex = 5;
            this.Advanced.Text = "Advanced";
            this.Advanced.UseVisualStyleBackColor = true;
            this.Advanced.Click += new System.EventHandler(this.Advanced_Click);
            // 
            // CheckUpdates
            // 
            this.CheckUpdates.Location = new System.Drawing.Point(65, 156);
            this.CheckUpdates.Name = "CheckUpdates";
            this.CheckUpdates.Size = new System.Drawing.Size(123, 23);
            this.CheckUpdates.TabIndex = 6;
            this.CheckUpdates.Text = "Check for updates";
            this.CheckUpdates.UseVisualStyleBackColor = true;
            this.CheckUpdates.Click += new System.EventHandler(this.CheckUpdates_Click);
            // 
            // flowTheme1
            // 
            this.flowTheme1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(35)))), ((int)(((byte)(35)))));
            this.flowTheme1.BorderStyle = System.Windows.Forms.FormBorderStyle.None;
            bloom1.Name = "Sides";
            bloom1.Value = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
            bloom2.Name = "Gradient";
            bloom2.Value = System.Drawing.Color.FromArgb(((int)(((byte)(18)))), ((int)(((byte)(18)))), ((int)(((byte)(18)))));
            bloom3.Name = "Text";
            bloom3.Value = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(132)))), ((int)(((byte)(255)))));
            bloom4.Name = "Border1";
            bloom4.Value = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
            bloom5.Name = "Border2";
            bloom5.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22)))));
            bloom6.Name = "Border3";
            bloom6.Value = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(65)))), ((int)(((byte)(65)))));
            bloom7.Name = "Border4";
            bloom7.Value = System.Drawing.Color.Black;
            bloom8.Name = "Hatch1";
            bloom8.Value = System.Drawing.Color.FromArgb(((int)(((byte)(39)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
            bloom9.Name = "Hatch2";
            bloom9.Value = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(35)))), ((int)(((byte)(35)))));
            bloom10.Name = "Hatch3";
            bloom10.Value = System.Drawing.Color.FromArgb(((int)(((byte)(29)))), ((int)(((byte)(29)))), ((int)(((byte)(29)))));
            bloom11.Name = "Hatch4";
            bloom11.Value = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(26)))), ((int)(((byte)(26)))));
            bloom12.Name = "Shade1";
            bloom12.Value = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(7)))), ((int)(((byte)(7)))), ((int)(((byte)(7)))));
            bloom13.Name = "Shade2";
            bloom13.Value = System.Drawing.Color.Transparent;
            this.flowTheme1.Colors = new Bloom[] {
        bloom1,
        bloom2,
        bloom3,
        bloom4,
        bloom5,
        bloom6,
        bloom7,
        bloom8,
        bloom9,
        bloom10,
        bloom11,
        bloom12,
        bloom13};
            this.flowTheme1.Controls.Add(this.flowButton1);
            this.flowTheme1.Customization = "KCgo/xISEv//hAD/KCgo/xYWFv9BQUH/AAAA/ycnJ/8jIyP/HR0d/xoaGv8HBwcy////AA==";
            this.flowTheme1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.flowTheme1.Font = new System.Drawing.Font("Verdana", 8F);
            this.flowTheme1.Image = null;
            this.flowTheme1.Location = new System.Drawing.Point(0, 0);
            this.flowTheme1.Movable = true;
            this.flowTheme1.Name = "flowTheme1";
            this.flowTheme1.NoRounding = false;
            this.flowTheme1.Sizable = true;
            this.flowTheme1.Size = new System.Drawing.Size(259, 301);
            this.flowTheme1.SmartBounds = true;
            this.flowTheme1.TabIndex = 7;
            this.flowTheme1.Text = "APBEMU Panel";
            this.flowTheme1.TransparencyKey = System.Drawing.Color.Fuchsia;
            // 
            // flowButton1
            // 
            bloom14.Name = "DownGradient1";
            bloom14.Value = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
            bloom15.Name = "DownGradient2";
            bloom15.Value = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38)))));
            bloom16.Name = "NoneGradient1";
            bloom16.Value = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38)))));
            bloom17.Name = "NoneGradient2";
            bloom17.Value = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
            bloom18.Name = "Text";
            bloom18.Value = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(132)))), ((int)(((byte)(255)))));
            bloom19.Name = "Border1";
            bloom19.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22)))));
            bloom20.Name = "Border2A";
            bloom20.Value = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
            bloom21.Name = "Border2B";
            bloom21.Value = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
            this.flowButton1.Colors = new Bloom[] {
        bloom14,
        bloom15,
        bloom16,
        bloom17,
        bloom18,
        bloom19,
        bloom20,
        bloom21};
            this.flowButton1.Customization = "GBgY/yYmJv8mJib/GBgY//+EAP8WFhb/PDw8/yQkJP8=";
            this.flowButton1.Font = new System.Drawing.Font("Verdana", 8F);
            this.flowButton1.Image = null;
            this.flowButton1.Location = new System.Drawing.Point(225, 0);
            this.flowButton1.Name = "flowButton1";
            this.flowButton1.NoRounding = false;
            this.flowButton1.Size = new System.Drawing.Size(34, 23);
            this.flowButton1.TabIndex = 0;
            this.flowButton1.Text = "X";
            this.flowButton1.Transparent = false;
            this.flowButton1.Click += new System.EventHandler(this.flowButton1_Click);
            // 
            // Start
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(259, 301);
            this.Controls.Add(this.CheckUpdates);
            this.Controls.Add(this.Advanced);
            this.Controls.Add(this.Game);
            this.Controls.Add(this.APB);
            this.Controls.Add(this.flowTheme1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "Start";
            this.Text = "APBEMU Panel";
            this.TransparencyKey = System.Drawing.Color.Fuchsia;
            this.Load += new System.EventHandler(this.Start_Load);
            this.flowTheme1.ResumeLayout(false);
            this.ResumeLayout(false);

        }
示例#50
0
 private XmlNode GetPageFromBookDom(Bloom.Book.Book book, int pageNumber0Based)
 {
     var result = book.RawDom.StripXHtmlNameSpace();
     return result.SafeSelectNodes("//div[contains(@class, 'bloom-page')]", null)[pageNumber0Based];
 }
        public override void Initialise()
        {
            base.Initialise();

            if (GraphicsDevice != null)
            {
                // Render Targets
                m_ShadowDepthTarget = new RenderTarget2D(GraphicsDevice, m_ShadowMapSize, m_ShadowMapSize, false, SurfaceFormat.HalfVector2, DepthFormat.Depth24);

                // Shadow multiplier value
                ShadowMult = 0.5f;

                // Custom light blending state
                m_LightAddBlendState = new BlendState()
                {
                    
                    AlphaSourceBlend = Blend.One,
                    ColorSourceBlend = Blend.One,
                    AlphaDestinationBlend = Blend.One,
                    ColorDestinationBlend = Blend.One,
                };

                // Create these post processors up front
                m_DepthOfFieldPostProcessor = new DepthOfField(GraphicsDevice);
                m_BloomPostProcessor = new Bloom(GraphicsDevice);
                m_FilmGrainProcessor = new FilmGrain(GraphicsDevice);
            }

            //create render queues
            for (int index = 0; index < (int)ERenderQueue.Count; index++)
            {
                m_VisibleMeshes[index] = new List<AbstractMesh>();
                m_VisibleShadowedMeshes[index] = new List<AbstractMesh>();
            }
        }
示例#52
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Bloom bloom1 = new Bloom();
            Bloom bloom2 = new Bloom();
            Bloom bloom3 = new Bloom();
            Bloom bloom4 = new Bloom();
            Bloom bloom5 = new Bloom();
            Bloom bloom6 = new Bloom();
            Bloom bloom7 = new Bloom();
            Bloom bloom8 = new Bloom();
            Bloom bloom9 = new Bloom();
            Bloom bloom10 = new Bloom();
            Bloom bloom11 = new Bloom();
            Bloom bloom12 = new Bloom();
            Bloom bloom13 = new Bloom();
            Bloom bloom14 = new Bloom();
            Bloom bloom15 = new Bloom();
            Bloom bloom16 = new Bloom();
            Bloom bloom17 = new Bloom();
            Bloom bloom18 = new Bloom();
            Bloom bloom19 = new Bloom();
            Bloom bloom20 = new Bloom();
            Bloom bloom21 = new Bloom();
            Bloom bloom22 = new Bloom();
            Bloom bloom23 = new Bloom();
            Bloom bloom24 = new Bloom();
            Bloom bloom25 = new Bloom();
            Bloom bloom26 = new Bloom();
            Bloom bloom27 = new Bloom();
            Bloom bloom28 = new Bloom();
            Bloom bloom29 = new Bloom();
            Bloom bloom30 = new Bloom();
            Bloom bloom31 = new Bloom();
            Bloom bloom32 = new Bloom();
            Bloom bloom33 = new Bloom();
            Bloom bloom34 = new Bloom();
            Bloom bloom35 = new Bloom();
            Bloom bloom36 = new Bloom();
            Bloom bloom37 = new Bloom();
            this.WorldName = new System.Windows.Forms.RichTextBox();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.ConsoleSend = new System.Windows.Forms.Button();
            this.flowTheme1 = new FlowTheme();
            this.UserConsole = new System.Windows.Forms.RichTextBox();
            this.SaveDistType = new FlowButton();
            this.WorldNameSave = new FlowButton();
            this.flowButton1 = new FlowButton();
            this.DistrictType = new System.Windows.Forms.RichTextBox();
            this.flowTheme1.SuspendLayout();
            this.SuspendLayout();
            // 
            // WorldName
            // 
            this.WorldName.BackColor = System.Drawing.SystemColors.ControlLight;
            this.WorldName.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.WorldName.Location = new System.Drawing.Point(22, 84);
            this.WorldName.Name = "WorldName";
            this.WorldName.Size = new System.Drawing.Size(166, 40);
            this.WorldName.TabIndex = 2;
            this.WorldName.Text = "";
            // 
            // textBox1
            // 
            this.textBox1.Location = new System.Drawing.Point(22, 360);
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(623, 20);
            this.textBox1.TabIndex = 12;
            // 
            // ConsoleSend
            // 
            this.ConsoleSend.Location = new System.Drawing.Point(651, 360);
            this.ConsoleSend.Name = "ConsoleSend";
            this.ConsoleSend.Size = new System.Drawing.Size(75, 20);
            this.ConsoleSend.TabIndex = 15;
            this.ConsoleSend.Text = "Send";
            this.ConsoleSend.UseVisualStyleBackColor = true;
            // 
            // flowTheme1
            // 
            this.flowTheme1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(35)))), ((int)(((byte)(35)))));
            this.flowTheme1.BorderStyle = System.Windows.Forms.FormBorderStyle.None;
            bloom1.Name = "Sides";
            bloom1.Value = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
            bloom2.Name = "Gradient";
            bloom2.Value = System.Drawing.Color.FromArgb(((int)(((byte)(18)))), ((int)(((byte)(18)))), ((int)(((byte)(18)))));
            bloom3.Name = "Text";
            bloom3.Value = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(132)))), ((int)(((byte)(255)))));
            bloom4.Name = "Border1";
            bloom4.Value = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
            bloom5.Name = "Border2";
            bloom5.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22)))));
            bloom6.Name = "Border3";
            bloom6.Value = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(65)))), ((int)(((byte)(65)))));
            bloom7.Name = "Border4";
            bloom7.Value = System.Drawing.Color.Black;
            bloom8.Name = "Hatch1";
            bloom8.Value = System.Drawing.Color.FromArgb(((int)(((byte)(39)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
            bloom9.Name = "Hatch2";
            bloom9.Value = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(35)))), ((int)(((byte)(35)))));
            bloom10.Name = "Hatch3";
            bloom10.Value = System.Drawing.Color.FromArgb(((int)(((byte)(29)))), ((int)(((byte)(29)))), ((int)(((byte)(29)))));
            bloom11.Name = "Hatch4";
            bloom11.Value = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(26)))), ((int)(((byte)(26)))));
            bloom12.Name = "Shade1";
            bloom12.Value = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(7)))), ((int)(((byte)(7)))), ((int)(((byte)(7)))));
            bloom13.Name = "Shade2";
            bloom13.Value = System.Drawing.Color.Transparent;
            this.flowTheme1.Colors = new Bloom[] {
        bloom1,
        bloom2,
        bloom3,
        bloom4,
        bloom5,
        bloom6,
        bloom7,
        bloom8,
        bloom9,
        bloom10,
        bloom11,
        bloom12,
        bloom13};
            this.flowTheme1.Controls.Add(this.UserConsole);
            this.flowTheme1.Controls.Add(this.SaveDistType);
            this.flowTheme1.Controls.Add(this.WorldNameSave);
            this.flowTheme1.Controls.Add(this.flowButton1);
            this.flowTheme1.Controls.Add(this.DistrictType);
            this.flowTheme1.Customization = "KCgo/xISEv//hAD/KCgo/xYWFv9BQUH/AAAA/ycnJ/8jIyP/HR0d/xoaGv8HBwcy////AA==";
            this.flowTheme1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.flowTheme1.Font = new System.Drawing.Font("Verdana", 8F);
            this.flowTheme1.Image = null;
            this.flowTheme1.Location = new System.Drawing.Point(0, 0);
            this.flowTheme1.Movable = true;
            this.flowTheme1.Name = "flowTheme1";
            this.flowTheme1.NoRounding = false;
            this.flowTheme1.Sizable = true;
            this.flowTheme1.Size = new System.Drawing.Size(766, 390);
            this.flowTheme1.SmartBounds = true;
            this.flowTheme1.TabIndex = 17;
            this.flowTheme1.Text = "APBEMU Panel Advanced";
            this.flowTheme1.TransparencyKey = System.Drawing.Color.Fuchsia;
            // 
            // UserConsole
            // 
            this.UserConsole.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.UserConsole.Location = new System.Drawing.Point(22, 173);
            this.UserConsole.Name = "UserConsole";
            this.UserConsole.Size = new System.Drawing.Size(704, 181);
            this.UserConsole.TabIndex = 14;
            this.UserConsole.Text = "";
            this.UserConsole.TextChanged += new System.EventHandler(this.UserConsole_TextChanged);
            // 
            // SaveDistType
            // 
            bloom14.Name = "DownGradient1";
            bloom14.Value = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
            bloom15.Name = "DownGradient2";
            bloom15.Value = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38)))));
            bloom16.Name = "NoneGradient1";
            bloom16.Value = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38)))));
            bloom17.Name = "NoneGradient2";
            bloom17.Value = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
            bloom18.Name = "Text";
            bloom18.Value = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(132)))), ((int)(((byte)(255)))));
            bloom19.Name = "Border1";
            bloom19.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22)))));
            bloom20.Name = "Border2A";
            bloom20.Value = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
            bloom21.Name = "Border2B";
            bloom21.Value = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
            this.SaveDistType.Colors = new Bloom[] {
        bloom14,
        bloom15,
        bloom16,
        bloom17,
        bloom18,
        bloom19,
        bloom20,
        bloom21};
            this.SaveDistType.Customization = "GBgY/yYmJv8mJib/GBgY//+EAP8WFhb/PDw8/yQkJP8=";
            this.SaveDistType.Font = new System.Drawing.Font("Verdana", 8F);
            this.SaveDistType.Image = null;
            this.SaveDistType.Location = new System.Drawing.Point(503, 130);
            this.SaveDistType.Name = "SaveDistType";
            this.SaveDistType.NoRounding = false;
            this.SaveDistType.Size = new System.Drawing.Size(122, 23);
            this.SaveDistType.TabIndex = 13;
            this.SaveDistType.Text = "Save District Type";
            this.SaveDistType.Transparent = false;
            // 
            // WorldNameSave
            // 
            bloom22.Name = "DownGradient1";
            bloom22.Value = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
            bloom23.Name = "DownGradient2";
            bloom23.Value = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38)))));
            bloom24.Name = "NoneGradient1";
            bloom24.Value = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38)))));
            bloom25.Name = "NoneGradient2";
            bloom25.Value = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
            bloom26.Name = "Text";
            bloom26.Value = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(132)))), ((int)(((byte)(255)))));
            bloom27.Name = "Border1";
            bloom27.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22)))));
            bloom28.Name = "Border2A";
            bloom28.Value = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
            bloom29.Name = "Border2B";
            bloom29.Value = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
            this.WorldNameSave.Colors = new Bloom[] {
        bloom22,
        bloom23,
        bloom24,
        bloom25,
        bloom26,
        bloom27,
        bloom28,
        bloom29};
            this.WorldNameSave.Customization = "GBgY/yYmJv8mJib/GBgY//+EAP8WFhb/PDw8/yQkJP8=";
            this.WorldNameSave.Font = new System.Drawing.Font("Verdana", 8F);
            this.WorldNameSave.Image = null;
            this.WorldNameSave.Location = new System.Drawing.Point(45, 130);
            this.WorldNameSave.Name = "WorldNameSave";
            this.WorldNameSave.NoRounding = false;
            this.WorldNameSave.Size = new System.Drawing.Size(112, 23);
            this.WorldNameSave.TabIndex = 12;
            this.WorldNameSave.Text = "Save World Name";
            this.WorldNameSave.Transparent = false;
            // 
            // flowButton1
            // 
            bloom30.Name = "DownGradient1";
            bloom30.Value = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
            bloom31.Name = "DownGradient2";
            bloom31.Value = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38)))));
            bloom32.Name = "NoneGradient1";
            bloom32.Value = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(38)))), ((int)(((byte)(38)))));
            bloom33.Name = "NoneGradient2";
            bloom33.Value = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
            bloom34.Name = "Text";
            bloom34.Value = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(132)))), ((int)(((byte)(255)))));
            bloom35.Name = "Border1";
            bloom35.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(22)))), ((int)(((byte)(22)))));
            bloom36.Name = "Border2A";
            bloom36.Value = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
            bloom37.Name = "Border2B";
            bloom37.Value = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(36)))), ((int)(((byte)(36)))));
            this.flowButton1.Colors = new Bloom[] {
        bloom30,
        bloom31,
        bloom32,
        bloom33,
        bloom34,
        bloom35,
        bloom36,
        bloom37};
            this.flowButton1.Customization = "GBgY/yYmJv8mJib/GBgY//+EAP8WFhb/PDw8/yQkJP8=";
            this.flowButton1.Font = new System.Drawing.Font("Verdana", 8F);
            this.flowButton1.Image = null;
            this.flowButton1.Location = new System.Drawing.Point(739, 0);
            this.flowButton1.Name = "flowButton1";
            this.flowButton1.NoRounding = false;
            this.flowButton1.Size = new System.Drawing.Size(27, 23);
            this.flowButton1.TabIndex = 11;
            this.flowButton1.Text = "X";
            this.flowButton1.Transparent = false;
            this.flowButton1.Click += new System.EventHandler(this.flowButton1_Click);
            // 
            // DistrictType
            // 
            this.DistrictType.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.DistrictType.Location = new System.Drawing.Point(479, 84);
            this.DistrictType.Name = "DistrictType";
            this.DistrictType.Size = new System.Drawing.Size(166, 40);
            this.DistrictType.TabIndex = 0;
            this.DistrictType.Text = "";
            // 
            // Advanced
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(35)))), ((int)(((byte)(35)))));
            this.ClientSize = new System.Drawing.Size(766, 390);
            this.Controls.Add(this.ConsoleSend);
            this.Controls.Add(this.textBox1);
            this.Controls.Add(this.WorldName);
            this.Controls.Add(this.flowTheme1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Name = "Advanced";
            this.Text = "APBEMU Advanced";
            this.TransparencyKey = System.Drawing.Color.Fuchsia;
            this.flowTheme1.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }
示例#53
0
	void Awake() {
		blur = GetComponent<MotionBlur>();
		bloom = GetComponent<Bloom>();
		origin = transform.position;
		posOffset = target.position - origin;
	}
示例#54
0
 // Set up some typical CSS files we DO want to include, even in 'unpaginated' mode
 private static void CreateCommonCssFiles(Bloom.Book.Book book)
 {
     var collectionFolder = Path.GetDirectoryName(book.FolderPath);
     var settingsCollectionPath = Path.Combine(collectionFolder, "settingsCollectionStyles.css");
     File.WriteAllText(settingsCollectionPath, "body:{font-family: 'Andika New Basic';}");
     var customCollectionPath = Path.Combine(collectionFolder, "customCollectionStyles.css");
     File.WriteAllText(customCollectionPath, "body:{font-family: 'Andika New Basic';}");
     var customBookPath = Path.Combine(book.FolderPath, "customBookStyles.css");
     File.WriteAllText(customBookPath, "body:{font-family: 'Andika New Basic';}");
 }
示例#55
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            Bloom bloom1 = new Bloom();
            Bloom bloom2 = new Bloom();
            Bloom bloom3 = new Bloom();
            Bloom bloom4 = new Bloom();
            Bloom bloom5 = new Bloom();
            Bloom bloom6 = new Bloom();
            Bloom bloom7 = new Bloom();
            Bloom bloom8 = new Bloom();
            Bloom bloom9 = new Bloom();
            Bloom bloom10 = new Bloom();
            Bloom bloom11 = new Bloom();
            Bloom bloom12 = new Bloom();
            Bloom bloom13 = new Bloom();
            Bloom bloom14 = new Bloom();
            Bloom bloom15 = new Bloom();
            Bloom bloom16 = new Bloom();
            Bloom bloom17 = new Bloom();
            Bloom bloom18 = new Bloom();
            Bloom bloom19 = new Bloom();
            Bloom bloom20 = new Bloom();
            Bloom bloom21 = new Bloom();
            Bloom bloom22 = new Bloom();
            Bloom bloom23 = new Bloom();
            Bloom bloom24 = new Bloom();
            Bloom bloom25 = new Bloom();
            Bloom bloom26 = new Bloom();
            Bloom bloom27 = new Bloom();
            Bloom bloom28 = new Bloom();
            Bloom bloom29 = new Bloom();
            Bloom bloom30 = new Bloom();
            Bloom bloom31 = new Bloom();
            Bloom bloom32 = new Bloom();
            Bloom bloom33 = new Bloom();
            Bloom bloom34 = new Bloom();
            Bloom bloom35 = new Bloom();
            Bloom bloom36 = new Bloom();
            Bloom bloom37 = new Bloom();
            Bloom bloom38 = new Bloom();
            Bloom bloom39 = new Bloom();
            Bloom bloom40 = new Bloom();
            Bloom bloom41 = new Bloom();
            Bloom bloom42 = new Bloom();
            Bloom bloom43 = new Bloom();
            Bloom bloom44 = new Bloom();
            Bloom bloom45 = new Bloom();
            Bloom bloom46 = new Bloom();
            Bloom bloom47 = new Bloom();
            Bloom bloom48 = new Bloom();
            Bloom bloom49 = new Bloom();
            Bloom bloom50 = new Bloom();
            Bloom bloom51 = new Bloom();
            Bloom bloom52 = new Bloom();
            this.imageList1 = new System.Windows.Forms.ImageList(this.components);
            this.primeTheme1 = new PrimeTheme();
            this.panel2 = new System.Windows.Forms.Panel();
            this.primeTheme3 = new PrimeTheme();
            this.primeButton2 = new PrimeButton();
            this.textBox3 = new System.Windows.Forms.TextBox();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.primeButton1 = new PrimeButton();
            this.panel1 = new System.Windows.Forms.Panel();
            this.primeTheme2 = new PrimeTheme();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.primeTheme1.SuspendLayout();
            this.panel2.SuspendLayout();
            this.primeTheme3.SuspendLayout();
            this.panel1.SuspendLayout();
            this.primeTheme2.SuspendLayout();
            this.SuspendLayout();
            // 
            // imageList1
            // 
            this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
            this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
            this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
            // 
            // primeTheme1
            // 
            this.primeTheme1.BackColor = System.Drawing.Color.White;
            this.primeTheme1.BorderStyle = System.Windows.Forms.FormBorderStyle.None;
            bloom1.Name = "Sides";
            bloom1.Value = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
            bloom2.Name = "Gradient1";
            bloom2.Value = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252)))));
            bloom3.Name = "Gradient2";
            bloom3.Value = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(242)))));
            bloom4.Name = "TextShade";
            bloom4.Value = System.Drawing.Color.White;
            bloom5.Name = "Text";
            bloom5.Value = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
            bloom6.Name = "Back";
            bloom6.Value = System.Drawing.Color.White;
            bloom7.Name = "Border1";
            bloom7.Value = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
            bloom8.Name = "Border2";
            bloom8.Value = System.Drawing.Color.White;
            bloom9.Name = "Border3";
            bloom9.Value = System.Drawing.Color.White;
            bloom10.Name = "Border4";
            bloom10.Value = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
            this.primeTheme1.Colors = new Bloom[] {
        bloom1,
        bloom2,
        bloom3,
        bloom4,
        bloom5,
        bloom6,
        bloom7,
        bloom8,
        bloom9,
        bloom10};
            this.primeTheme1.Controls.Add(this.panel2);
            this.primeTheme1.Controls.Add(this.primeButton1);
            this.primeTheme1.Controls.Add(this.panel1);
            this.primeTheme1.Customization = "6Ojo//z8/P/y8vL//////1BQUP//////tLS0////////////lpaW/w==";
            this.primeTheme1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.primeTheme1.Font = new System.Drawing.Font("Verdana", 8F);
            this.primeTheme1.Image = null;
            this.primeTheme1.Location = new System.Drawing.Point(0, 0);
            this.primeTheme1.Movable = true;
            this.primeTheme1.Name = "primeTheme1";
            this.primeTheme1.NoRounding = false;
            this.primeTheme1.Sizable = false;
            this.primeTheme1.Size = new System.Drawing.Size(565, 501);
            this.primeTheme1.SmartBounds = true;
            this.primeTheme1.TabIndex = 0;
            this.primeTheme1.Text = "WickedSrv - EOS Edition - Based on Seafight";
            this.primeTheme1.TransparencyKey = System.Drawing.Color.Fuchsia;
            // 
            // panel2
            // 
            this.panel2.BackColor = System.Drawing.Color.White;
            this.panel2.Controls.Add(this.primeTheme3);
            this.panel2.Location = new System.Drawing.Point(24, 337);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(517, 142);
            this.panel2.TabIndex = 1;
            // 
            // primeTheme3
            // 
            this.primeTheme3.BackColor = System.Drawing.Color.White;
            this.primeTheme3.BorderStyle = System.Windows.Forms.FormBorderStyle.None;
            bloom11.Name = "Sides";
            bloom11.Value = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
            bloom12.Name = "Gradient1";
            bloom12.Value = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252)))));
            bloom13.Name = "Gradient2";
            bloom13.Value = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(242)))));
            bloom14.Name = "TextShade";
            bloom14.Value = System.Drawing.Color.White;
            bloom15.Name = "Text";
            bloom15.Value = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
            bloom16.Name = "Back";
            bloom16.Value = System.Drawing.Color.White;
            bloom17.Name = "Border1";
            bloom17.Value = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
            bloom18.Name = "Border2";
            bloom18.Value = System.Drawing.Color.White;
            bloom19.Name = "Border3";
            bloom19.Value = System.Drawing.Color.White;
            bloom20.Name = "Border4";
            bloom20.Value = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
            this.primeTheme3.Colors = new Bloom[] {
        bloom11,
        bloom12,
        bloom13,
        bloom14,
        bloom15,
        bloom16,
        bloom17,
        bloom18,
        bloom19,
        bloom20};
            this.primeTheme3.Controls.Add(this.primeButton2);
            this.primeTheme3.Controls.Add(this.textBox3);
            this.primeTheme3.Controls.Add(this.textBox2);
            this.primeTheme3.Controls.Add(this.label2);
            this.primeTheme3.Controls.Add(this.label1);
            this.primeTheme3.Customization = "6Ojo//z8/P/y8vL//////1BQUP//////tLS0////////////lpaW/w==";
            this.primeTheme3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.primeTheme3.Font = new System.Drawing.Font("Verdana", 8F);
            this.primeTheme3.Image = null;
            this.primeTheme3.Location = new System.Drawing.Point(0, 0);
            this.primeTheme3.Movable = false;
            this.primeTheme3.Name = "primeTheme3";
            this.primeTheme3.NoRounding = false;
            this.primeTheme3.Sizable = false;
            this.primeTheme3.Size = new System.Drawing.Size(517, 142);
            this.primeTheme3.SmartBounds = true;
            this.primeTheme3.TabIndex = 0;
            this.primeTheme3.Text = "Decrypter";
            this.primeTheme3.TransparencyKey = System.Drawing.Color.Fuchsia;
            // 
            // primeButton2
            // 
            bloom21.Name = "DownGradient1";
            bloom21.Value = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(215)))), ((int)(((byte)(215)))));
            bloom22.Name = "DownGradient2";
            bloom22.Value = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
            bloom23.Name = "NoneGradient1";
            bloom23.Value = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
            bloom24.Name = "NoneGradient2";
            bloom24.Value = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(215)))), ((int)(((byte)(215)))));
            bloom25.Name = "NoneGradient3";
            bloom25.Value = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252)))));
            bloom26.Name = "NoneGradient4";
            bloom26.Value = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(242)))));
            bloom27.Name = "Glow";
            bloom27.Value = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            bloom28.Name = "TextShade";
            bloom28.Value = System.Drawing.Color.White;
            bloom29.Name = "Text";
            bloom29.Value = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
            bloom30.Name = "Border1";
            bloom30.Value = System.Drawing.Color.White;
            bloom31.Name = "Border2";
            bloom31.Value = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
            this.primeButton2.Colors = new Bloom[] {
        bloom21,
        bloom22,
        bloom23,
        bloom24,
        bloom25,
        bloom26,
        bloom27,
        bloom28,
        bloom29,
        bloom30,
        bloom31};
            this.primeButton2.Customization = "19fX/+vr6//r6+v/19fX//z8/P/y8vL/////Mv////9QUFD//////7S0tP8=";
            this.primeButton2.Font = new System.Drawing.Font("Verdana", 8F);
            this.primeButton2.Image = null;
            this.primeButton2.Location = new System.Drawing.Point(21, 102);
            this.primeButton2.Name = "primeButton2";
            this.primeButton2.NoRounding = false;
            this.primeButton2.Size = new System.Drawing.Size(110, 23);
            this.primeButton2.TabIndex = 4;
            this.primeButton2.Text = "Decrypt";
            this.primeButton2.Transparent = false;
            this.primeButton2.Click += new System.EventHandler(this.primeButton2_Click);
            // 
            // textBox3
            // 
            this.textBox3.Location = new System.Drawing.Point(135, 60);
            this.textBox3.Multiline = true;
            this.textBox3.Name = "textBox3";
            this.textBox3.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.textBox3.Size = new System.Drawing.Size(361, 65);
            this.textBox3.TabIndex = 3;
            // 
            // textBox2
            // 
            this.textBox2.Location = new System.Drawing.Point(135, 36);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(361, 20);
            this.textBox2.TabIndex = 2;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(18, 63);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(113, 13);
            this.label2.TabIndex = 1;
            this.label2.Text = "Decrypted packet:";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(18, 39);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(111, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Encrypted packet:";
            // 
            // primeButton1
            // 
            bloom32.Name = "DownGradient1";
            bloom32.Value = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(215)))), ((int)(((byte)(215)))));
            bloom33.Name = "DownGradient2";
            bloom33.Value = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
            bloom34.Name = "NoneGradient1";
            bloom34.Value = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
            bloom35.Name = "NoneGradient2";
            bloom35.Value = System.Drawing.Color.FromArgb(((int)(((byte)(215)))), ((int)(((byte)(215)))), ((int)(((byte)(215)))));
            bloom36.Name = "NoneGradient3";
            bloom36.Value = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252)))));
            bloom37.Name = "NoneGradient4";
            bloom37.Value = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(242)))));
            bloom38.Name = "Glow";
            bloom38.Value = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            bloom39.Name = "TextShade";
            bloom39.Value = System.Drawing.Color.White;
            bloom40.Name = "Text";
            bloom40.Value = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
            bloom41.Name = "Border1";
            bloom41.Value = System.Drawing.Color.White;
            bloom42.Name = "Border2";
            bloom42.Value = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
            this.primeButton1.Colors = new Bloom[] {
        bloom32,
        bloom33,
        bloom34,
        bloom35,
        bloom36,
        bloom37,
        bloom38,
        bloom39,
        bloom40,
        bloom41,
        bloom42};
            this.primeButton1.Customization = "19fX/+vr6//r6+v/19fX//z8/P/y8vL/////Mv////9QUFD//////7S0tP8=";
            this.primeButton1.Font = new System.Drawing.Font("Verdana", 8F);
            this.primeButton1.Image = null;
            this.primeButton1.Location = new System.Drawing.Point(528, 3);
            this.primeButton1.Name = "primeButton1";
            this.primeButton1.NoRounding = false;
            this.primeButton1.Size = new System.Drawing.Size(25, 22);
            this.primeButton1.TabIndex = 1;
            this.primeButton1.Text = "X";
            this.primeButton1.Transparent = false;
            this.primeButton1.Click += new System.EventHandler(this.primeButton1_Click);
            // 
            // panel1
            // 
            this.panel1.BackColor = System.Drawing.Color.White;
            this.panel1.Controls.Add(this.primeTheme2);
            this.panel1.Location = new System.Drawing.Point(24, 42);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(517, 289);
            this.panel1.TabIndex = 0;
            // 
            // primeTheme2
            // 
            this.primeTheme2.BackColor = System.Drawing.Color.White;
            this.primeTheme2.BorderStyle = System.Windows.Forms.FormBorderStyle.None;
            bloom43.Name = "Sides";
            bloom43.Value = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
            bloom44.Name = "Gradient1";
            bloom44.Value = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(252)))), ((int)(((byte)(252)))));
            bloom45.Name = "Gradient2";
            bloom45.Value = System.Drawing.Color.FromArgb(((int)(((byte)(242)))), ((int)(((byte)(242)))), ((int)(((byte)(242)))));
            bloom46.Name = "TextShade";
            bloom46.Value = System.Drawing.Color.White;
            bloom47.Name = "Text";
            bloom47.Value = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
            bloom48.Name = "Back";
            bloom48.Value = System.Drawing.Color.White;
            bloom49.Name = "Border1";
            bloom49.Value = System.Drawing.Color.FromArgb(((int)(((byte)(180)))), ((int)(((byte)(180)))), ((int)(((byte)(180)))));
            bloom50.Name = "Border2";
            bloom50.Value = System.Drawing.Color.White;
            bloom51.Name = "Border3";
            bloom51.Value = System.Drawing.Color.White;
            bloom52.Name = "Border4";
            bloom52.Value = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(150)))), ((int)(((byte)(150)))));
            this.primeTheme2.Colors = new Bloom[] {
        bloom43,
        bloom44,
        bloom45,
        bloom46,
        bloom47,
        bloom48,
        bloom49,
        bloom50,
        bloom51,
        bloom52};
            this.primeTheme2.Controls.Add(this.textBox1);
            this.primeTheme2.Customization = "6Ojo//z8/P/y8vL//////1BQUP//////tLS0////////////lpaW/w==";
            this.primeTheme2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.primeTheme2.Font = new System.Drawing.Font("Verdana", 8F);
            this.primeTheme2.Image = null;
            this.primeTheme2.Location = new System.Drawing.Point(0, 0);
            this.primeTheme2.Movable = false;
            this.primeTheme2.Name = "primeTheme2";
            this.primeTheme2.NoRounding = false;
            this.primeTheme2.Sizable = false;
            this.primeTheme2.Size = new System.Drawing.Size(517, 289);
            this.primeTheme2.SmartBounds = true;
            this.primeTheme2.TabIndex = 0;
            this.primeTheme2.Text = "Console";
            this.primeTheme2.TransparencyKey = System.Drawing.Color.Fuchsia;
            // 
            // textBox1
            // 
            this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.textBox1.Location = new System.Drawing.Point(21, 39);
            this.textBox1.Multiline = true;
            this.textBox1.Name = "textBox1";
            this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.textBox1.Size = new System.Drawing.Size(475, 230);
            this.textBox1.TabIndex = 0;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(565, 501);
            this.Controls.Add(this.primeTheme1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Name = "Form1";
            this.Text = "Form1";
            this.TransparencyKey = System.Drawing.Color.Fuchsia;
            this.Load += new System.EventHandler(this.Form1_Load);
            this.primeTheme1.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.primeTheme3.ResumeLayout(false);
            this.primeTheme3.PerformLayout();
            this.panel1.ResumeLayout(false);
            this.primeTheme2.ResumeLayout(false);
            this.primeTheme2.PerformLayout();
            this.ResumeLayout(false);

        }
示例#56
0
 private EpubMakerAdjusted CreateEpubMaker(Bloom.Book.Book book)
 {
     return new EpubMakerAdjusted(book, new BookThumbNailer(_thumbnailer.Object));
 }
 /// <summary>
 /// Loads graphics content needed to display the world
 /// </summary>
 /// <param name="graphicsDevice"></param>
 public void LoadContent(GraphicsDevice graphicsDevice)
 {
     lineBatch = new LineBatch(graphicsDevice);
     pointBatch = new PointBatch(graphicsDevice);
     spriteBatch = new SpriteBatch(graphicsDevice);
     bloom = new Bloom(graphicsDevice, spriteBatch);
 }
示例#58
0
 void Awake()
 {
     _bloom = GetComponent<Bloom>();
 }