请选择 进入手机版 | 继续访问电脑版

 找回密码
 点一下
查看: 958|回复: 5

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

[复制链接]
发表于 2016-6-21 08:38:04 | 显示全部楼层 |阅读模式
我记得以前就是会显示的,在一次更新后有一层充能就不会显示了
发表于 2016-6-22 18:38:36 | 显示全部楼层
如果你是说多层充能的话,这个本来就不会一直显示冷却吧。只有当充能完全消耗时才会开转。
回复

使用道具 举报

发表于 2016-7-9 11:03:18 | 显示全部楼层
在技能镖旗里勾选显示充能时间

点评

OB~
技能标旗没有这一项,请问在哪里?  详情 回复 发表于 2021-12-28 22:21
回复

使用道具 举报

发表于 2021-12-28 22:21:47 | 显示全部楼层
尼雅德拉 发表于 2016-7-9 11:03
在技能镖旗里勾选显示充能时间

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

使用道具 举报

发表于 2022-4-19 19:36:43 | 显示全部楼层
本帖最后由 Nostalie 于 2022-5-6 22:30 编辑

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

充能进度演示.SC2Map

56.38 KB, 下载次数: 15

回复

使用道具 举报

发表于 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>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-4-18 17:04 , Processed in 0.336580 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表