コード例 #1
0
 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
 }
コード例 #2
0
    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;
    }
コード例 #3
0
    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
    }
コード例 #4
0
    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;
    }
コード例 #5
0
 private void BuildBar() {
     imageBar = CreateChild<Image2>("bar");
     imageBar.sprite = spriteBar;
     imageBar.SetNativeSize();
     imageBar.growDirection = growDirection;
     imageBar.readable = true;
 }
コード例 #6
0
 private void BuildBurnBar() {
     imageBurn = CreateChild<Image2>("burn_bar");
     imageBurn.sprite = imageBurn.sprite ?? spriteBar;
     imageBurn.SetNativeSize();
     imageBurn.growDirection = growDirection;
 }
コード例 #7
0
 private void BuildBurnBar()
 {
     imageBurn = CreateChild<Image2>("burn_bar");
     imageBurn.sprite = imageBurn.sprite ?? spriteBar;
     imageBurn.SetNativeSize();
     imageBurn.growDirection = growDirection;
     imageBurn.uvTiling = barImageRepeater;    // Cipsoft change
 }
コード例 #8
0
 private void BuildBar()
 {
     imageBar = CreateChild<Image2>("bar");
     imageBar.sprite = spriteBar;
     imageBar.SetNativeSize();
     imageBar.growDirection = growDirection;
     imageBar.readable = true;
     imageBar.uvTiling = barImageRepeater;   // Cipsoft change
 }