void CommentTask::update() { CommentStack::Access(FlowString::Type::TOP).update(); CommentStack::Access(FlowString::Type::MIDDLE).update(); CommentStack::Access(FlowString::Type::BOTTOM).update(); CommentOption::update(); for (auto itr = member->comments.begin(); itr != member->comments.end();) { itr->update(); if (!itr->isActive()) { member->comments.erase(itr); } else { ++itr; continue; } } if (env.isPressKey(GLFW_KEY_LEFT_CONTROL) && env.isPushKey(GLFW_KEY_C)) { member->comments.push_back(FlowString("wwwwwwwwwww")); } }
void PagePumpTrans::InitTransModel(int nType,CString strUnit,int nCurModel) { m_nType = nType; m_strUnit = strUnit; m_nTransModel = nCurModel; if(m_nType == 0) { InitDataCmb(Pump::ms_TransModel2,8,m_cmbTransModel,m_nTransModel); m_dlgNoInerialTrans.SetType(None,_T("转速"));//泵曲线(离心泵) } else { InitDataCmb(Pump::ms_TransModel1,2,m_cmbTransModel,m_nTransModel); m_dlgNoInerialTrans.SetType(None,FlowString());//指定流量(溶剂泵)变速泵 } CombineDlg(m_nTransModel); SetUnit(strUnit); }
void CommentTask::setup() { member->fonts = { Font("res/Font/meiryo.ttc"), Font("res/Font/meiryo.ttc"), Font("res/Font/meiryo.ttc") }; member->fonts.at(0).size((CommentWindow::size.y() / CommentOption::lines) * 0.5f); member->fonts.at(1).size((CommentWindow::size.y() / CommentOption::lines) * 0.8f); member->fonts.at(2).size((CommentWindow::size.y() / CommentOption::lines) * 1.0f); member->comments.push_back(FlowString("wwwwwwwwwwwwwwwwww", FlowString::Size::SMALL)); member->comments.push_back(FlowString("↓草", FlowString::Size::BIG)); member->comments.push_back(FlowString("適当なコメントです")); member->comments.push_back(FlowString("トキメキ☆ボムラッシュ")); member->comments.push_back(FlowString("い つ も の")); member->comments.push_back(FlowString("どうしてこうなった")); member->comments.push_back(FlowString("テスト")); member->comments.push_back(FlowString("よくわからん")); member->comments.push_back(FlowString("お腹すいた")); member->comments.push_back(FlowString("(´・ω・`)")); member->comments.push_back(FlowString("スプラトゥーン")); member->comments.push_back(FlowString("おk")); member->comments.push_back(FlowString("同時にコメントを打つと重なってしまうのか")); member->comments.push_back(FlowString("どうしたらいいものかねー")); member->comments.push_back(FlowString("でもまあなんとかなるっしょ")); member->comments.push_back(FlowString("wwwwwwwwwww", FlowString::Type::BOTTOM)); member->comments.push_back(FlowString("コメント", FlowString::Type::BOTTOM)); }