a684258 发表于 2016-6-21 08:38:04

如何让充能类技能显示冷却?

我记得以前就是会显示的,在一次更新后有一层充能就不会显示了

yxxiaobin 发表于 2016-6-22 18:38:36

如果你是说多层充能的话,这个本来就不会一直显示冷却吧。只有当充能完全消耗时才会开转。

尼雅德拉 发表于 2016-7-9 11:03:18

在技能镖旗里勾选显示充能时间

OB~ 发表于 2021-12-28 22:21:47

尼雅德拉 发表于 2016-7-9 11:03
在技能镖旗里勾选显示充能时间

技能标旗没有这一项,请问在哪里?

Nostalie 发表于 2022-4-19 19:36:43

本帖最后由 Nostalie 于 2022-5-6 22:30 编辑

使用UI+触发器的方法干完了还是比较耗资源的
就是每个充能技能需要人为在初始化里设定一下对应哪个按钮(如果是自动创建默认按钮能直接从数据里读
还有默认所有技能充能链接就是Abil/##id##这种

OB~ 发表于 2023-7-4 19:56:22

扒了风暴UI,算是勉强实现了,    <Frame type="Image" name="ChargeBackground">
      <Anchor side="Bottom" relative="$parent" pos="Max" offset="-10" />
      <Anchor side="Right" relative="$parent" pos="Max" offset="-20" />
      <Texture val="@UI/Storm_UI_InGame_ChargeBackground" />
      <Visible val="False" />
      <Animation name="ToggleVisibility">
      <Event event="OnShown" action="Play" frame="$parent/ChargeLabel" />
      <Event event="OnHidden" action="Reset" frame="$parent/ChargeLabel" />
      <Controller type="Visibility" end="Pause">
          <Key type="Bool" time="0" value="true" />
      </Controller>
      </Animation>
    </Frame>
    <Frame type="Image" name="ChargeCompleteImage">
      <Anchor relative="$parent/ChargeBackground" />
      <Texture val="@UI/Storm_UI_InGame_ChargeBackground" />
      <BlendMode val="Add" />
      <Alpha val="0" />
      <Visible val="False" />
      <Animation name="StateChange">
      <Event event="Finished" action="Restart,Play" frame="$parent/ChargeCooldown" />
      <Controller type="Fade" end="Pause">
          <Key type="Curve" time="0" value="0" inout="Fast" />
          <Key type="Curve" time=".05" value="255" inout="Fast" />
          <Key type="Curve" time=".4" value="0" inout="Slow" />
      </Controller>
      </Animation>
      <Animation name="FirstCooldownStarted">
      <Event event="Cooldown" action="Restart,Play" frame="$parent/ChargeCooldown" />
      <Controller type="Visibility" end="Pause">
          <Key type="Bool" time="0" value="True" />
      </Controller>
      </Animation>
    </Frame>
    <Frame type="ProgressBar" name="ChargeCooldown">
      <Anchor side="Top" relative="$parent/ChargeBackground" pos="Mid" offset="-2" />
      <Anchor side="Bottom" relative="$parent/ChargeBackground" pos="Mid" offset="-2" />
      <Anchor side="Left" relative="$parent/ChargeBackground" pos="Mid" offset="-1" />
      <Anchor side="Right" relative="$parent/ChargeBackground" pos="Mid" offset="-1" />
      <Width val="64" />
      <Height val="64" />
      <Visible val="True" />
      <Circular val="true" />
      <CircularStart val="0" />
      <CircularEndOffset val="360" />
      <AcceptsMouse val="false" />
      <Animation name="StateChange">
      <Event event="Cooldown" action="Stop" />
      <Event event="Finished" action="Restart,Play" />
      <Controller type="Visibility" end="Pause" frame="FillImageContainer">
          <Key type="Bool" time="0" value="false" />
      </Controller>
      </Animation>
      <Frame type="Frame" name="FillImageContainer">
      <Anchor relative="$parent" />
      <Frame type="Image" name="FillImage">
          <Anchor relative="$parent" />
          <LayerCount val="1" />
          <BlendMode val="Add" />
          <Texture val="@UI/Storm_UI_Ingame_Charge_Cooldown" layer="0" />
          <TextureType layer="0" val="Circular" />
      </Frame>
      </Frame>
    </Frame>
页: [1]
查看完整版本: 如何让充能类技能显示冷却?