Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Feb 13, 2024
1 parent 30656f1 commit c17b083
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions src/chrome/src/inject/properties/AnimatedSpritePropsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,19 @@ export const AnimatedSpritePropsPlugin: PropertyPlugin<AnimatedSprite> = {
props: [
{ section: 'Transform', property: 'roundPixels', propertyProps: { label: 'Round Pixels' }, type: 'boolean' },
// { section: 'Animated Sprite', property: 'textures', propertyProps: { label: 'Textures' }, type: 'text' },
{ section: 'Animated Sprite', property: 'animationSpeed', propertyProps: { label: 'Animation Speed' }, type: 'number' },
{
section: 'Animated Sprite',
property: 'animationSpeed',
propertyProps: { label: 'Animation Speed' },
type: 'number',
},
{ section: 'Animated Sprite', property: 'loop', propertyProps: { label: 'Loop' }, type: 'boolean' },
{ section: 'Animated Sprite', property: 'updateAnchor', propertyProps: { label: 'Update Anchor' }, type: 'boolean' },
{
section: 'Animated Sprite',
property: 'updateAnchor',
propertyProps: { label: 'Update Anchor' },
type: 'boolean',
},
{ section: 'Animated Sprite', property: 'totalFrames', propertyProps: { label: 'Total Frames' }, type: 'number' },
{ section: 'Animated Sprite', property: 'currentFrame', propertyProps: { label: 'Current Frame' }, type: 'number' },
{ section: 'Animated Sprite', property: 'autoUpdate', propertyProps: { label: 'Auto Update' }, type: 'boolean' },
Expand Down
4 changes: 2 additions & 2 deletions src/chrome/src/inject/properties/ContainerPropsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ContainerPropsPlugin: PropertyPlugin = {
return { value: container.constructor.name, prop };
}

if(!pixi) return { value: null, prop };
if (!pixi) return { value: null, prop };

if (value instanceof pixi.Matrix) {
return { value: value.toArray(), prop };
Expand All @@ -39,7 +39,7 @@ export const ContainerPropsPlugin: PropertyPlugin = {
}
const pixi = getPixiWrapper().pixi();

if(!pixi) return;
if (!pixi) return;

if (container[prop as keyof Container] instanceof pixi.Matrix) {
(container[prop as keyof Container] as Matrix).fromArray(value);
Expand Down

0 comments on commit c17b083

Please sign in to comment.