Basic animations
This commit is contained in:
@ -29,6 +29,7 @@ namespace Dawn {
|
||||
std::vector<Asset*> assets;
|
||||
|
||||
vectorAppend(&assets, &PokerGameTextbox::getAssets(assMan));
|
||||
vectorAppend(&assets, &PokerPlayerDisplay::getAssets(assMan));
|
||||
|
||||
return assets;
|
||||
}
|
||||
@ -50,12 +51,12 @@ namespace Dawn {
|
||||
auto pokerGameItem = this->createSceneItem();
|
||||
auto pokerGame = pokerGameItem->addComponent<PokerGame>();
|
||||
|
||||
for(int32_t i = 0; i < 4; i++) {
|
||||
for(int32_t i = 0; i < 5; i++) {
|
||||
auto pokerPlayerInstance = this->createSceneItem();
|
||||
auto pokerPlayer = pokerPlayerInstance->addComponent<PokerPlayer>();
|
||||
|
||||
auto uiPlayer = canvas->addElement<PokerPlayerDisplay>();
|
||||
uiPlayer->setTransform(UI_COMPONENT_ALIGN_STRETCH, UI_COMPONENT_ALIGN_STRETCH, glm::vec4(0, 0, 0, 0), 0);
|
||||
uiPlayer->setTransform(UI_COMPONENT_ALIGN_STRETCH, UI_COMPONENT_ALIGN_STRETCH, glm::vec4(i * 220, 0, 0, 0), 0);
|
||||
uiPlayer->setPlayer(pokerPlayer);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user