Implement technology tree, research queue by least remaining work, and unit/building tech availability & obsolescence
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user