-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
30 additions
and
82 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1 @@ | ||
import ImgAncho from 'img/stages/S2_Stage_Ancho-V_Games.png'; | ||
import ImgArowana from 'img/stages/S2_Stage_Arowana_Mall.png'; | ||
import ImgBlackbelly from 'img/stages/S2_Stage_Blackbelly_Skatepark.png'; | ||
import ImgCamp from 'img/stages/S2_Stage_Camp_Triggerfish.png'; | ||
import ImgGoby from 'img/stages/S2_Stage_Goby_Arena.png'; | ||
import ImgHumpback from 'img/stages/S2_Stage_Humpback_Pump_Track.png'; | ||
import ImgInkblot from 'img/stages/S2_Stage_Inkblot_Art_Academy.png'; | ||
import ImgKelp from 'img/stages/S2_Stage_Kelp_Dome.png'; | ||
import ImgMakoMart from 'img/stages/S2_Stage_MakoMart.png'; | ||
import ImgManta from 'img/stages/S2_Stage_Manta_Maria.png'; | ||
import ImgMoray from 'img/stages/S2_Stage_Moray_Towers.png'; | ||
import ImgMusselforge from 'img/stages/S2_Stage_Musselforge_Fitness.png'; | ||
import ImgNew from 'img/stages/S2_Stage_New_Albacore_Hotel.png'; | ||
import ImgPiranha from 'img/stages/S2_Stage_Piranha_Pit.png'; | ||
import ImgPort from 'img/stages/S2_Stage_Port_Mackerel.png'; | ||
import ImgShellendorf from 'img/stages/S2_Stage_Shellendorf_Institute.png'; | ||
import ImgShifty from 'img/stages/S2_Stage_Shifty_Station.png'; | ||
import ImgSnapper from 'img/stages/S2_Stage_Snapper_Canal.png'; | ||
import ImgStarfish from 'img/stages/S2_Stage_Starfish_Mainstage.png'; | ||
import ImgSturgeon from 'img/stages/S2_Stage_Sturgeon_Shipyard.png'; | ||
import ImgThe from 'img/stages/S2_Stage_The_Reef.png'; | ||
import ImgWahoo from 'img/stages/S2_Stage_Wahoo_World.png'; | ||
import ImgWalleye from 'img/stages/S2_Stage_Walleye_Warehouse.png'; | ||
import ImgSkipper from 'img/stages/S2_Stage_Skipper_Pavilion.png'; | ||
import ImgUnknown from 'img/stages/unknown-stage.png'; | ||
import ImgMuseum from 'img/stages/S3_Stage_Museum_d_Alfonsino.png'; | ||
import ImgScorch from 'img/stages/S3_Scorch_Gorge.png'; | ||
import ImgEeltail from 'img/stages/S3_Eeltail_Alley.png'; | ||
import ImgHagglefish from 'img/stages/S3HagglefishMarketIcon.png'; | ||
import ImgUndertow from 'img/stages/S3UndertowSpillwayIcon.png'; | ||
import ImgMincemeat from 'img/stages/S3MincemeatMetalworksIcon.png'; | ||
import ImgHammerhead from 'img/stages/S3HammerheadBridgeIcon.png'; | ||
import ImgMahi from 'img/stages/S3MahiMahiResortIcon.png'; | ||
import ImgFlounder from 'img/stages/S3_Stage_Flounder_Heights.png'; | ||
import ImgBrinewater from 'img/stages/S3_Brinewater_Springs.png'; | ||
|
||
export const DASHBOARD_BUNDLE_NAME = 'ipl-overlay-controls'; | ||
|
||
export const mapNameToImagePath: Record<string, string> = { | ||
'Ancho-V Games': ImgAncho, | ||
'Arowana Mall': ImgArowana, | ||
'Blackbelly Skatepark': ImgBlackbelly, | ||
'Camp Triggerfish': ImgCamp, | ||
'Goby Arena': ImgGoby, | ||
'Humpback Pump Track': ImgHumpback, | ||
'Inkblot Art Academy': ImgInkblot, | ||
'Kelp Dome': ImgKelp, | ||
MakoMart: ImgMakoMart, | ||
'Manta Maria': ImgManta, | ||
'Moray Towers': ImgMoray, | ||
'Musselforge Fitness': ImgMusselforge, | ||
'New Albacore Hotel': ImgNew, | ||
'Piranha Pit': ImgPiranha, | ||
'Port Mackerel': ImgPort, | ||
'Shellendorf Institute': ImgShellendorf, | ||
'Shifty Station': ImgShifty, | ||
'Snapper Canal': ImgSnapper, | ||
'Starfish Mainstage': ImgStarfish, | ||
'Sturgeon Shipyard': ImgSturgeon, | ||
'The Reef': ImgThe, | ||
'Wahoo World': ImgWahoo, | ||
'Walleye Warehouse': ImgWalleye, | ||
'Skipper Pavilion': ImgSkipper, | ||
'Museum d\'Alfonsino': ImgMuseum, | ||
'Scorch Gorge': ImgScorch, | ||
'Eeltail Alley': ImgEeltail, | ||
'Hagglefish Market': ImgHagglefish, | ||
'Undertow Spillway': ImgUndertow, | ||
'Mincemeat Metalworks': ImgMincemeat, | ||
'Hammerhead Bridge': ImgHammerhead, | ||
'Mahi-Mahi Resort': ImgMahi, | ||
'Flounder Heights': ImgFlounder, | ||
'Brinewater Springs': ImgBrinewater, | ||
'Unknown Stage': ImgUnknown, | ||
Counterpick: ImgUnknown | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { AssetPaths } from 'schemas'; | ||
import { defineStore } from 'pinia'; | ||
import { DASHBOARD_BUNDLE_NAME } from '../constants'; | ||
import { createReplicantStoreInitializer } from './storeHelper'; | ||
import ImgUnknown from 'img/stages/unknown-stage.png'; | ||
|
||
const assetPaths = nodecg.Replicant<AssetPaths>('assetPaths', DASHBOARD_BUNDLE_NAME); | ||
|
||
interface AssetPathStore { | ||
assetPaths: AssetPaths; | ||
} | ||
|
||
export const useAssetPathStore = defineStore('assetPaths', { | ||
state: (): AssetPathStore => ({ | ||
assetPaths: null | ||
}), | ||
getters: { | ||
getStageImagePath: state => | ||
(stageName: string) => state.assetPaths.stageImages[stageName] ?? ImgUnknown | ||
} | ||
}); | ||
|
||
export const initAssetPathStore = createReplicantStoreInitializer([assetPaths], useAssetPathStore); |