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

Function OldListCreate

Descent3/multi_dll_mgr.cpp:918–925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916}
917void NewUIWindowSetFocusOnEditGadget(UIEdit *item, UIWindow *parent) { item->Activate(); }
918void *OldListCreate(UIWindow *parentitem, int id, int x, int y, int w, int h, int flags) {
919 UIListBox *newoldlist;
920 newoldlist = new UIListBox;
921 newoldlist->Create(parentitem, id, x, y, w, h, flags);
922 newoldlist->SetSelectedColor(UICOL_LISTBOX_HI);
923 newoldlist->SetHiliteColor(UICOL_LISTBOX_HI);
924 return newoldlist;
925}
926void OldListRemoveAll(UIListBox *item) { item->RemoveAll(); }
927void OldListAddItem(UIListBox *item, UITextItem *uitext) { item->AddItem(uitext); }
928void OldListRemoveItem(UIListBox *item, UITextItem *txtitem) { item->RemoveItem(txtitem); }

Callers

nothing calls this directly

Calls 3

SetSelectedColorMethod · 0.80
SetHiliteColorMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected