blob: ce84de77b56578e762d62deba08b1025cb67f698 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "IFloatingWindowScript.h"
#include "api/Sprite.h"
#include "types.h"
using namespace crepe;
void IFloatingWindowScript::init(){
this->disable_all_sprites();
}
void IFloatingWindowScript::disable_all_sprites(){
RefVector<Sprite> sprites = this->get_components_by_tag<Sprite>(this->tag);
for(Sprite & sprite : sprites){
sprite.active = false;
}
}
void IFloatingWindowScript::enable_all_sprites(){
RefVector<Sprite> sprites = this->get_components_by_tag<Sprite>(this->tag);
for(Sprite & sprite : sprites){
sprite.active = true;
}
}
|