geroinnn one
Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Помогите подправить скрипт чтобы были буквы белым цветом а фон чёрным Код: ; --- Source: AC2 part 22.iss ------------------------------------------------------------ [Setup] WizardImageFile=D:\gameinformer_01.bmp AppName=Assassin's Creed 2 AppVerName=Assassin's Creed 2 AppPublisher=repack_by_geroinnn AppPublisherURL=http://torrents.megalan.ru/ AppSupportURL=http://torrents.megalan.ru/ AppUpdatesURL=http://torrents.megalan.ru/ DefaultDirName=D:\Assassin's Creed II DefaultGroupName=R.G.geroinnn\Assassin's Creed 2 OutputDir=D:\Инсталяторы\Assassin's Creed 2_REPACK OutputBaseFilename=setup_by_geroinnn SetupIconFile=D:\Aria\ac2.ico Compression=lzma SolidCompression=yes [Languages] Name: "russian"; MessagesFile: "compiler:Default.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked Name: dop; Description: Установить доп ПО; GroupDescription: Системные задачи: [Icons] Name: "{group}\Assassin's Creed 2"; Filename: "{app}\AssassinsCreedIIGame.exe" Name: "{commondesktop}\Assassin's Creed 2"; Filename: "{app}\AssassinsCreedIIGame.exe"; Tasks: desktopicon [Run] Filename: {src}\Assassin's Creed II.exe; WorkingDir: {app}; Parameters: -x -y -s2 -d.; StatusMsg: Идет распаковка данных, подождите пожалуйста...; Flags: runasoriginaluser Filename: {src}\DirectX\DXSETUP.exe; Description: обновить directx Filename: {src}\VCRedist\vcredist_x86.exe; Description: установить redist Filename: {src}\GameLauncher\UbisoftGameLauncherInstaller.exe; Description: установить UbisoftGameLauncher [Messages] BeveledLabel=RepacK by geroinnn. [UninstallDelete] Name: {app}\*.*; Type: filesandordirs [Registry] Root: HKLM; SubKey: SOFTWARE\Ubisoft\Assassin's Creed II; ValueType: string; ValueName: InstallDir; ValueData: {app}\Ubisoft\Assassin's Creed II Root: HKLM; SubKey: SOFTWARE\Ubisoft\Assassin's Creed II; ValueType: string; ValueName: Language; ValueData: Russian Root: HKLM; SubKey: SOFTWARE\Ubisoft\Assassin's Creed II\GameUpdate; ValueType: string; ValueName: execPath; ValueData: ValueData: {app}\Ubisoft\Assassin's Creed II Root: HKLM; SubKey: SOFTWARE\Ubisoft\Assassin's Creed II\GameUpdate; ValueType: string; ValueName: info; ValueData: 6a969888664347d4868abde730649a6d Root: HKLM; SubKey: SOFTWARE\Ubisoft\Assassin's Creed II\GameUpdate; ValueType: string; ValueName: installdir; ValueData: {app}\Ubisoft\Assassin's Creed II Root: HKLM; SubKey: SOFTWARE\Ubisoft\Assassin's Creed II\GameUpdate; ValueType: string; ValueName: language; ValueData: us [Messages] DiskSpaceMBLabel=Требуется как минимум 7 GB свободного дискового пространства. [Files] Source: "BASS.dll"; DestDir: "{tmp}"; Flags: dontcopy noencryption Source: "sound.mp3"; DestDir: "{tmp}"; Flags: dontcopy noencryption nocompression Source: "MusicButtor.bmp"; DestDir: "{tmp}"; Flags: dontcopy [Code] const BASS_ACTIVE_STOPPED = 0; BASS_ACTIVE_PLAYING = 1; BASS_ACTIVE_STALLED = 2; BASS_ACTIVE_PAUSED = 3; BASS_SAMPLE_LOOP = 4; var mp3Handle: HWND; mp3Name: String; PlayButton, PauseButton, StopButton: TPanel; PlayImage, PauseImage, StopImage: TBitmapImage; PlayLabel, PauseLabel, StopLabel: TLabel; MouseLabel: Tlabel; function BASS_Init(device: Integer; freq, flags: DWORD; win: hwnd; CLSID: Integer): Boolean; external 'BASS_Init@files:BASS.dll stdcall delayload'; function BASS_StreamCreateFile(mem: BOOL; f: PChar; offset: DWORD; length: DWORD; flags: DWORD): DWORD; external 'BASS_StreamCreateFile@files:BASS.dll stdcall delayload'; function BASS_Start(): Boolean; external 'BASS_Start@files:BASS.dll stdcall delayload'; function BASS_ChannelPlay(handle: DWORD; restart: BOOL): Boolean; external 'BASS_ChannelPlay@files:BASS.dll stdcall delayload'; function BASS_ChannelIsActive(handle: DWORD): Integer; external 'BASS_ChannelIsActive@files:BASS.dll stdcall delayload'; function BASS_ChannelPause(handle: DWORD): Boolean; external 'BASS_ChannelPause@files:BASS.dll stdcall delayload'; function BASS_Stop(): Boolean; external 'BASS_Stop@files:BASS.dll stdcall delayload'; function BASS_Pause(): Boolean; external 'BASS_Pause@files:BASS.dll stdcall delayload'; function BASS_Free(): Boolean; external 'BASS_Free@files:BASS.dll stdcall delayload'; procedure PlayMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin PlayImage.Left := -96 end; procedure PlayMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin PlayImage.Left := 0 end; procedure PlayMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin if PlayImage.Left <> -96 then PlayImage.Left := -192 StopImage.Left := -64 end; procedure PauseMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin PauseImage.Left := -128 end; procedure PauseMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin PauseImage.Left := -32 end; procedure PauseMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin if PauseImage.Left <> -128 then PauseImage.Left := -224 StopImage.Left := -64 end; procedure StopMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin StopImage.Left := -160 end; procedure StopMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin StopImage.Left := -64 end; procedure StopMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin if StopImage.Left <> -160 then StopImage.Left := -256 PlayImage.Left := 0 PauseImage.Left := -32 end; procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin PlayImage.Left := 0 PauseImage.Left := -32 StopImage.Left := -64 end; function InitializeSetup1(): Boolean; begin ExtractTemporaryFile('BASS.dll'); ExtractTemporaryFile('sound.mp3'); mp3Name := ExpandConstant('{tmp}\sound.mp3'); BASS_Init(-1, 44100, 0, 0, 0); mp3Handle := BASS_StreamCreateFile(FALSE, PChar(mp3Name), 0, 0, BASS_SAMPLE_LOOP); BASS_Start(); BASS_ChannelPlay(mp3Handle, False); Result := True; end; procedure PlayButtonOnClick(Sender: TObject); begin case BASS_ChannelIsActive(mp3Handle) of BASS_ACTIVE_PAUSED: begin BASS_ChannelPlay(mp3Handle, False); PlayButton.Hide PauseButton.Show end; BASS_ACTIVE_STOPPED: begin BASS_Init(-1, 44100, 0, 0, 0); mp3Handle := BASS_StreamCreateFile(FALSE, PChar(mp3Name), 0, 0, BASS_SAMPLE_LOOP); BASS_Start(); BASS_ChannelPlay(mp3Handle, False); PlayButton.Hide PauseButton.Show end; end; end; procedure PauseButtonOnClick(Sender: TObject); begin BASS_ChannelPause(mp3Handle); PauseButton.Hide PlayButton.Show end; procedure StopButtonOnClick(Sender: TObject); begin BASS_Stop(); BASS_Free(); PauseButton.Hide PlayButton.Show end; procedure InitializeWizard1(); begin ExtractTemporaryFile('MusicButtor.bmp') MouseLabel := TLabel.Create(WizardForm) MouseLabel.Width := WizardForm.Width MouseLabel.Height := WizardForm.Height MouseLabel.Autosize := False MouseLabel.Transparent := True MouseLabel.OnMouseMove := @MouseMove MouseLabel.Parent := WizardForm PlayButton := TPanel.Create(WizardForm) PlayButton.Left := 50 PlayButton.Top := 320 PlayButton.Width := 32 PlayButton.Height := 33 PlayButton.Cursor := crHand PlayButton.ShowHint := True PlayButton.Hint := 'Воспроизведение музыки' PlayButton.OnClick := @PlayButtonOnClick PlayButton.Parent := WizardForm PlayImage := TBitmapImage.Create(WizardForm) PlayImage.Left := 0 PlayImage.Top := 0 PlayImage.Width := 288 PlayImage.Height := 33 PlayImage.Enabled := False PlayImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\MusicButtor.bmp')) PlayImage.Parent := PlayButton // PlayImage.ReplaceColor:=$E2E2E2 PlayImage.ReplaceWithColor:=clBtnFace PlayLabel := TLabel.Create(WizardForm) PlayLabel.Width := PlayButton.Width PlayLabel.Height := PlayButton.Height PlayLabel.Autosize := False PlayLabel.Transparent := True PlayLabel.OnClick := @PlayButtonOnClick PlayLabel.OnMouseDown := @PlayMouseDown PlayLabel.OnMouseUp := @PlayMouseUp PlayLabel.OnMouseMove := @PlayMouseMove PlayLabel.Parent := PlayButton PauseButton := TPanel.Create(WizardForm) PauseButton.Left := 50 PauseButton.Top := 320 PauseButton.Width := 32 PauseButton.Height := 33 PauseButton.Cursor := crHand PauseButton.ShowHint := True PauseButton.Hint := 'Приостановить музыку' PauseButton.OnClick := @PauseButtonOnClick PauseButton.Parent := WizardForm PauseImage := TBitmapImage.Create(WizardForm) PauseImage.Left := -32 PauseImage.Top := 0 PauseImage.Width := 288 PauseImage.Height := 33 PauseImage.Enabled := False PauseImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\MusicButtor.bmp')) PauseImage.Parent := PauseButton // PauseImage.ReplaceColor:=$E2E2E2 PauseImage.ReplaceWithColor:=clBtnFace PauseLabel := TLabel.Create(WizardForm) PauseLabel.Width := PauseButton.Width PauseLabel.Height := PauseButton.Height PauseLabel.Autosize := False PauseLabel.Transparent := True PauseLabel.OnClick := @PauseButtonOnClick PauseLabel.OnMouseDown := @PauseMouseDown PauseLabel.OnMouseUp := @PauseMouseUp PauseLabel.OnMouseMove := @PauseMouseMove PauseLabel.Parent := PauseButton StopButton := TPanel.Create(WizardForm) StopButton.Left := 82 StopButton.Top := 320 StopButton.Width := 32 StopButton.Height := 33 StopButton.Cursor := crHand StopButton.ShowHint := True StopButton.Hint := 'Остановить музыку' StopButton.OnClick := @StopButtonOnClick StopButton.Parent := WizardForm StopImage := TBitmapImage.Create(WizardForm) StopImage.Left := -64 StopImage.Top := 0 StopImage.Width := 288 StopImage.Height := 33 StopImage.Enabled := False StopImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\MusicButtor.bmp')) StopImage.Parent := StopButton // StopImage.ReplaceColor:=$E2E2E2 StopImage.ReplaceWithColor:=clBtnFace StopLabel := TLabel.Create(WizardForm) StopLabel.Width := StopButton.Width StopLabel.Height := StopButton.Height StopLabel.Autosize := False StopLabel.Transparent := True StopLabel.OnClick := @StopButtonOnClick StopLabel.OnMouseDown := @StopMouseDown StopLabel.OnMouseUp := @StopMouseUp StopLabel.OnMouseMove := @StopMouseMove StopLabel.Parent := StopButton end; procedure DeinitializeSetup1(); begin BASS_Stop(); BASS_Free(); end; [Setup] ; --- Source: AC2 part 23.iss ------------------------------------------------------------ [Files] Source: BackgroundImage.bmp; DestDir: embedded; Flags: dontcopy noencryption [Code] function ShowWindow(hWnd, nCmdShow: LongWord): LongWord; external 'ShowWindow@user32.dll stdcall'; Procedure BackgroundOnActivate(Sender: TObject); Begin if WizardForm.Visible then WizardForm.Show End; Procedure InitializeWizard2; var BackgroundForm: TForm; BackgroundImage: TBitmapImage; Begin BackgroundForm:= TForm.Create(nil) BackgroundForm.BorderStyle:= bsNone BackgroundForm.OnActivate:= @BackgroundOnActivate; ShowWindow(BackgroundForm.Handle, sw_ShowMaximized) // фоновое окно на полный экран BackgroundImage:= TBitmapImage.Create(BackgroundForm) BackgroundImage.Align:= alClient BackgroundImage.Stretch:= True ExtractTemporaryFile('BackgroundImage.bmp') BackgroundImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\BackgroundImage.bmp')) BackgroundImage.Parent:= BackgroundForm end; [Setup] ; --- Dispatching code ------------------------------------------------------------ [Code] function InitializeSetup(): Boolean; begin Result := InitializeSetup1(); if not Result then exit; end; procedure InitializeWizard(); begin InitializeWizard1(); InitializeWizard2(); end; procedure DeinitializeSetup(); begin DeinitializeSetup1(); |
|