#include <MainWindow.h>
◆ ContextMenuHookFunction
◆ DrawContentHookFunction
◆ DrawStyleSubMenuHookFunction
◆ InitHookFunction
◆ PreDrawHookFunction
◆ MainWindow() [1/3]
ArcdpsExtension::MainWindow::MainWindow |
( |
| ) |
|
|
default |
◆ ~MainWindow()
ArcdpsExtension::MainWindow::~MainWindow |
( |
| ) |
|
|
virtual |
◆ MainWindow() [2/3]
ArcdpsExtension::MainWindow::MainWindow |
( |
const MainWindow & |
other | ) |
|
|
delete |
◆ MainWindow() [3/3]
ArcdpsExtension::MainWindow::MainWindow |
( |
MainWindow && |
other | ) |
|
|
deletenoexcept |
◆ CreateComponent()
template<typename T >
requires std::is_base_of_v<
ComponentBase, T>
void ArcdpsExtension::MainWindow::CreateComponent |
( |
| ) |
|
|
inline |
◆ Draw()
void ArcdpsExtension::MainWindow::Draw |
( |
ImGuiWindowFlags |
imGuiWindowFlags = 0 , |
|
|
MainWindowFlags |
mainWindowFlags = 0 |
|
) |
| |
|
virtual |
Draw the Window itself, has to be called in mod_imgui
to draw the window. It will only be drawn if GetOpenVar
returns true.
◆ DrawContent()
virtual void ArcdpsExtension::MainWindow::DrawContent |
( |
| ) |
|
|
protectedpure virtual |
◆ DrawContextMenu()
virtual void ArcdpsExtension::MainWindow::DrawContextMenu |
( |
| ) |
|
|
protectedpure virtual |
◆ DrawOptionCheckbox()
void ArcdpsExtension::MainWindow::DrawOptionCheckbox |
( |
| ) |
|
Draw a checkbox for this window. Call it in mod_windows
. Check the param of that function yourself.
◆ DrawSizingPolicySubSettings()
virtual void ArcdpsExtension::MainWindow::DrawSizingPolicySubSettings |
( |
SizingPolicy |
sizingPolicy | ) |
|
|
inlineprotectedvirtual |
Used to draw additional settings below the sizingPolicy combobox. Example: Tables might have a specific column size depending on the sizingPolicy.
◆ DrawStyleSettingsSubMenu()
void ArcdpsExtension::MainWindow::DrawStyleSettingsSubMenu |
( |
| ) |
|
|
protectedvirtual |
This can be called to draw the SubMenu of the "Style". It will only draw the submenu and not the Menu option itself.
It is called by default at the bottom of the context menu. You can disable that by setting the flag MainWindowFlags_NoPositionMenu
Reimplemented in ArcdpsExtension::DemoWindow.
◆ getAppearAsInOption()
virtual std::optional< std::string > & ArcdpsExtension::MainWindow::getAppearAsInOption |
( |
| ) |
|
|
protectedpure virtual |
◆ getAppearAsInOptionDefault()
virtual const std::string & ArcdpsExtension::MainWindow::getAppearAsInOptionDefault |
( |
| ) |
|
|
protectedpure virtual |
◆ getCurrentLanguage()
virtual gwlanguage ArcdpsExtension::MainWindow::getCurrentLanguage |
( |
| ) |
|
|
inlineprotectedvirtual |
The current language the plugin is set to. Default to english, this should be overridden to get proper language selection. The current language can be tracked with the unofficial_extras
add-on.
◆ GetInnerWindow()
ImGuiWindow * ArcdpsExtension::MainWindow::GetInnerWindow |
( |
| ) |
|
◆ GetMaxCursorPos()
float ArcdpsExtension::MainWindow::GetMaxCursorPos |
( |
| ) |
|
◆ getMaxHeightActive()
virtual bool ArcdpsExtension::MainWindow::getMaxHeightActive |
( |
| ) |
|
|
inlineprotectedvirtual |
Check if the window should have a maximal height. If this is true, the variable set with SetMaxHeightCursorPos
will be used to determine the max-height. This has to be tracked by the implementation, cause this window has no idea what it's content looks like.
Reimplemented in ArcdpsExtension::DemoWindow.
◆ GetOpenVar()
virtual bool & ArcdpsExtension::MainWindow::GetOpenVar |
( |
| ) |
|
|
pure virtual |
◆ getPadding()
virtual std::optional< ImVec2 > & ArcdpsExtension::MainWindow::getPadding |
( |
| ) |
|
|
protectedpure virtual |
◆ getShowBackground()
virtual bool & ArcdpsExtension::MainWindow::getShowBackground |
( |
| ) |
|
|
protectedpure virtual |
◆ GetShowScrollbar()
virtual bool & ArcdpsExtension::MainWindow::GetShowScrollbar |
( |
| ) |
|
|
pure virtual |
◆ getShowTitleBar()
virtual bool & ArcdpsExtension::MainWindow::getShowTitleBar |
( |
| ) |
|
|
protectedpure virtual |
◆ getSizingPolicy()
virtual SizingPolicy & ArcdpsExtension::MainWindow::getSizingPolicy |
( |
| ) |
|
|
protectedpure virtual |
◆ getTitle()
virtual std::optional< std::string > & ArcdpsExtension::MainWindow::getTitle |
( |
| ) |
|
|
protectedpure virtual |
◆ getTitleDefault()
virtual const std::string & ArcdpsExtension::MainWindow::getTitleDefault |
( |
| ) |
|
|
protectedpure virtual |
◆ getWindowID()
virtual const std::string & ArcdpsExtension::MainWindow::getWindowID |
( |
| ) |
|
|
protectedpure virtual |
◆ Init()
void ArcdpsExtension::MainWindow::Init |
( |
| ) |
|
|
virtual |
Call this function in mod_init
, so the window is fully initialized!
◆ KeyBindPressed()
bool ArcdpsExtension::MainWindow::KeyBindPressed |
( |
| ) |
|
|
protectedvirtual |
Override if you want to add additional checks when the keybind is pressed. e.g. arcdps is hidden
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ RegisterContentHook()
◆ RegisterContextMenuHook()
◆ RegisterDrawStyleSubMenuHook()
◆ RegisterInitHook()
◆ RegisterPreDrawHook()
◆ SetMaxHeightCursorPos()
void ArcdpsExtension::MainWindow::SetMaxHeightCursorPos |
( |
float |
pNewCursorPos = ImGui::GetCursorPosY() | ) |
|
|
virtual |
Function to call to make the max-height work. Call this within your window at a position where the max-height should be. Multiple calls to this will override the value and only the last call will be used for calculation.
Depending on where you call this function it is off by a few pixel. Override it to correct it. Example: The DemoWindow wants to have - GImGui->Style.ItemSpacing.y
added and a ImGui::Table wants to have the inline border added.
Reimplemented in ArcdpsExtension::DemoTableWindow, and ArcdpsExtension::DemoWindow.
◆ mThisWindow
ImGuiWindow* ArcdpsExtension::MainWindow::mThisWindow = nullptr |
|
protected |
The documentation for this class was generated from the following files: