From 283e439edb9316a368967b3054d8b5c49982efd3 Mon Sep 17 00:00:00 2001 From: kts of kettek Date: Sun, 30 Jan 2022 14:13:32 -0800 Subject: [PATCH] Add global styles --- Engine/src/styles.ts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Engine/src/styles.ts diff --git a/Engine/src/styles.ts b/Engine/src/styles.ts new file mode 100644 index 0000000..ae95edb --- /dev/null +++ b/Engine/src/styles.ts @@ -0,0 +1,31 @@ +import * as PIXI from 'pixi.js' + +export const bodyTextStyle = () => { + return new PIXI.TextStyle({ + fontFamily: 'Arial', + fontSize: 30, + dropShadow: true, + fill: ['#ffffff'], + stroke: '#99ff99', + }) +} + +export const buttonHoverStyle = () => { + return new PIXI.TextStyle({ + fontFamily: 'Arial', + fontSize: 50, + dropShadow: true, + stroke: '#ffffff', + fill: '#9999dd', + }) +} + +export const buttonBlurStyle = () => { + return new PIXI.TextStyle({ + fontFamily: 'Arial', + fontSize: 50, + dropShadow: true, + fill: ['#ffffff'], + stroke: '#000000', + }) +}