MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setupBookmarkEntry

Function setupBookmarkEntry

source/frontend/StarBookmarkInterface.cpp:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void setupBookmarkEntry(WidgetPtr const& entry, TeleportBookmark const& bookmark) {
76 entry->fetchChild<LabelWidget>("name")->setText(bookmark.bookmarkName);
77 entry->fetchChild<LabelWidget>("planetName")->setText(bookmark.targetName);
78 entry->fetchChild<ImageWidget>("icon")->setImage(strf("/interface/bookmarks/icons/{}.png", bookmark.icon));
79}
80
81}

Callers 1

TeleportDialogMethod · 0.85

Calls 3

strfFunction · 0.85
setImageMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected