mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Changed split screen button icon
This commit is contained in:
parent
bc1d16c14c
commit
a2fdf7c4a5
BIN
Assets/Graphics/Canvas_split.png
Normal file
BIN
Assets/Graphics/Canvas_split.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 648 B |
34
Assets/Graphics/Canvas_split.png.import
Normal file
34
Assets/Graphics/Canvas_split.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/Canvas_split.png-5508e200bf1cdd5667f0f6bb5fb97913.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Graphics/Canvas_split.png"
|
||||||
|
dest_files=[ "res://.import/Canvas_split.png-5508e200bf1cdd5667f0f6bb5fb97913.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
BIN
Assets/Graphics/Canvas_unsplit.png
Normal file
BIN
Assets/Graphics/Canvas_unsplit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 650 B |
34
Assets/Graphics/Canvas_unsplit.png.import
Normal file
34
Assets/Graphics/Canvas_unsplit.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/Canvas_unsplit.png-26c4de7c36c0d167fcb3541bbe59e403.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Assets/Graphics/Canvas_unsplit.png"
|
||||||
|
dest_files=[ "res://.import/Canvas_unsplit.png-26c4de7c36c0d167fcb3541bbe59e403.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=false
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
21
Main.tscn
21
Main.tscn
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=44 format=2]
|
[gd_scene load_steps=46 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Scripts/Main.gd" type="Script" id=1]
|
[ext_resource path="res://Scripts/Main.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://Assets/Graphics/Tools/RectSelect.png" type="Texture" id=2]
|
[ext_resource path="res://Assets/Graphics/Tools/RectSelect.png" type="Texture" id=2]
|
||||||
|
@ -37,7 +37,9 @@
|
||||||
[ext_resource path="res://Assets/Graphics/Layers/merge_down.png" type="Texture" id=35]
|
[ext_resource path="res://Assets/Graphics/Layers/merge_down.png" type="Texture" id=35]
|
||||||
[ext_resource path="res://Assets/Graphics/Layers/merge_down_disabled.png" type="Texture" id=36]
|
[ext_resource path="res://Assets/Graphics/Layers/merge_down_disabled.png" type="Texture" id=36]
|
||||||
[ext_resource path="res://Prefabs/BrushButton.tscn" type="PackedScene" id=37]
|
[ext_resource path="res://Prefabs/BrushButton.tscn" type="PackedScene" id=37]
|
||||||
[ext_resource path="res://Scripts/AboutDialog.gd" type="Script" id=38]
|
[ext_resource path="res://Assets/Graphics/Canvas_split.png" type="Texture" id=38]
|
||||||
|
[ext_resource path="res://Assets/Graphics/Canvas_unsplit.png" type="Texture" id=39]
|
||||||
|
[ext_resource path="res://Scripts/AboutDialog.gd" type="Script" id=40]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id=1]
|
[sub_resource type="StyleBoxFlat" id=1]
|
||||||
bg_color = Color( 0.223529, 0.223529, 0.243137, 1 )
|
bg_color = Color( 0.223529, 0.223529, 0.243137, 1 )
|
||||||
|
@ -1097,16 +1099,17 @@ scroll_horizontal_enabled = false
|
||||||
[node name="ProjectBrushContainer" type="GridContainer" parent="BrushesPopup/TabContainer/Project"]
|
[node name="ProjectBrushContainer" type="GridContainer" parent="BrushesPopup/TabContainer/Project"]
|
||||||
columns = 5
|
columns = 5
|
||||||
|
|
||||||
[node name="SplitScreenButton" type="Button" parent="."]
|
[node name="SplitScreenButton" type="TextureButton" parent="."]
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
margin_left = -244.0
|
margin_left = -236.921
|
||||||
margin_top = 45.0
|
margin_top = 44.4745
|
||||||
margin_right = -224.0
|
margin_right = -223.921
|
||||||
margin_bottom = 65.0
|
margin_bottom = 57.4745
|
||||||
size_flags_vertical = 0
|
size_flags_vertical = 0
|
||||||
toggle_mode = true
|
toggle_mode = true
|
||||||
text = "<"
|
texture_normal = ExtResource( 38 )
|
||||||
|
texture_pressed = ExtResource( 39 )
|
||||||
|
|
||||||
[node name="CreateNewImage" type="ConfirmationDialog" parent="."]
|
[node name="CreateNewImage" type="ConfirmationDialog" parent="."]
|
||||||
editor/display_folded = true
|
editor/display_folded = true
|
||||||
|
@ -1318,7 +1321,7 @@ editor/display_folded = true
|
||||||
margin_right = 284.0
|
margin_right = 284.0
|
||||||
margin_bottom = 186.0
|
margin_bottom = 186.0
|
||||||
window_title = "About Pixelorama"
|
window_title = "About Pixelorama"
|
||||||
script = ExtResource( 38 )
|
script = ExtResource( 40 )
|
||||||
|
|
||||||
[node name="AboutUI" type="VBoxContainer" parent="AboutDialog"]
|
[node name="AboutUI" type="VBoxContainer" parent="AboutDialog"]
|
||||||
margin_left = 8.0
|
margin_left = 8.0
|
||||||
|
|
|
@ -26,7 +26,7 @@ var canvas_parent : Node
|
||||||
var main_viewport : ViewportContainer
|
var main_viewport : ViewportContainer
|
||||||
var second_viewport : ViewportContainer
|
var second_viewport : ViewportContainer
|
||||||
var viewport_separator : VSeparator
|
var viewport_separator : VSeparator
|
||||||
var split_screen_button : Button
|
var split_screen_button : BaseButton
|
||||||
# warning-ignore:unused_class_variable
|
# warning-ignore:unused_class_variable
|
||||||
var left_square_indicator_visible := true
|
var left_square_indicator_visible := true
|
||||||
# warning-ignore:unused_class_variable
|
# warning-ignore:unused_class_variable
|
||||||
|
|
|
@ -827,11 +827,9 @@ func _on_BlueRedMode_toggled(button_pressed) -> void:
|
||||||
|
|
||||||
func _on_SplitScreenButton_toggled(button_pressed) -> void:
|
func _on_SplitScreenButton_toggled(button_pressed) -> void:
|
||||||
if button_pressed:
|
if button_pressed:
|
||||||
Global.split_screen_button.text = ">"
|
|
||||||
Global.viewport_separator.visible = true
|
Global.viewport_separator.visible = true
|
||||||
Global.second_viewport.visible = true
|
Global.second_viewport.visible = true
|
||||||
else:
|
else:
|
||||||
Global.split_screen_button.text = "<"
|
|
||||||
Global.viewport_separator.visible = false
|
Global.viewport_separator.visible = false
|
||||||
Global.second_viewport.visible = false
|
Global.second_viewport.visible = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue