blob: 8d6c8380338391e715a8177eb1ed2aecdc8908e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "IFloatingWindowScript.h"
#include <crepe/api/Sprite.h>
#include <crepe/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;
}
}
|