MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DisplayNetDLLHelp

Function DisplayNetDLLHelp

Descent3/multi_ui.cpp:634–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634void DisplayNetDLLHelp(const char *topic) {
635 // samir- converted to newui.
636 newuiTiledWindow menu_wnd;
637 newuiSheet *sheet;
638 int exit_menu = 0;
639 char str[128];
640
641 SetScreenMode(SM_MENU);
642
643 // Create our buttons
644 snprintf(str, sizeof(str), "%s: %s", TXT_REALHELP, topic);
645
646 menu_wnd.Create(str, 0, 0, HELP_MULTI_MENU_W, HELP_MULTI_MENU_H);
647 sheet = menu_wnd.GetSheet();
648
649 sheet->NewGroup(NULL, 10, 30);
650 sheet->AddText(HelpText1);
651 sheet->AddText(HelpText2);
652 sheet->AddText(HelpText3);
653 sheet->AddText(HelpText4);
654
655 sheet->NewGroup(NULL, (HELP_MULTI_MENU_W - 140), HELP_MULTI_MENU_H - 95, NEWUI_ALIGN_HORIZ);
656 sheet->AddButton(TXT_CLOSE, UID_OK);
657
658 menu_wnd.Open();
659
660 // Menu loop
661 while (!exit_menu) {
662 int res;
663
664 res = menu_wnd.DoUI();
665
666 // handle all UI results.
667 switch (res) {
668 case UID_OK:
669 exit_menu = 1;
670 break;
671 }
672 }
673
674 menu_wnd.Close();
675 menu_wnd.Destroy();
676}
677
678int AutoConnectPXO() {
679 // char seldll[_MAX_PATH];

Callers 1

MainMultiplayerMenuFunction · 0.85

Calls 10

SetScreenModeFunction · 0.85
GetSheetMethod · 0.80
NewGroupMethod · 0.80
AddTextMethod · 0.80
AddButtonMethod · 0.80
CreateMethod · 0.45
OpenMethod · 0.45
DoUIMethod · 0.45
CloseMethod · 0.45
DestroyMethod · 0.45

Tested by

no test coverage detected