Ejemplo n.º 1
0
void TileSet::tile_set_modulate(int p_id, const Color &p_modulate) {

	ERR_FAIL_COND(!tile_map.has(p_id));
	tile_map[p_id].modulate = p_modulate;
	emit_changed();
}
Ejemplo n.º 2
0
void StyleBoxTexture::set_modulate(const Color &p_modulate) {
	if (modulate == p_modulate)
		return;
	modulate = p_modulate;
	emit_changed();
}
Ejemplo n.º 3
0
void CircleShape2D::_update_shape() {

	Physics2DServer::get_singleton()->shape_set_data(get_rid(), radius);
	emit_changed();
}
Ejemplo n.º 4
0
void SpriteFrames::clear() {

	frames.clear();
	emit_changed();
}
Ejemplo n.º 5
0
void StyleBoxTexture::set_draw_center(bool p_draw) {

	draw_center = p_draw;
	emit_changed();
}
Ejemplo n.º 6
0
void TileSet::tile_set_name(int p_id, const String &p_name) {

	ERR_FAIL_COND(!tile_map.has(p_id));
	tile_map[p_id].name = p_name;
	emit_changed();
}
Ejemplo n.º 7
0
void TileSet::clear() {

	tile_map.clear();
	_change_notify("");
	emit_changed();
}
Ejemplo n.º 8
0
void StyleBox::set_default_margin(Margin p_margin, float p_value) {

	margin[p_margin]=p_value;
	emit_changed();

}
Ejemplo n.º 9
0
void BitmapFont::set_distance_field_hint(bool p_distance_field) {

	distance_field_hint = p_distance_field;
	emit_changed();
}
Ejemplo n.º 10
0
void StyleBoxFlat::set_border_blend(bool p_blend) {

	blend=p_blend;
	emit_changed();

}
Ejemplo n.º 11
0
void StyleBoxFlat::set_draw_center(bool p_draw) {

	draw_center=p_draw;
	emit_changed();

}
Ejemplo n.º 12
0
void StyleBoxFlat::set_border_size(int p_size) {

	border_size=p_size;
	emit_changed();

}
Ejemplo n.º 13
0
void ConcavePolygonShape2D::set_segments(const PoolVector<Vector2> &p_segments) {

	Physics2DServer::get_singleton()->shape_set_data(get_rid(), p_segments);
	emit_changed();
}
Ejemplo n.º 14
0
void RectangleShape2D::_update_shape() {

	Physics2DServer::get_singleton()->shape_set_data(get_rid(), extents);
	emit_changed();
}
Ejemplo n.º 15
0
void TileSet::tile_set_shape_offset(int p_id, const Vector2 &p_offset) {

	ERR_FAIL_COND(!tile_map.has(p_id));
	tile_map[p_id].shape_offset = p_offset;
	emit_changed();
}
Ejemplo n.º 16
0
void Font::update_changes() {

	emit_changed();
}
Ejemplo n.º 17
0
void TileSet::tile_set_region(int p_id, const Rect2 &p_region) {

	ERR_FAIL_COND(!tile_map.has(p_id));
	tile_map[p_id].region = p_region;
	emit_changed();
}
Ejemplo n.º 18
0
void ShortCut::set_shortcut(const Ref<InputEvent> &p_shortcut) {

	shortcut = p_shortcut;
	emit_changed();
}
Ejemplo n.º 19
0
void TileSet::tile_set_shapes(int p_id, const Vector<Ref<Shape2D> > &p_shapes) {

	ERR_FAIL_COND(!tile_map.has(p_id));
	tile_map[p_id].shapes = p_shapes;
	emit_changed();
}
Ejemplo n.º 20
0
void ConvexPolygonShape::_update_shape() {

	PhysicsServer::get_singleton()->shape_set_data(get_shape(), points);
	emit_changed();
}
Ejemplo n.º 21
0
void SpriteFrames::remove_frame(int p_idx) {

	frames.remove(p_idx);
	emit_changed();
}
Ejemplo n.º 22
0
void CapsuleShape2D::_update_shape() {

	Physics2DServer::get_singleton()->shape_set_data(get_rid(), Vector2(radius, height));
	emit_changed();
}
Ejemplo n.º 23
0
void StyleBoxTexture::set_margin_size(Margin p_margin, float p_size) {

	margin[p_margin] = p_size;
	emit_changed();
}
Ejemplo n.º 24
0
void TileSet::tile_set_texture(int p_id, const Ref<Texture> &p_texture) {

	ERR_FAIL_COND(!tile_map.has(p_id));
	tile_map[p_id].texture = p_texture;
	emit_changed();
}
Ejemplo n.º 25
0
void StyleBoxTexture::set_expand_margin_size(Margin p_expand_margin, float p_size) {

	ERR_FAIL_INDEX(p_expand_margin, 4);
	expand_margin[p_expand_margin] = p_size;
	emit_changed();
}
Ejemplo n.º 26
0
void TileSet::tile_set_material(int p_id, const Ref<CanvasItemMaterial> &p_material) {

	ERR_FAIL_COND(!tile_map.has(p_id));
	tile_map[p_id].material = p_material;
	emit_changed();
}
Ejemplo n.º 27
0
void StyleBoxFlat::set_bg_color(const Color &p_color) {

	bg_color = p_color;
	emit_changed();
}
Ejemplo n.º 28
0
void RayShape::_update_shape() {

	PhysicsServer::get_singleton()->shape_set_data(get_shape(), length);
	emit_changed();
}