Стартовый пул
This commit is contained in:
BIN
bgracontrols/test/test_bcimagebutton_alpha/button.png
Normal file
BIN
bgracontrols/test/test_bcimagebutton_alpha/button.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
BIN
bgracontrols/test/test_bcimagebutton_alpha/button2.png
Normal file
BIN
bgracontrols/test/test_bcimagebutton_alpha/button2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
bgracontrols/test/test_bcimagebutton_alpha/test.ico
Normal file
BIN
bgracontrols/test/test_bcimagebutton_alpha/test.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 134 KiB |
160
bgracontrols/test/test_bcimagebutton_alpha/test.lpi
Normal file
160
bgracontrols/test/test_bcimagebutton_alpha/test.lpi
Normal file
@@ -0,0 +1,160 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<CONFIG>
|
||||
<ProjectOptions>
|
||||
<Version Value="12"/>
|
||||
<PathDelim Value="\"/>
|
||||
<General>
|
||||
<Flags>
|
||||
<CompatibilityMode Value="True"/>
|
||||
</Flags>
|
||||
<SessionStorage Value="InProjectDir"/>
|
||||
<Title Value="test"/>
|
||||
<Scaled Value="True"/>
|
||||
<ResourceType Value="res"/>
|
||||
<UseXPManifest Value="True"/>
|
||||
<XPManifest>
|
||||
<DpiAware Value="True"/>
|
||||
</XPManifest>
|
||||
<Resources Count="3">
|
||||
<Resource_0 FileName="button.png" Type="RCDATA" ResourceName="BUTTON"/>
|
||||
<Resource_1 FileName="button2.png" Type="RCDATA" ResourceName="BUTTON2"/>
|
||||
<Resource_2 FileName="title_bath3.gif" Type="RCDATA" ResourceName="TITLE_BATH3"/>
|
||||
</Resources>
|
||||
</General>
|
||||
<BuildModes Count="3">
|
||||
<Item1 Name="Default" Default="True"/>
|
||||
<Item2 Name="Debug">
|
||||
<CompilerOptions>
|
||||
<Version Value="11"/>
|
||||
<PathDelim Value="\"/>
|
||||
<Target>
|
||||
<Filename Value="test"/>
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir)"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Parsing>
|
||||
<SyntaxOptions>
|
||||
<IncludeAssertionCode Value="True"/>
|
||||
</SyntaxOptions>
|
||||
</Parsing>
|
||||
<CodeGeneration>
|
||||
<Checks>
|
||||
<IOChecks Value="True"/>
|
||||
<RangeChecks Value="True"/>
|
||||
<OverflowChecks Value="True"/>
|
||||
<StackChecks Value="True"/>
|
||||
</Checks>
|
||||
<VerifyObjMethodCallValidity Value="True"/>
|
||||
</CodeGeneration>
|
||||
<Linking>
|
||||
<Debugging>
|
||||
<DebugInfoType Value="dsDwarf2Set"/>
|
||||
<UseHeaptrc Value="True"/>
|
||||
<TrashVariables Value="True"/>
|
||||
<UseExternalDbgSyms Value="True"/>
|
||||
</Debugging>
|
||||
<Options>
|
||||
<Win32>
|
||||
<GraphicApplication Value="True"/>
|
||||
</Win32>
|
||||
</Options>
|
||||
</Linking>
|
||||
</CompilerOptions>
|
||||
</Item2>
|
||||
<Item3 Name="Release">
|
||||
<CompilerOptions>
|
||||
<Version Value="11"/>
|
||||
<PathDelim Value="\"/>
|
||||
<Target>
|
||||
<Filename Value="test"/>
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir)"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<CodeGeneration>
|
||||
<SmartLinkUnit Value="True"/>
|
||||
<Optimizations>
|
||||
<OptimizationLevel Value="3"/>
|
||||
</Optimizations>
|
||||
</CodeGeneration>
|
||||
<Linking>
|
||||
<Debugging>
|
||||
<GenerateDebugInfo Value="False"/>
|
||||
</Debugging>
|
||||
<LinkSmart Value="True"/>
|
||||
<Options>
|
||||
<Win32>
|
||||
<GraphicApplication Value="True"/>
|
||||
</Win32>
|
||||
</Options>
|
||||
</Linking>
|
||||
</CompilerOptions>
|
||||
</Item3>
|
||||
</BuildModes>
|
||||
<PublishOptions>
|
||||
<Version Value="2"/>
|
||||
<UseFileFilters Value="True"/>
|
||||
</PublishOptions>
|
||||
<RunParams>
|
||||
<FormatVersion Value="2"/>
|
||||
</RunParams>
|
||||
<RequiredPackages Count="2">
|
||||
<Item1>
|
||||
<PackageName Value="bgracontrols"/>
|
||||
</Item1>
|
||||
<Item2>
|
||||
<PackageName Value="LCL"/>
|
||||
</Item2>
|
||||
</RequiredPackages>
|
||||
<Units Count="2">
|
||||
<Unit0>
|
||||
<Filename Value="test.lpr"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
</Unit0>
|
||||
<Unit1>
|
||||
<Filename Value="umain.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<ComponentName Value="Form1"/>
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
</Unit1>
|
||||
</Units>
|
||||
</ProjectOptions>
|
||||
<CompilerOptions>
|
||||
<Version Value="11"/>
|
||||
<PathDelim Value="\"/>
|
||||
<Target>
|
||||
<Filename Value="test"/>
|
||||
</Target>
|
||||
<SearchPaths>
|
||||
<IncludeFiles Value="$(ProjOutDir)"/>
|
||||
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
|
||||
</SearchPaths>
|
||||
<Linking>
|
||||
<Debugging>
|
||||
<DebugInfoType Value="dsDwarf2Set"/>
|
||||
</Debugging>
|
||||
<Options>
|
||||
<Win32>
|
||||
<GraphicApplication Value="True"/>
|
||||
</Win32>
|
||||
</Options>
|
||||
</Linking>
|
||||
</CompilerOptions>
|
||||
<Debugging>
|
||||
<Exceptions Count="3">
|
||||
<Item1>
|
||||
<Name Value="EAbort"/>
|
||||
</Item1>
|
||||
<Item2>
|
||||
<Name Value="ECodetoolError"/>
|
||||
</Item2>
|
||||
<Item3>
|
||||
<Name Value="EFOpenError"/>
|
||||
</Item3>
|
||||
</Exceptions>
|
||||
</Debugging>
|
||||
</CONFIG>
|
22
bgracontrols/test/test_bcimagebutton_alpha/test.lpr
Normal file
22
bgracontrols/test/test_bcimagebutton_alpha/test.lpr
Normal file
@@ -0,0 +1,22 @@
|
||||
program test;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
uses
|
||||
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
||||
cthreads,
|
||||
{$ENDIF}{$ENDIF}
|
||||
Interfaces, // this includes the LCL widgetset
|
||||
Forms, umain
|
||||
{ you can add units after this };
|
||||
|
||||
{$R *.res}
|
||||
|
||||
begin
|
||||
RequireDerivedFormResource:=True;
|
||||
Application.Scaled:=True;
|
||||
Application.Initialize;
|
||||
Application.CreateForm(TForm1, Form1);
|
||||
Application.Run;
|
||||
end.
|
||||
|
BIN
bgracontrols/test/test_bcimagebutton_alpha/title_bath3.gif
Normal file
BIN
bgracontrols/test/test_bcimagebutton_alpha/title_bath3.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 419 KiB |
@@ -0,0 +1 @@
|
||||
https://polycount.com/discussion/comment/1966572/#Comment_1966572
|
66
bgracontrols/test/test_bcimagebutton_alpha/umain.lfm
Normal file
66
bgracontrols/test/test_bcimagebutton_alpha/umain.lfm
Normal file
@@ -0,0 +1,66 @@
|
||||
object Form1: TForm1
|
||||
Left = 397
|
||||
Height = 240
|
||||
Top = 119
|
||||
Width = 320
|
||||
Caption = 'My Epic Game Title Screen'
|
||||
ClientHeight = 240
|
||||
ClientWidth = 320
|
||||
OnCreate = FormCreate
|
||||
LCLVersion = '2.1.0.0'
|
||||
object BGRASpriteAnimation1: TBGRASpriteAnimation
|
||||
Left = 0
|
||||
Height = 240
|
||||
Top = 0
|
||||
Width = 320
|
||||
AnimInvert = False
|
||||
AnimPosition = 1
|
||||
AnimRepeat = 0
|
||||
AnimRepeatLap = 0
|
||||
AnimSpeed = 1000
|
||||
AnimStatic = False
|
||||
AutoSize = False
|
||||
Center = True
|
||||
Proportional = True
|
||||
SpriteCount = 1
|
||||
SpriteFillOpacity = 255
|
||||
SpriteFlipMode = flNone
|
||||
SpriteKeyColor = clNone
|
||||
SpriteResampleFilter = rfLinear
|
||||
SpriteResampleMode = rmSimpleStretch
|
||||
SpriteRotation = rtNone
|
||||
Stretch = True
|
||||
Tile = False
|
||||
Align = alClient
|
||||
Caption = 'BGRASpriteAnimation1'
|
||||
end
|
||||
object BCImageButton1: TBCImageButton
|
||||
Left = 184
|
||||
Height = 128
|
||||
Top = 104
|
||||
Width = 128
|
||||
Anchors = [akRight, akBottom]
|
||||
Animation = False
|
||||
BitmapFile = 'BUTTON'
|
||||
BitmapOptions.Direction = sdVertical
|
||||
Caption = 'Start'
|
||||
Font.Color = clWhite
|
||||
Font.Height = 30
|
||||
OnMouseMove = BCImageButton1MouseMove
|
||||
ParentFont = False
|
||||
end
|
||||
object BCImageButton2: TBCImageButton
|
||||
Left = 48
|
||||
Height = 128
|
||||
Top = 8
|
||||
Width = 128
|
||||
AlphaTestValue = 100
|
||||
Animation = False
|
||||
BitmapFile = 'BUTTON2'
|
||||
BitmapOptions.Direction = sdVertical
|
||||
Font.Color = clWhite
|
||||
Font.Height = 30
|
||||
OnMouseMove = BCImageButton1MouseMove
|
||||
ParentFont = False
|
||||
end
|
||||
end
|
51
bgracontrols/test/test_bcimagebutton_alpha/umain.pas
Normal file
51
bgracontrols/test/test_bcimagebutton_alpha/umain.pas
Normal file
@@ -0,0 +1,51 @@
|
||||
unit umain;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls,
|
||||
BCImageButton, BGRASpriteAnimation;
|
||||
|
||||
type
|
||||
|
||||
{ TForm1 }
|
||||
|
||||
TForm1 = class(TForm)
|
||||
BCImageButton1: TBCImageButton;
|
||||
BCImageButton2: TBCImageButton;
|
||||
BGRASpriteAnimation1: TBGRASpriteAnimation;
|
||||
procedure BCImageButton1MouseMove(Sender: TObject; Shift: TShiftState; X,
|
||||
Y: Integer);
|
||||
procedure FormCreate(Sender: TObject);
|
||||
private
|
||||
|
||||
public
|
||||
|
||||
end;
|
||||
|
||||
var
|
||||
Form1: TForm1;
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
{ TForm1 }
|
||||
|
||||
procedure TForm1.FormCreate(Sender: TObject);
|
||||
begin
|
||||
BCImageButton1.LoadFromBitmapResource(BCImageButton1.BitmapFile);
|
||||
BCImageButton2.LoadFromBitmapResource(BCImageButton2.BitmapFile);
|
||||
BGRASpriteAnimation1.LoadFromBitmapResource('TITLE_BATH3');
|
||||
end;
|
||||
|
||||
procedure TForm1.BCImageButton1MouseMove(Sender: TObject; Shift: TShiftState;
|
||||
X, Y: Integer);
|
||||
begin
|
||||
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Reference in New Issue
Block a user