mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 11:35:54 +00:00
VideoCommon: add graphics mod editor events
This commit is contained in:
parent
91825578cb
commit
0512bd9a18
1 changed files with 30 additions and 0 deletions
30
Source/Core/VideoCommon/GraphicsModEditor/EditorEvents.h
Normal file
30
Source/Core/VideoCommon/GraphicsModEditor/EditorEvents.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Copyright 2023 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <set>
|
||||
|
||||
#include "Common/HookableEvent.h"
|
||||
#include "VideoCommon/Assets/CustomAssetLibrary.h"
|
||||
#include "VideoCommon/GraphicsModEditor/EditorTypes.h"
|
||||
|
||||
namespace GraphicsModEditor::EditorEvents
|
||||
{
|
||||
// Event called when a target or action is selected
|
||||
using ItemsSelectedEvent = Common::HookableEvent<"ItemsSelected", std::set<SelectableType>>;
|
||||
|
||||
// Event called when a change that can be saved occurs
|
||||
using ChangeOccurredEvent = Common::HookableEvent<"ChangeOccurred">;
|
||||
|
||||
// Event called when an asset should reload, the event provides the asset id
|
||||
// for use in the loader
|
||||
// Will also trigger the above ChangeOccurred event
|
||||
using AssetReloadEvent =
|
||||
Common::HookableEvent<"AssetReload", VideoCommon::CustomAssetLibrary::AssetID>;
|
||||
|
||||
// Event called when requesting an asset in the asset browser
|
||||
using JumpToAssetInBrowserEvent =
|
||||
Common::HookableEvent<"JumpToAssetInBrowser", VideoCommon::CustomAssetLibrary::AssetID>;
|
||||
|
||||
} // namespace GraphicsModEditor::EditorEvents
|
Loading…
Add table
Reference in a new issue