-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve Notification Panel #3913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ import { HoverHighlightController } from "../controllers/HoverHighlightControlle | |
| import { WarshipSelectionController } from "../controllers/WarshipSelectionController"; | ||
| import { GameView as WebGLGameView } from "../render/gl"; | ||
| import { FrameProfiler } from "./FrameProfiler"; | ||
| import { ActionableEvents } from "./layers/ActionableEvents"; | ||
| import { AlertFrame } from "./layers/AlertFrame"; | ||
| import { AttackingTroopsOverlay } from "./layers/AttackingTroopsOverlay"; | ||
| import { AttacksDisplay } from "./layers/AttacksDisplay"; | ||
|
|
@@ -120,6 +121,16 @@ export function createRenderer( | |
| eventsDisplay.game = game; | ||
| eventsDisplay.uiState = uiState; | ||
|
|
||
| const actionableEvents = document.querySelector( | ||
| "actionable-events", | ||
| ) as ActionableEvents; | ||
| if (!(actionableEvents instanceof ActionableEvents)) { | ||
| console.error("actionable events not found"); | ||
| } | ||
| actionableEvents.eventBus = eventBus; | ||
| actionableEvents.game = game; | ||
| actionableEvents.uiState = uiState; | ||
|
|
||
| const attacksDisplay = document.querySelector( | ||
| "attacks-display", | ||
| ) as AttacksDisplay; | ||
|
|
@@ -265,6 +276,7 @@ export function createRenderer( | |
| new HoverHighlightController(game, eventBus, transformHandler, view), | ||
| new AttackingTroopsOverlay(game, transformHandler, eventBus, userSettings), | ||
| eventsDisplay, | ||
| actionableEvents, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verify actionableEvents is valid before adding to layers. Line 279 adds This issue is linked to the guard problem at Line 124-132. Fixing that guard will resolve both issues. 🤖 Prompt for AI Agents |
||
| attacksDisplay, | ||
| chatDisplay, | ||
| buildMenu, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.