mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Remove uncompleted code
This commit is contained in:
parent
d3c3feb037
commit
0c41787ca5
@ -105,7 +105,8 @@ RandomMapTab::RandomMapTab():
|
||||
|
||||
addCallback("teamAlignments", [&](int)
|
||||
{
|
||||
GH.pushIntT<TeamAlignmentsWidget>(*this);
|
||||
//TODO: support team alignments
|
||||
//GH.pushIntT<TeamAlignmentsWidget>(*this);
|
||||
});
|
||||
|
||||
for(auto road : VLC->terrainTypeHandler->roads())
|
||||
@ -448,24 +449,3 @@ void TemplatesDropBox::setTemplate(const CRmgTemplate * tmpl)
|
||||
assert(GH.topInt().get() == this);
|
||||
GH.popInt(GH.topInt());
|
||||
}
|
||||
|
||||
TeamAlignmentsWidget::TeamAlignmentsWidget(RandomMapTab & randomMapTab):
|
||||
CIntObject(),
|
||||
randomMapTab(randomMapTab)
|
||||
{
|
||||
OBJ_CONSTRUCTION;
|
||||
|
||||
pos.w = 300;
|
||||
pos.h = 300;
|
||||
background = std::make_shared<CFilledTexture>("Bl3DCvex", pos);
|
||||
center(pos);
|
||||
|
||||
buttonOk = std::make_shared<CButton>(Point(43, 240), "MUBCHCK.DEF", CGI->generaltexth->zelp[560], [](){});
|
||||
buttonCancel = std::make_shared<CButton>(Point(193, 240), "MUBCANC.DEF", CGI->generaltexth->zelp[561], [&]()
|
||||
{
|
||||
assert(GH.topInt().get() == this);
|
||||
GH.popInt(GH.topInt());
|
||||
}, SDLK_ESCAPE);
|
||||
|
||||
|
||||
}
|
||||
|
@ -84,18 +84,3 @@ private:
|
||||
std::vector<const CRmgTemplate *> curItems;
|
||||
|
||||
};
|
||||
|
||||
class TeamAlignmentsWidget: public CIntObject
|
||||
{
|
||||
public:
|
||||
TeamAlignmentsWidget(RandomMapTab & randomMapTab);
|
||||
|
||||
private:
|
||||
|
||||
RandomMapTab & randomMapTab;
|
||||
|
||||
std::shared_ptr<CFilledTexture> background;
|
||||
std::shared_ptr<CLabelGroup> labels;
|
||||
std::shared_ptr<CButton> buttonOk, buttonCancel;
|
||||
std::vector<std::shared_ptr<CToggleGroup>> teams;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user