Skip to content

Commit

Permalink
add some tweeks
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDex committed Mar 12, 2024
1 parent 495b91b commit ce1ebd2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 134 deletions.
131 changes: 5 additions & 126 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"docsKeyword": "PixiJS, UI, components"
},
"dependencies": {
"pixi.js": "^8.0.0",
"pixi.js": "^8.0.1",
"tweedle.js": "^2.1.0",
"typed-signals": "^2.5.0"
},
Expand Down Expand Up @@ -90,9 +90,6 @@
"storybook": "7.6.17",
"typescript": "^5.4.2"
},
"peerDependencies": {
"pixi.js": "^8.0.0"
},
"publishConfig": {
"access": "public"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const DynamicUpdate: StoryFn<typeof args> = ({

let currentTexture = 'button_hover.png';

button.onUp.connect(() =>
button.onPress.connect(() =>
{
currentTexture = randomItem([
`button_hover.png`,
Expand Down
6 changes: 3 additions & 3 deletions src/utils/helpers/styles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TextStyle } from 'pixi.js';
import { TextStyleOptions } from 'pixi.js';

export const defaultTextStyle = new TextStyle({
export const defaultTextStyle: TextStyleOptions = {
fill: 0xffffff,
fontSize: 42,
fontWeight: 'bold',
Expand All @@ -11,4 +11,4 @@ export const defaultTextStyle = new TextStyle({
blur: 3,
angle: 0
}
});
};

0 comments on commit ce1ebd2

Please sign in to comment.