refactor: relocate constants in screen stores
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
import gsap from "gsap";
|
||||
|
||||
export const ACHIEVEMENTS_LINE_HEIGHT = 14;
|
||||
export const ACHIEVEMENTS_HEADER_Y = 20;
|
||||
export const ACHIEVEMENTS_LIST_START_Y = ACHIEVEMENTS_HEADER_Y + 55;
|
||||
export const ACHIEVEMENTS_BOTTOM_START_Y = 10;
|
||||
export const ACHIEVEMENTS_TOP_SCREEN_COUNT = Math.floor(
|
||||
(LOGICAL_HEIGHT - ACHIEVEMENTS_LIST_START_Y) / ACHIEVEMENTS_LINE_HEIGHT,
|
||||
);
|
||||
export const ACHIEVEMENTS_X = 55;
|
||||
|
||||
export const useAchievementsScreen = defineStore("achievementsScreen", {
|
||||
state: () => ({
|
||||
fadeToBlack: {
|
||||
|
||||
Reference in New Issue
Block a user