private void BuildBar() { imageBar = CreateChild<Image2>("bar"); imageBar.sprite = spriteBar; imageBar.material = spriteBarMaterial; imageBar.SetNativeSize(); imageBar.growDirection = growDirection; imageBar.readable = true; imageBar.uvTiling = barImageRepeater; // Cipsoft change }
private void BuildEffectTilled() { effectTilledImageBarMask = CreateChild<Image2>("bar_mask"); effectTilledImageBarMask.sprite = spriteBar; effectTilledImageBarMask.SetNativeSize(); effectTilledImageBarMask.growDirection = growDirection; effectTilledImageBarMask.readable = true; var mask = effectTilledImageBarMask.gameObject.AddComponent<Mask>(); mask.showMaskGraphic = false; effectTilledImageTiles = CreateChild<Image2>("tiles", effectTilledImageBarMask.transform); effectTilledImageTiles.sprite = effectTiledSprite; }
private void BuildBurnBar() { imageBurn = CreateChild<Image2>("burn_bar"); if (effectBurnSprite.sprite) { imageBurn.sprite = effectBurnSprite.sprite; } else { imageBurn.sprite = spriteBar; } imageBurn.material = effectBurnSprite.material; imageBurn.SetNativeSize(); imageBurn.growDirection = growDirection; imageBurn.uvTiling = barImageRepeater; // Cipsoft change }
private void BuildBar() { imageBar = CreateChild<Image2>("bar"); imageBar.sprite = spriteBar; imageBar.SetNativeSize(); imageBar.growDirection = growDirection; imageBar.readable = true; }
private void BuildBurnBar() { imageBurn = CreateChild<Image2>("burn_bar"); imageBurn.sprite = imageBurn.sprite ?? spriteBar; imageBurn.SetNativeSize(); imageBurn.growDirection = growDirection; }
private void BuildBurnBar() { imageBurn = CreateChild<Image2>("burn_bar"); imageBurn.sprite = imageBurn.sprite ?? spriteBar; imageBurn.SetNativeSize(); imageBurn.growDirection = growDirection; imageBurn.uvTiling = barImageRepeater; // Cipsoft change }
private void BuildBar() { imageBar = CreateChild<Image2>("bar"); imageBar.sprite = spriteBar; imageBar.SetNativeSize(); imageBar.growDirection = growDirection; imageBar.readable = true; imageBar.uvTiling = barImageRepeater; // Cipsoft change }