示例#1
0
void ResearchWnd::QueueItemClickedSlot(GG::ListBox::iterator it, const GG::Pt& pt, const GG::Flags<GG::ModKey>& modkeys) {
    if (m_queue_lb->DisplayingValidQueueItems()) {
        QueueRow* queue_row = boost::polymorphic_downcast<QueueRow*>(*it);
        if (!queue_row)
            return;
        ShowTech(queue_row->tech_name);
    }
}
示例#2
0
void ResearchWnd::QueueItemClickedSlot(GG::ListBox::iterator it, const GG::Pt& pt) {
    QueueRow* queue_row = boost::polymorphic_downcast<QueueRow*>(*it);
    if (!queue_row)
        return;
    ShowTech(queue_row->tech_name);
}