Changed split screen button icon

This commit is contained in:
OverloadedOrama 2019-12-02 02:04:46 +02:00
parent bc1d16c14c
commit a2fdf7c4a5
7 changed files with 81 additions and 12 deletions

View file

@ -26,7 +26,7 @@ var canvas_parent : Node
var main_viewport : ViewportContainer
var second_viewport : ViewportContainer
var viewport_separator : VSeparator
var split_screen_button : Button
var split_screen_button : BaseButton
# warning-ignore:unused_class_variable
var left_square_indicator_visible := true
# warning-ignore:unused_class_variable

View file

@ -827,11 +827,9 @@ func _on_BlueRedMode_toggled(button_pressed) -> void:
func _on_SplitScreenButton_toggled(button_pressed) -> void:
if button_pressed:
Global.split_screen_button.text = ">"
Global.viewport_separator.visible = true
Global.second_viewport.visible = true
else:
Global.split_screen_button.text = "<"
Global.viewport_separator.visible = false
Global.second_viewport.visible = false