You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Renaming of servers for coherency.
VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
This commit is contained in:
@@ -35,23 +35,23 @@ void CanvasModulate::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_ENTER_CANVAS) {
|
||||
|
||||
if (is_visible_in_tree()) {
|
||||
VS::get_singleton()->canvas_set_modulate(get_canvas(), color);
|
||||
RS::get_singleton()->canvas_set_modulate(get_canvas(), color);
|
||||
add_to_group("_canvas_modulate_" + itos(get_canvas().get_id()));
|
||||
}
|
||||
|
||||
} else if (p_what == NOTIFICATION_EXIT_CANVAS) {
|
||||
|
||||
if (is_visible_in_tree()) {
|
||||
VS::get_singleton()->canvas_set_modulate(get_canvas(), Color(1, 1, 1, 1));
|
||||
RS::get_singleton()->canvas_set_modulate(get_canvas(), Color(1, 1, 1, 1));
|
||||
remove_from_group("_canvas_modulate_" + itos(get_canvas().get_id()));
|
||||
}
|
||||
} else if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
|
||||
|
||||
if (is_visible_in_tree()) {
|
||||
VS::get_singleton()->canvas_set_modulate(get_canvas(), color);
|
||||
RS::get_singleton()->canvas_set_modulate(get_canvas(), color);
|
||||
add_to_group("_canvas_modulate_" + itos(get_canvas().get_id()));
|
||||
} else {
|
||||
VS::get_singleton()->canvas_set_modulate(get_canvas(), Color(1, 1, 1, 1));
|
||||
RS::get_singleton()->canvas_set_modulate(get_canvas(), Color(1, 1, 1, 1));
|
||||
remove_from_group("_canvas_modulate_" + itos(get_canvas().get_id()));
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ void CanvasModulate::set_color(const Color &p_color) {
|
||||
|
||||
color = p_color;
|
||||
if (is_visible_in_tree()) {
|
||||
VS::get_singleton()->canvas_set_modulate(get_canvas(), color);
|
||||
RS::get_singleton()->canvas_set_modulate(get_canvas(), color);
|
||||
}
|
||||
}
|
||||
Color CanvasModulate::get_color() const {
|
||||
|
||||
Reference in New Issue
Block a user