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

Method showDurability

source/windowing/StarItemGridWidget.cpp:269–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void ItemGridWidget::showDurability(bool show) {
270 m_showDurability = show;
271
272 if (!m_bag)
273 return;
274
275 for (size_t i = 0; i < m_bag->size() - m_bagOffset && i < (unsigned)m_dimensions[0] * m_dimensions[1]; ++i) {
276 auto itemSlot = m_slots.at(i);
277 itemSlot->showDurability(m_showDurability);
278 }
279}
280
281RectI ItemGridWidget::getScissorRect() const {
282 auto assets = Root::singleton().assets();

Callers 5

setItemBagMethod · 0.45
itemSlotHandlerMethod · 0.45
itemGridHandlerMethod · 0.45
updateMethod · 0.45
ContainerPaneMethod · 0.45

Calls 2

sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected