-
Notifications
You must be signed in to change notification settings - Fork 21
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
5 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
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
Binary file not shown.
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,18 +1,44 @@ | ||
using ImGuiNET; | ||
using System.Numerics; | ||
using ImGuiNET; | ||
using static CentrED.Application; | ||
|
||
namespace CentrED.UI.Windows; | ||
|
||
public class OptionsWindow : Window | ||
{ | ||
public override string Name => "Options"; | ||
|
||
private Vector4 _virtualLayerFillColor; | ||
private Vector4 _virtualLayerBorderColor; | ||
|
||
|
||
public override void Draw() | ||
{ | ||
if (!Show) | ||
return; | ||
|
||
ImGui.Begin("Options", ref _show, ImGuiWindowFlags.AlwaysAutoResize | ImGuiWindowFlags.NoResize); | ||
ImGui.Text("Nothing to see here (yet) :)"); | ||
if (ImGui.ColorPicker4("Virtual Layer Fill Color", ref _virtualLayerFillColor)) | ||
{ | ||
CEDGame.MapManager.MapEffect.VirtualLayerFillColor = new Microsoft.Xna.Framework.Vector4 | ||
( | ||
_virtualLayerFillColor.X, | ||
_virtualLayerFillColor.Y, | ||
_virtualLayerFillColor.Z, | ||
_virtualLayerFillColor.W | ||
); | ||
} | ||
if (ImGui.ColorPicker4("Virtual Layer Border Color", ref _virtualLayerBorderColor)) | ||
{ | ||
CEDGame.MapManager.MapEffect.VirtualLayerBorderColor = new Microsoft.Xna.Framework.Vector4 | ||
( | ||
_virtualLayerBorderColor.X, | ||
_virtualLayerBorderColor.Y, | ||
_virtualLayerBorderColor.Z, | ||
_virtualLayerBorderColor.W | ||
); | ||
} | ||
|
||
ImGui.End(); | ||
} | ||
} |