mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-04 22:58:29 +08:00
Fixed bug that would allow you to modify events while debugging after switching areas.
This commit is contained in:
parent
329ca0e539
commit
f1d9f715cb
@ -24,10 +24,8 @@ export class EventSubGraphView extends View {
|
||||
/**
|
||||
* Maps event IDs to GUI data.
|
||||
*/
|
||||
private readonly event_gui_data: Map<
|
||||
QuestEventModel,
|
||||
{ event_view: EventView; position: number }
|
||||
> = new Map();
|
||||
private readonly event_gui_data: Map<QuestEventModel,
|
||||
{ event_view: EventView; position: number }> = new Map();
|
||||
|
||||
private readonly event_container_element = div({
|
||||
className: "quest_editor_EventSubGraphView_event_container",
|
||||
@ -181,6 +179,7 @@ export class EventSubGraphView extends View {
|
||||
const disposer = new Disposer();
|
||||
|
||||
const event_view = disposer.add(new EventView(this.ctrl, event));
|
||||
event_view.enabled.val = this.enabled.val;
|
||||
|
||||
this.event_gui_data.set(event, {
|
||||
event_view,
|
||||
|
@ -120,6 +120,7 @@ export class EventsView extends ResizableView {
|
||||
sub_graph,
|
||||
this.max_edge_depth,
|
||||
);
|
||||
sub_graph_view.enabled.val = this.enabled.val;
|
||||
this.sub_graph_views.set(sub_graph, sub_graph_view);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user