Implement technology tree, research queue by least remaining work, and unit/building tech availability & obsolescence

This commit is contained in:
2026-11-09 20:28:53 +01:00
parent d4bd9f4711
commit d266715418
30 changed files with 1809 additions and 45 deletions
+25
View File
@@ -191,6 +191,31 @@ protected:
void drawActionNeededQueue(QPainter &painter);
void handleActionItemClick(ActionNeededType type, int entityId);
// Technology Tree UI Overlay
void drawTechTreeOverlay(QPainter &painter);
QRect m_techTreeBtnRect;
QRect m_scienceBarHitRect;
QRect m_closeTechTreeBtnRect;
QRect m_clearTechQueueBtnRect;
QRect m_techTreeCanvasRect;
int m_techTreeScrollX = 0;
int m_techTreeScrollY = 0;
bool m_draggingTechTree = false;
bool m_techTreeDragMoved = false;
QPoint m_techTreeDragStartPos;
struct TechNodeHit {
QRect rect;
QString techId;
};
std::vector<TechNodeHit> m_techNodeHits;
struct TechQueueChipHit {
QRect rect;
QString techId;
};
std::vector<TechQueueChipHit> m_techQueueChipHits;
};
#endif // QSCENERENDERER_H