| 130 | } |
| 131 | |
| 132 | bool StateBasePlugin::ImGuiBeginWindow_( ImGui::CustomStatePluginWindowParameters params ) |
| 133 | { |
| 134 | if ( !params.collapsed ) |
| 135 | params.collapsed = &dialogIsCollapsed_; |
| 136 | |
| 137 | if ( !params.helpBtnFn ) |
| 138 | { |
| 139 | auto it = RibbonSchemaHolder::schema().items.find( name() ); |
| 140 | if ( it != RibbonSchemaHolder::schema().items.end() && !it->second.helpLink.empty() ) |
| 141 | params.helpBtnFn = [&] () { OpenLink( it->second.helpLink ); }; |
| 142 | } |
| 143 | |
| 144 | return BeginCustomStatePlugin( uiName().c_str(), &dialogIsOpen_, params ); |
| 145 | } |
| 146 | |
| 147 | std::string StateBasePlugin::getTooltip() const |
| 148 | { |