-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc1fc5d
commit e26a13a
Showing
22 changed files
with
1,040 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
object AnimationExportForm: TAnimationExportForm | ||
Left = 1398 | ||
Height = 222 | ||
Top = 243 | ||
Width = 388 | ||
Caption = 'Animation Export Properties' | ||
ClientHeight = 222 | ||
ClientWidth = 388 | ||
LCLVersion = '3.4.0.0' | ||
object EditName: TEdit | ||
Left = 120 | ||
Height = 23 | ||
Top = 24 | ||
Width = 211 | ||
MaxLength = 20 | ||
ParentFont = False | ||
TabOrder = 0 | ||
end | ||
object AnimationName: TLabel | ||
Left = 75 | ||
Height = 15 | ||
Top = 32 | ||
Width = 32 | ||
Caption = 'Name' | ||
ParentColor = False | ||
ParentFont = False | ||
end | ||
object AnimationType: TLabel | ||
Left = 24 | ||
Height = 15 | ||
Top = 102 | ||
Width = 83 | ||
Caption = 'Animation Type' | ||
ParentColor = False | ||
ParentFont = False | ||
end | ||
object ComboMap: TComboBox | ||
Left = 120 | ||
Height = 23 | ||
Top = 102 | ||
Width = 211 | ||
ItemHeight = 15 | ||
ParentFont = False | ||
Style = csDropDownList | ||
TabOrder = 1 | ||
end | ||
object CompilerType: TLabel | ||
Left = 58 | ||
Height = 15 | ||
Top = 64 | ||
Width = 49 | ||
Caption = 'Compiler' | ||
ParentColor = False | ||
ParentFont = False | ||
end | ||
object ComboCompiler: TComboBox | ||
Left = 120 | ||
Height = 23 | ||
Top = 64 | ||
Width = 211 | ||
ItemHeight = 15 | ||
ParentFont = False | ||
Style = csDropDownList | ||
TabOrder = 2 | ||
OnChange = ComboCompilerChange | ||
end | ||
object OKButton: TButton | ||
Left = 280 | ||
Height = 25 | ||
Top = 176 | ||
Width = 75 | ||
Caption = 'OK' | ||
ParentFont = False | ||
TabOrder = 3 | ||
OnClick = OKButtonClick | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
unit animationexport; | ||
|
||
{$mode ObjFPC}{$H+} | ||
|
||
interface | ||
|
||
uses | ||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,AnimBase,rwxgf,rmcodegen; | ||
|
||
type | ||
|
||
{ TAnimationExportForm } | ||
|
||
TAnimationExportForm = class(TForm) | ||
ComboCompiler: TComboBox; | ||
ComboMap: TComboBox; | ||
CompilerType: TLabel; | ||
EditName: TEdit; | ||
AnimationName: TLabel; | ||
AnimationType: TLabel; | ||
OKButton: TButton; | ||
procedure ComboCompilerChange(Sender: TObject); | ||
procedure OKButtonClick(Sender: TObject); | ||
private | ||
|
||
public | ||
EO : AnimExportFormatRec; | ||
procedure SetExportProps(props : AnimExportFormatRec); | ||
procedure GetExportProps(var props : AnimExportFormatRec); | ||
procedure InitComboBoxes; | ||
procedure UpdateComboBoxes(compiler : integer); | ||
|
||
end; | ||
|
||
var | ||
AnimationExportForm: TAnimationExportForm; | ||
|
||
implementation | ||
|
||
{$R *.lfm} | ||
|
||
procedure TAnimationExportForm.ComboCompilerChange(Sender: TObject); | ||
begin | ||
UpdateComboBoxes(ComboCompiler.ItemIndex); | ||
end; | ||
|
||
procedure TAnimationExportForm.OKButtonClick(Sender: TObject); | ||
begin | ||
modalresult:= mrOk; | ||
end; | ||
|
||
procedure TAnimationExportForm.SetExportProps(props : AnimExportFormatRec); | ||
begin | ||
EO:=props; | ||
EditName.caption:=EO.Name; | ||
ComboCompiler.ItemIndex:=EO.Lan; | ||
ComboMap.ItemIndex:=EO.AnimateFormat; | ||
UpdateComboBoxes(ComboCompiler.ItemIndex); | ||
end; | ||
|
||
procedure TAnimationExportForm.GetExportProps(var props : AnimExportFormatRec); | ||
begin | ||
props.Name:=EditName.caption; | ||
props.Lan:=ComboCompiler.ItemIndex; | ||
props.AnimateFormat:=ComboMap.ItemIndex; | ||
end; | ||
|
||
procedure TAnimationExportForm.InitComboBoxes; | ||
begin | ||
EditName.caption:=''; | ||
Combocompiler.Items.Clear; | ||
ComboCompiler.Items.Add('None'); | ||
ComboCompiler.Items.Add('Basic'); | ||
ComboCompiler.Items.Add('Basic (Line#)'); | ||
ComboCompiler.Items.Add('C'); | ||
ComboCompiler.Items.Add('Pascal'); | ||
ComboCompiler.Items.Add('FreeBASIC'); | ||
ComboCompiler.Items.Add('QB64'); | ||
ComboCompiler.Items.Add('Amiga QuickBasic AQB'); | ||
ComboCompiler.Items.Add('BAM Basic'); | ||
ComboCompiler.ItemIndex:=0; | ||
|
||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.ItemIndex:=0; | ||
|
||
end; | ||
|
||
procedure TAnimationExportForm.UpdateComboBoxes(compiler : integer); | ||
begin | ||
case compiler of NoLan:begin | ||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.ItemIndex:=0; | ||
end; | ||
BasicLan:begin | ||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.Items.Add('Simple'); | ||
ComboMap.ItemIndex:=EO.AnimateFormat; | ||
end; | ||
BasicLNLan:begin | ||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.Items.Add('Simple'); | ||
ComboMap.ItemIndex:=EO.AnimateFormat; | ||
end; | ||
PascalLan:begin | ||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.Items.Add('Simple'); | ||
ComboMap.ItemIndex:=EO.AnimateFormat; | ||
end; | ||
CLan:begin | ||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.Items.Add('Simple'); | ||
ComboMap.ItemIndex:=EO.AnimateFormat; | ||
end; | ||
FBBasicLan:begin | ||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.Items.Add('Simple'); | ||
ComboMap.ItemIndex:=EO.AnimateFormat; | ||
end; | ||
QB64BasicLan:begin | ||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.Items.Add('Simple'); | ||
ComboMap.ItemIndex:=EO.AnimateFormat; | ||
end; | ||
AQBBasicLan:begin | ||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.Items.Add('Simple'); | ||
ComboMap.ItemIndex:=EO.AnimateFormat; | ||
end; | ||
BAMBasicLan:begin | ||
ComboMap.Items.Clear; | ||
ComboMap.Items.Add('None'); | ||
ComboMap.Items.Add('Simple'); | ||
ComboMap.ItemIndex:=EO.AnimateFormat; | ||
end; | ||
|
||
end; | ||
end; | ||
|
||
|
||
end. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.