variables renamed
This commit is contained in:
parent
3bf008e6a3
commit
ab90117c3d
@ -25,7 +25,11 @@ uses
|
|||||||
ExtCtrls, StdCtrls, ControlPoint, Buttons, ComCtrls, ToolWin, Menus,
|
ExtCtrls, StdCtrls, ControlPoint, Buttons, ComCtrls, ToolWin, Menus,
|
||||||
atScript, atPascal, AdvMemo, Advmps, XFormMan, XForm, GradientHlpr, cmap;
|
atScript, atPascal, AdvMemo, Advmps, XFormMan, XForm, GradientHlpr, cmap;
|
||||||
|
|
||||||
const NCPS = 10;
|
const
|
||||||
|
NCPS = 10;
|
||||||
|
|
||||||
|
scriptFavsFilename = 'favorites';
|
||||||
|
|
||||||
type
|
type
|
||||||
TOptions = class
|
TOptions = class
|
||||||
public
|
public
|
||||||
@ -3735,7 +3739,7 @@ begin
|
|||||||
There := true;
|
There := true;
|
||||||
if there then exit;
|
if there then exit;
|
||||||
Favorites.Add(Script);
|
Favorites.Add(Script);
|
||||||
Favorites.SaveToFile(AppPath + 'favorites');
|
Favorites.SaveToFile(AppPath + scriptFavsFilename);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TScriptEditor.FormShortCut(var Msg: TWMKey; var Handled: Boolean);
|
procedure TScriptEditor.FormShortCut(var Msg: TWMKey; var Handled: Boolean);
|
||||||
|
@ -2154,7 +2154,9 @@ var
|
|||||||
begin
|
begin
|
||||||
result := Format(' <xform weight="%g" color="%g" ', [weight, color]);
|
result := Format(' <xform weight="%g" color="%g" ', [weight, color]);
|
||||||
if color_speed <> 0 then
|
if color_speed <> 0 then
|
||||||
result := result + format('symmetry="%g" ', [color_speed]);
|
result := result + format('color_speed="%g" ', [color_speed]);
|
||||||
|
if animate <> 0 then
|
||||||
|
result := result + format('animate="%g" ', [color_speed]);
|
||||||
if opacity <> 1 then
|
if opacity <> 1 then
|
||||||
Result := Result + Format('opacity="%g" ', [opacity]);
|
Result := Result + Format('opacity="%g" ', [opacity]);
|
||||||
|
|
||||||
@ -2200,9 +2202,10 @@ var
|
|||||||
begin
|
begin
|
||||||
// result := Format(' <finalxform enabled="%d" color="%g" symmetry="%g" ',
|
// result := Format(' <finalxform enabled="%d" color="%g" symmetry="%g" ',
|
||||||
// [ifthen(IsEnabled, 1, 0), color, symmetry]);
|
// [ifthen(IsEnabled, 1, 0), color, symmetry]);
|
||||||
result := Format(' <finalxform color="%g" ', [color]);
|
Result := ' <finalxform ';
|
||||||
if color_speed <> 0 then result := result + format('symmetry="%g" ', [color_speed]);
|
if color_speed <> 1 then
|
||||||
for i := 0 to nrvar - 1 do begin
|
Result := Result + format('color="%g" color_speed="%g" ', [color, color_speed]);
|
||||||
|
for i := 0 to NrVar - 1 do begin
|
||||||
if vars[i] <> 0 then
|
if vars[i] <> 0 then
|
||||||
Result := Result + varnames(i) + format('="%g" ', [vars[i]]);
|
Result := Result + varnames(i) + format('="%g" ', [vars[i]]);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user