@@ -17,18 +17,26 @@ static UIWidgets::LabelPositions MapLabel(C_LabelPos pos) {
1717 return UIWidgets::LabelPositions::Near;
1818}
1919
20- extern " C" HM_API void C_AddMenuEntry (const char * label, const char * cvar) {
21- GhostshipGui::mGhostshipMenu ->AddMenuEntry (label, cvar);
20+ // extern "C" void C_AddMenuEntry(const char* label, const char* cvar) {
21+ // GhostshipGui::mGhostshipMenu->AddMenuEntry(label, cvar);
22+ // }
23+
24+ extern " C" void C_AddSidebarEntry (const char * label, int column) {
25+ GhostshipGui::mGhostshipMenu ->AddSidebarEntry (" Mods" , label, column);
2226}
2327
24- extern " C" HM_API void C_AddSidebarEntry (const char * menu, const char * label, int column) {
25- GhostshipGui::mGhostshipMenu ->AddSidebarEntry (menu, label, column);
28+ // extern "C" void C_RemoveMenuEntry(const char* entryName) {
29+ // GhostshipGui::mGhostshipMenu->RemoveMenuEntry(entryName);
30+ // }
31+
32+ extern " C" void C_RemoveSidebarEntry (const char * sidebarName) {
33+ GhostshipGui::mGhostshipMenu ->RemoveSidebarEntry (" Mods" , sidebarName);
2634}
2735
28- extern " C" HM_API void C_AddWidget (const char * section, const char * sidebar, int column, const char * label, C_WidgetConfig* config) {
36+ extern " C" void C_AddWidget (const char * sidebar, int column, const char * label, C_WidgetConfig* config) {
2937 if (!config) return ;
3038
31- WidgetPath path = { section , sidebar, static_cast <SectionColumns>(column) };
39+ WidgetPath path = { " Mods " , sidebar, static_cast <SectionColumns>(column) };
3240
3341 // 1. Begin the Widget Builder Chain
3442 WidgetInfo& widget = GhostshipGui::mGhostshipMenu ->AddWidget (path, label, static_cast <WidgetType>(config->type ))
0 commit comments