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

Method cursorOverride

source/frontend/StarActionBar.cpp:298–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298Maybe<String> ActionBar::cursorOverride(Vec2I const&) {
299 if (m_customBarHover && m_player->inventory()->swapSlotItem())
300 return m_config.getString("linkCursor");
301 return {};
302}
303
304void ActionBar::customBarClick(uint8_t index, bool primary) {
305 if (auto swapItem = m_player->inventory()->swapSlotItem()) {

Callers 1

updateCursorMethod · 0.45

Calls 3

swapSlotItemMethod · 0.80
inventoryMethod · 0.80
getStringMethod · 0.80

Tested by

no test coverage detected