mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-27 19:09:18 +01:00
Revert "refactor(Dalamud): switch to file-scoped namespaces"
This reverts commit b5f34c3199.
This commit is contained in:
parent
d473826247
commit
1561fbac00
325 changed files with 45549 additions and 45209 deletions
|
|
@ -4,45 +4,46 @@ using CheapLoc;
|
|||
using Dalamud.Interface.Windowing;
|
||||
using ImGuiNET;
|
||||
|
||||
namespace Dalamud.Interface.Internal.Windows;
|
||||
|
||||
/// <summary>
|
||||
/// Class responsible for drawing a notifier on screen that gamepad mode is active.
|
||||
/// </summary>
|
||||
internal class GamepadModeNotifierWindow : Window
|
||||
namespace Dalamud.Interface.Internal.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GamepadModeNotifierWindow"/> class.
|
||||
/// Class responsible for drawing a notifier on screen that gamepad mode is active.
|
||||
/// </summary>
|
||||
public GamepadModeNotifierWindow()
|
||||
: base(
|
||||
"###DalamudGamepadModeNotifier",
|
||||
ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoMouseInputs
|
||||
| ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoNav
|
||||
| ImGuiWindowFlags.NoInputs | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoSavedSettings,
|
||||
true)
|
||||
internal class GamepadModeNotifierWindow : Window
|
||||
{
|
||||
this.Size = Vector2.Zero;
|
||||
this.SizeCondition = ImGuiCond.Always;
|
||||
this.IsOpen = false;
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GamepadModeNotifierWindow"/> class.
|
||||
/// </summary>
|
||||
public GamepadModeNotifierWindow()
|
||||
: base(
|
||||
"###DalamudGamepadModeNotifier",
|
||||
ImGuiWindowFlags.NoDecoration | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoMouseInputs
|
||||
| ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoBackground | ImGuiWindowFlags.NoNav
|
||||
| ImGuiWindowFlags.NoInputs | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoSavedSettings,
|
||||
true)
|
||||
{
|
||||
this.Size = Vector2.Zero;
|
||||
this.SizeCondition = ImGuiCond.Always;
|
||||
this.IsOpen = false;
|
||||
|
||||
this.RespectCloseHotkey = false;
|
||||
}
|
||||
this.RespectCloseHotkey = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Draws a light grey-ish, main-viewport-big filled rect in the background draw list alongside a text indicating gamepad mode.
|
||||
/// </summary>
|
||||
public override void Draw()
|
||||
{
|
||||
var drawList = ImGui.GetBackgroundDrawList();
|
||||
drawList.PushClipRectFullScreen();
|
||||
drawList.AddRectFilled(Vector2.Zero, ImGuiHelpers.MainViewport.Size, 0x661A1A1A);
|
||||
drawList.AddText(
|
||||
Vector2.One,
|
||||
0xFFFFFFFF,
|
||||
Loc.Localize(
|
||||
"DalamudGamepadModeNotifierText",
|
||||
"Gamepad mode is ON. Press L1+L3 to deactivate, press R3 to toggle PluginInstaller."));
|
||||
drawList.PopClipRect();
|
||||
/// <summary>
|
||||
/// Draws a light grey-ish, main-viewport-big filled rect in the background draw list alongside a text indicating gamepad mode.
|
||||
/// </summary>
|
||||
public override void Draw()
|
||||
{
|
||||
var drawList = ImGui.GetBackgroundDrawList();
|
||||
drawList.PushClipRectFullScreen();
|
||||
drawList.AddRectFilled(Vector2.Zero, ImGuiHelpers.MainViewport.Size, 0x661A1A1A);
|
||||
drawList.AddText(
|
||||
Vector2.One,
|
||||
0xFFFFFFFF,
|
||||
Loc.Localize(
|
||||
"DalamudGamepadModeNotifierText",
|
||||
"Gamepad mode is ON. Press L1+L3 to deactivate, press R3 to toggle PluginInstaller."));
|
||||
drawList.PopClipRect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue