最新消息:

火焰特效插件

nsis 永恒心锁 1414浏览 0评论
!AddPluginDir "."
!AddIncludeDir "."
!include MUI2.nsh
; --------------------------------------------------
; General settings.
Name "Flame_Effects Example"
OutFile "NSIS_fire.exe"
SetCompressor /SOLID lzma
ReserveFile "${NSISDIR}Pluginssystem.dll"
ReserveFile firectrl.dll
; --------------------------------------------------
; MUI interface settings.
 !define MUI_FINISHPAGE_NOAUTOCLOSE
; --------------------------------------------------
; Insert MUI pages.
!define MUI_WELCOMEFINISHPAGE_BITMAP WizModernImage-Is.bmp
; Installer pages
!define MUI_PAGE_CUSTOMFUNCTION_PRE pre
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave
!define MUI_WELCOMEPAGE_TEXT "python丝酷网 http://www.yhxs3344.net"
 !insertmacro MUI_PAGE_WELCOME
 !insertmacro MUI_PAGE_INSTFILES
!define MUI_PAGE_CUSTOMFUNCTION_Pre pre
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave
 !insertmacro MUI_PAGE_FINISH
; --------------------------------------------------
; Languages.
 !insertmacro MUI_LANGUAGE "english"
Function .onGUIEnd
SetPluginUnload manual
firectrl::disablefire
System::Free
FunctionEnd
Function .onInit
InitPluginsDir
SetOutPath $PLUGINSDIR
File firectrl.dll
SetOutPath $TEMP
FunctionEnd
Function Pre
 System::Call 'user32::LoadImage(i,t,i,i,i,i,) i (0,"$PLUGINSDIRmodern-wizard.bmp",0,0,0,0x10) .s'
Pop $R0
System::Call '$PLUGINSDIRfirectrl::enablefire(i,i,i,i,i) i ($HWNDPARENT,0,0,$R0,50)'
FunctionEnd
Function leave
System::Call '$PLUGINSDIRfirectrl::disablefire()'
FunctionEnd
 Section "Dummy" SecDummy
 SectionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 火焰特效插件

您必须 登录 才能发表评论!