Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDex committed Aug 28, 2023
1 parent 7924ad4 commit 1178473
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/stories/PixiUI/FancyButton.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Container } from '@pixi/display';
import { toolTip } from '../components/ToolTip';
import { preloadAssets } from '../utils/helpers';
import { FancyButton } from '@pixi/ui';
import { Text } from '@pixi/text';

const testAssets = {
defaultView: `buttons/Button.png`,
Expand Down Expand Up @@ -32,11 +33,20 @@ class LayoutStory

private getButton(): FancyButton
{
const text = new Text(`Click me!!!`, {
fill: 0xffffff,
fontSize: 36,
dropShadow: true,
dropShadowBlur: 4,
dropShadowAngle: 1,
dropShadowDistance: 2,
});

const button = new FancyButton({
defaultView: testAssets.defaultView,
hoverView: testAssets.hoverView,
pressedView: testAssets.pressedView,
text: `Click me!!!`,
text,
animations: {
hover: {
props: {
Expand Down

0 comments on commit 1178473

Please sign in to comment.