#include <DemoTableWindow.h>
◆ DemoTableWindow()
ArcdpsExtension::DemoTableWindow::DemoTableWindow |
( |
| ) |
|
◆ DrawContent()
void ArcdpsExtension::DemoTableWindow::DrawContent |
( |
| ) |
|
|
overrideprotectedvirtual |
Called when the content of the Window should be drawn. This is the main function to draw into the window.
Implements ArcdpsExtension::MainWindow.
◆ DrawContextMenu()
void ArcdpsExtension::DemoTableWindow::DrawContextMenu |
( |
| ) |
|
|
overrideprotectedvirtual |
Subcall inside context menu to add more things to it. Will be called at the beginning of the ContextMenu.
Implements ArcdpsExtension::MainWindow.
◆ getAppearAsInOption()
std::optional< std::string > & ArcdpsExtension::DemoTableWindow::getAppearAsInOption |
( |
| ) |
|
|
overrideprotectedvirtual |
Get the name of this window in the arcdps options. This has to return a string, else ImGui will cause an assert failure. This is set in the options
Implements ArcdpsExtension::MainWindow.
◆ getAppearAsInOptionDefault()
const std::string & ArcdpsExtension::DemoTableWindow::getAppearAsInOptionDefault |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ GetOpenVar()
bool & ArcdpsExtension::DemoTableWindow::GetOpenVar |
( |
| ) |
|
|
overridevirtual |
◆ getPadding()
std::optional< ImVec2 > & ArcdpsExtension::DemoTableWindow::getPadding |
( |
| ) |
|
|
overrideprotectedvirtual |
This padding is optional, if the optional is not set, no change to the window padding is applied. Default should be nullopt.
Implements ArcdpsExtension::MainWindow.
◆ getShowBackground()
bool & ArcdpsExtension::DemoTableWindow::getShowBackground |
( |
| ) |
|
|
overrideprotectedvirtual |
This has to be true
to show the background. Therefore setting it to true
by default is recommended.
Implements ArcdpsExtension::MainWindow.
◆ GetShowScrollbar()
bool & ArcdpsExtension::DemoTableWindow::GetShowScrollbar |
( |
| ) |
|
|
overridevirtual |
This has to be true
to show the scrollbar. Therefore setting it to true
by default is recommended. A scrollbar is only shown when the window is bigger than it's content.
Implements ArcdpsExtension::MainWindow.
◆ getShowTitleBar()
bool & ArcdpsExtension::DemoTableWindow::getShowTitleBar |
( |
| ) |
|
|
overrideprotectedvirtual |
This has to be true
to show the titlebar. Therefore setting it to true
by default is recommended.
Implements ArcdpsExtension::MainWindow.
◆ getSizingPolicy()
SizingPolicy & ArcdpsExtension::DemoTableWindow::getSizingPolicy |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ getTitle()
std::optional< std::string > & ArcdpsExtension::DemoTableWindow::getTitle |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ getTitleDefault()
const std::string & ArcdpsExtension::DemoTableWindow::getTitleDefault |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ getWindowID()
const std::string & ArcdpsExtension::DemoTableWindow::getWindowID |
( |
| ) |
|
|
overrideprotectedvirtual |
The ID appended onto the title to be used by the ImGuiWindow, so it doesn't crash. This should never change!
Implements ArcdpsExtension::MainWindow.
◆ SetMaxHeightCursorPos()
void ArcdpsExtension::DemoTableWindow::SetMaxHeightCursorPos |
( |
float |
pNewCursorPos = ImGui::GetCursorPosY() | ) |
|
|
overridevirtual |
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 from ArcdpsExtension::MainWindow.
The documentation for this class was generated from the following files: