mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2025-10-31 21:50:44 +07:00
release build fix
This commit is contained in:
parent
e97423d34f
commit
8712e57f07
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -10,7 +10,7 @@
|
|||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"**/.[^v]*": true, // hide any files that start with a '.' but keep the .vscode folder
|
"**/.[^v]*": true, // hide any files that start with a '.' but keep the .vscode folder
|
||||||
".vs": true, // Visual Studio settings
|
".vs": true, // Visual Studio settings
|
||||||
"getFNA.sh": true,
|
"getFNA.*": true,
|
||||||
"imgui.ini": true,
|
"imgui.ini": true,
|
||||||
"MonoGameContent.targets": true,
|
"MonoGameContent.targets": true,
|
||||||
"**/obj": true,
|
"**/obj": true,
|
||||||
|
|||||||
@ -11,13 +11,13 @@ namespace project_name
|
|||||||
public override void OnAddedToEntity()
|
public override void OnAddedToEntity()
|
||||||
{
|
{
|
||||||
// register with the ImGuiMangaer letting it know we want to render some IMGUI
|
// register with the ImGuiMangaer letting it know we want to render some IMGUI
|
||||||
Core.GetGlobalManager<ImGuiManager>().RegisterDrawCommand(ImGuiDraw);
|
Core.GetGlobalManager<ImGuiManager>()?.RegisterDrawCommand(ImGuiDraw);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnRemovedFromEntity()
|
public override void OnRemovedFromEntity()
|
||||||
{
|
{
|
||||||
// remove ourselves when we are removed from the Scene
|
// remove ourselves when we are removed from the Scene
|
||||||
Core.GetGlobalManager<ImGuiManager>().UnregisterDrawCommand(ImGuiDraw);
|
Core.GetGlobalManager<ImGuiManager>()?.UnregisterDrawCommand(ImGuiDraw);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImGuiDraw()
|
void ImGuiDraw()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user