Project1

标题: 请问有没有脚本可以让游戏窗口变成圆形的? [打印本页]

作者: 魔能奶糖猫    时间: 2011-2-14 08:23
标题: 请问有没有脚本可以让游戏窗口变成圆形的?
本帖最后由 魔能奶糖猫 于 2011-2-14 09:54 编辑

如果能在游戏中途切换就更好啦
当然不能切换的话一开始就是圆的也可以。
以下是我尝试的方法
句柄获取是紫苏大人的方法。
将窗体内蓝色的部分透明化
但是$runn不知道为什么没效果,可能是Ruby的or 不能位运算?
  1. $miaomiao1 = Win32API.new('user32','SetLayeredWindowAttributes','l'*4,'l')
  2. $miaomiao2 = Win32API.new('user32','GetWindowLongA','lp','l')
  3. $miaomiao3 = Win32API.new('user32','SetWindowLongA','lll','l')
  4. $tempstr1 = 0x80000
  5. $tempstr2 = -20
  6. $tempstr3 = 0x2
  7. $tempstr4 = 0x1
  8. $runn = $miaomiao2.call(Graphics::HWND,$tempstr2)
  9. $runn = $runn or $tempstr1
  10. $miaomiao3.call(Graphics::HWND, $tempstr2, $runn)
  11. $miaomiao1.call(Graphics::HWND, 16711680, 190,$tempstr4)
复制代码
dsu_plus_rewardpost_czw




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1