message: Move resource position variable calculations to update()
diff: @@ -150,16 +150,6 @@ void MineOperationsWindow::mineFacility(MineFacility* facility)
  void MineOperationsWindow::updateCounts()
  {
  if (!visible() && !mFacility) { return; }
  -
  - COMMON_METALS_COUNT = std::to_string(mFacility->mine()->commonMetalsAvailable());
  - COMMON_MINERALS_COUNT = std::to_string(mFacility->mine()->commonMineralsAvailable());
  - RARE_METALS_COUNT = std::to_string(mFacility->mine()->rareMetalsAvailable());
  - RARE_MINERALS_COUNT = std::to_string(mFacility->mine()->rareMineralsAvailable());
  -
  - COMMON_METALS_ORE_POSITION = COMMON_METALS_POS - (FONT->width(COMMON_METALS_COUNT) / 2) + 8;
  - COMMON_MINERALS_ORE_POSITION = COMMON_MINERALS_POS - (FONT->width(COMMON_MINERALS_COUNT) / 2) + 8;
  - RARE_METALS_ORE_POSITION = RARE_METALS_POS - (FONT->width(RARE_METALS_COUNT) / 2) + 8;
  - RARE_MINERALS_ORE_POSITION = RARE_MINERALS_POS - (FONT->width(RARE_MINERALS_COUNT) / 2) + 8;
  }
  @@ -274,6 +264,16 @@ void MineOperationsWindow::update()
  renderer.drawLine({mRect.x() + 11, mRect.y() + 200}, {mRect.x() + mRect.width() - 11, mRect.y() + 200}, NAS2D::Color{22, 22, 22});
  + COMMON_METALS_COUNT = std::to_string(mFacility->mine()->commonMetalsAvailable());
  + COMMON_MINERALS_COUNT = std::to_string(mFacility->mine()->commonMineralsAvailable());
  + RARE_METALS_COUNT = std::to_string(mFacility->mine()->rareMetalsAvailable());
  + RARE_MINERALS_COUNT = std::to_string(mFacility->mine()->rareMineralsAvailable());
  +
  + COMMON_METALS_ORE_POSITION = COMMON_METALS_POS - (FONT->width(COMMON_METALS_COUNT) / 2) + 8;
  + COMMON_MINERALS_ORE_POSITION = COMMON_MINERALS_POS - (FONT->width(COMMON_MINERALS_COUNT) / 2) + 8;
  + RARE_METALS_ORE_POSITION = RARE_METALS_POS - (FONT->width(RARE_METALS_COUNT) / 2) + 8;
  + RARE_MINERALS_ORE_POSITION = RARE_MINERALS_POS - (FONT->width(RARE_MINERALS_COUNT) / 2) + 8;
  +
  renderer.drawSubImage(mIcons, {mRect.x() + COMMON_METALS_POS, mRect.y() + 183}, {64, 0, 16, 16});
  renderer.drawSubImage(mIcons, {mRect.x() + COMMON_MINERALS_POS, mRect.y() + 183}, {96, 0, 16, 16});
  renderer.drawSubImage(mIcons, {mRect.x() + RARE_METALS_POS, mRect.y() + 183}, {80, 0, 16, 16});
  