Sunflower

mail@pastecode.io avatar
unknown
plain_text
a month ago
505 B
3
Indexable
Never
//PlayScene::ConstructUI() 
//Sunflower
btn = new TurretButton("play/grass-base.png", "play/grass-dirt.png",
	Engine::Sprite("play/plant-floor.png", 1446, 212, 0, 0, 0, 0),
	Engine::Sprite("play/Sunflower.png", 1446, 212, 0, 0, 0, 0)
	, 1446, 212, MachineGunTurret::Price);
btn->SetOnClickCallback(std::bind(&PlayScene::UIBtnClicked, this, 6));
UIGroup->AddNewControlObject(btn);


//PlayScene::UIBtnClicked(int id)
else if(id == 6 && money >= SunFlower::cost)
		preview = new SunFlower(0, 0);
Leave a Comment