Example #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();
}
Example #2
0
void StyleBoxTexture::set_modulate(const Color &p_modulate) {
	if (modulate == p_modulate)
		return;
	modulate = p_modulate;
	emit_changed();
}
Example #3
0
void CircleShape2D::_update_shape() {

	Physics2DServer::get_singleton()->shape_set_data(get_rid(), radius);
	emit_changed();
}
Example #4
0
void SpriteFrames::clear() {

	frames.clear();
	emit_changed();
}
Example #5
0
void StyleBoxTexture::set_draw_center(bool p_draw) {

	draw_center = p_draw;
	emit_changed();
}
Example #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();
}
Example #7
0
void TileSet::clear() {

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

	margin[p_margin]=p_value;
	emit_changed();

}
Example #9
0
void BitmapFont::set_distance_field_hint(bool p_distance_field) {

	distance_field_hint = p_distance_field;
	emit_changed();
}
Example #10
0
void StyleBoxFlat::set_border_blend(bool p_blend) {

	blend=p_blend;
	emit_changed();

}
Example #11
0
void StyleBoxFlat::set_draw_center(bool p_draw) {

	draw_center=p_draw;
	emit_changed();

}
Example #12
0
void StyleBoxFlat::set_border_size(int p_size) {

	border_size=p_size;
	emit_changed();

}
void ConcavePolygonShape2D::set_segments(const PoolVector<Vector2> &p_segments) {

	Physics2DServer::get_singleton()->shape_set_data(get_rid(), p_segments);
	emit_changed();
}
Example #14
0
void RectangleShape2D::_update_shape() {

	Physics2DServer::get_singleton()->shape_set_data(get_rid(), extents);
	emit_changed();
}
Example #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();
}
Example #16
0
void Font::update_changes() {

	emit_changed();
}
Example #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();
}
Example #18
0
void ShortCut::set_shortcut(const Ref<InputEvent> &p_shortcut) {

	shortcut = p_shortcut;
	emit_changed();
}
Example #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();
}
Example #20
0
void ConvexPolygonShape::_update_shape() {

	PhysicsServer::get_singleton()->shape_set_data(get_shape(), points);
	emit_changed();
}
Example #21
0
void SpriteFrames::remove_frame(int p_idx) {

	frames.remove(p_idx);
	emit_changed();
}
Example #22
0
void CapsuleShape2D::_update_shape() {

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

	margin[p_margin] = p_size;
	emit_changed();
}
Example #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();
}
Example #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();
}
Example #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();
}
Example #27
0
void StyleBoxFlat::set_bg_color(const Color &p_color) {

	bg_color = p_color;
	emit_changed();
}
Example #28
0
void RayShape::_update_shape() {

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