杉宫竹苑工作室

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2172|回复: 0

NSIS 水纹特效

[复制链接]
发表于 2017-2-26 13:06:49 | 显示全部楼层 |阅读模式

正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  1. /*
  2. <NSIS图片水纹特效脚本>
  3. 脚本编写:zhfi
  4. 特别感谢:Restools,X-Star
  5. */

  6. !AddPluginDir "."
  7. !AddIncludeDir "."

  8. !include MUI.nsh

  9. ; --------------------------------------------------
  10. ; General settings.

  11. Name "WaterCtrl_Test Example"
  12. OutFile "WaterCtrl_Test.exe"
  13. SetCompressor /SOLID lzma   

  14. ReserveFile "${NSISDIR}\Plugins\system.dll"
  15. ReserveFile waterctrl.dll

  16. ; --------------------------------------------------
  17. ; MUI interface settings.
  18. !define MUI_FINISHPAGE_NOAUTOCLOSE
  19. ; --------------------------------------------------
  20. ; Insert MUI pages.
  21. !define MUI_WELCOMEFINISHPAGE_BITMAP WizModernImage-Is.bmp

  22. ; Installer pages
  23. !define MUI_PAGE_CUSTOMFUNCTION_PRE pre
  24. !define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave
  25. !insertmacro MUI_PAGE_WELCOME

  26. !insertmacro MUI_PAGE_INSTFILES

  27. !define MUI_PAGE_CUSTOMFUNCTION_Pre pre
  28. !define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave
  29. !insertmacro MUI_PAGE_FINISH

  30. ; --------------------------------------------------
  31. ; Languages.

  32. !insertmacro MUI_LANGUAGE "SimpChinese"

  33. Function .onGUIEnd
  34. SetPluginUnload manual
  35. waterctrl::disablewater
  36. System::Free
  37. FunctionEnd

  38. Function .onInit
  39. InitPluginsDir
  40. SetOutPath $PLUGINSDIR
  41. File waterctrl.dll
  42. SetOutPath $TEMP
  43. FunctionEnd

  44. Function Pre
  45.   System::Call 'user32::LoadImage(i,t,i,i,i,i,) i (0,"$PLUGINSDIR\modern-wizard.bmp",0,0,0,0x2010) .s'
  46. Pop $R0
  47. System::Call '$PLUGINSDIR\waterctrl::enablewater(i,i,i,i,i,i) i ($HWNDPARENT,0,0,$R0,3,50)'
  48. System::Call '$PLUGINSDIR\waterctrl::setwaterparent(i $HWNDPARENT)'
  49. System::Call '$PLUGINSDIR\waterctrl::flattenwater()'
  50. System::Call '$PLUGINSDIR\waterctrl::waterblob(i,i,i,i) i (70,198,10,1000)'
  51. FunctionEnd

  52. Function leave
  53. System::Call '$PLUGINSDIR\waterctrl::disablewater()'
  54. FunctionEnd

  55. Section "Dummy" SecDummy
  56. SectionEnd
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SgzyStudio

GMT+8, 2024-5-19 14:21 , Processed in 0.101326 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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