源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
382 B

  1. --lua端的ui管理器 提供一些全局接口
  2. -- LuaUiManager = LuaUiManager or BaseClass()
  3. --旧代码 后续的代码请使用ImageExtend组件 然后调用image.alpha来控制
  4. function SetAlpha(image,alpha)
  5. if image then
  6. image.color = Color(image.color.r,image.color.g,image.color.b,alpha)
  7. end
  8. end
  9. function GetAlpha(image)
  10. if image then
  11. return image.color.a
  12. end
  13. end