Make toolbar buttons flat

This commit is contained in:
Haoyu Qiu 2023-02-16 09:37:17 +08:00
parent 38911b6290
commit 893b0bdb2b

View File

@ -18,58 +18,47 @@ script = ExtResource("2")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
[node name="Toolbar" type="HBoxContainer" parent="."] [node name="Toolbar" type="HBoxContainer" parent="."]
offset_right = 1152.0 layout_mode = 2
offset_bottom = 31.0
[node name="New" type="Button" parent="Toolbar"] [node name="New" type="Button" parent="Toolbar"]
offset_right = 8.0 layout_mode = 2
offset_bottom = 31.0
tooltip_text = "New" tooltip_text = "New"
flat = true
script = ExtResource("1") script = ExtResource("1")
icon_name = "New" icon_name = "New"
[node name="Load" type="Button" parent="Toolbar"] [node name="Load" type="Button" parent="Toolbar"]
offset_left = 12.0 layout_mode = 2
offset_right = 20.0
offset_bottom = 31.0
tooltip_text = "Load" tooltip_text = "Load"
flat = true
script = ExtResource("1") script = ExtResource("1")
icon_name = "Load" icon_name = "Load"
[node name="Save" type="Button" parent="Toolbar"] [node name="Save" type="Button" parent="Toolbar"]
offset_left = 24.0 layout_mode = 2
offset_right = 32.0
offset_bottom = 31.0
tooltip_text = "Save" tooltip_text = "Save"
flat = true
script = ExtResource("1") script = ExtResource("1")
icon_name = "Save" icon_name = "Save"
[node name="Extra" type="MenuButton" parent="Toolbar"] [node name="Extra" type="MenuButton" parent="Toolbar"]
offset_left = 36.0 layout_mode = 2
offset_right = 44.0
offset_bottom = 31.0
tooltip_text = "Extra Options" tooltip_text = "Extra Options"
script = ExtResource("1") script = ExtResource("1")
icon_name = "GuiTabMenuHl" icon_name = "GuiTabMenuHl"
[node name="VSeparator" type="VSeparator" parent="Toolbar"] [node name="VSeparator" type="VSeparator" parent="Toolbar"]
offset_left = 48.0 layout_mode = 2
offset_right = 52.0
offset_bottom = 31.0
[node name="Play" type="Button" parent="Toolbar"] [node name="Play" type="Button" parent="Toolbar"]
offset_left = 56.0 layout_mode = 2
offset_right = 97.0
offset_bottom = 31.0
size_flags_horizontal = 0 size_flags_horizontal = 0
text = "Play" text = "Play"
script = ExtResource("1") script = ExtResource("1")
icon_name = "Play" icon_name = "Play"
[node name="Restore" type="Button" parent="Toolbar"] [node name="Restore" type="Button" parent="Toolbar"]
offset_left = 101.0 layout_mode = 2
offset_right = 169.0
offset_bottom = 31.0
tooltip_text = "Restore" tooltip_text = "Restore"
disabled = true disabled = true
text = "Restore" text = "Restore"
@ -77,302 +66,214 @@ script = ExtResource("1")
icon_name = "Reload" icon_name = "Reload"
[node name="VSeparator2" type="VSeparator" parent="Toolbar"] [node name="VSeparator2" type="VSeparator" parent="Toolbar"]
offset_left = 173.0 layout_mode = 2
offset_right = 177.0
offset_bottom = 31.0
[node name="Filename" type="Label" parent="Toolbar"] [node name="Filename" type="Label" parent="Toolbar"]
offset_left = 181.0 layout_mode = 2
offset_top = 2.0
offset_right = 1148.0
offset_bottom = 28.0
size_flags_horizontal = 3 size_flags_horizontal = 3
text = "Unsaved sound" text = "Unsaved sound"
clip_text = true clip_text = true
[node name="VersionButton" parent="Toolbar" instance=ExtResource("6")] [node name="VersionButton" parent="Toolbar" instance=ExtResource("6")]
offset_left = 1152.0 layout_mode = 2
offset_top = 15.0
offset_right = 1152.0
offset_bottom = 15.0
website = "https://github.com/timothyqiu/gdfxr" website = "https://github.com/timothyqiu/gdfxr"
[node name="HSeparator" type="HSeparator" parent="."] [node name="HSeparator" type="HSeparator" parent="."]
offset_top = 35.0 layout_mode = 2
offset_right = 1152.0
offset_bottom = 39.0
[node name="Editor" type="HBoxContainer" parent="."] [node name="Editor" type="HBoxContainer" parent="."]
offset_top = 43.0 layout_mode = 2
offset_right = 1152.0
offset_bottom = 648.0
size_flags_vertical = 3 size_flags_vertical = 3
[node name="Generators" type="VBoxContainer" parent="Editor"] [node name="Generators" type="VBoxContainer" parent="Editor"]
offset_right = 101.0 layout_mode = 2
offset_bottom = 605.0
[node name="Button" type="Button" parent="Editor/Generators"] [node name="Button" type="Button" parent="Editor/Generators"]
offset_right = 101.0 layout_mode = 2
offset_bottom = 31.0
text = "Pickup/Coin" text = "Pickup/Coin"
[node name="Button2" type="Button" parent="Editor/Generators"] [node name="Button2" type="Button" parent="Editor/Generators"]
offset_top = 35.0 layout_mode = 2
offset_right = 101.0
offset_bottom = 66.0
text = "Laser/Shoot" text = "Laser/Shoot"
[node name="Button3" type="Button" parent="Editor/Generators"] [node name="Button3" type="Button" parent="Editor/Generators"]
offset_top = 70.0 layout_mode = 2
offset_right = 101.0
offset_bottom = 101.0
text = "Explosion" text = "Explosion"
[node name="Button4" type="Button" parent="Editor/Generators"] [node name="Button4" type="Button" parent="Editor/Generators"]
offset_top = 105.0 layout_mode = 2
offset_right = 101.0
offset_bottom = 136.0
text = "Powerup" text = "Powerup"
[node name="Button5" type="Button" parent="Editor/Generators"] [node name="Button5" type="Button" parent="Editor/Generators"]
offset_top = 140.0 layout_mode = 2
offset_right = 101.0
offset_bottom = 171.0
text = "Hit/Hurt" text = "Hit/Hurt"
[node name="Button6" type="Button" parent="Editor/Generators"] [node name="Button6" type="Button" parent="Editor/Generators"]
offset_top = 175.0 layout_mode = 2
offset_right = 101.0
offset_bottom = 206.0
text = "Jump" text = "Jump"
[node name="Button7" type="Button" parent="Editor/Generators"] [node name="Button7" type="Button" parent="Editor/Generators"]
offset_top = 210.0 layout_mode = 2
offset_right = 101.0
offset_bottom = 241.0
text = "Blip/Select" text = "Blip/Select"
[node name="HSeparator" type="HSeparator" parent="Editor/Generators"] [node name="HSeparator" type="HSeparator" parent="Editor/Generators"]
offset_top = 245.0 layout_mode = 2
offset_right = 101.0
offset_bottom = 249.0
[node name="Button8" type="Button" parent="Editor/Generators"] [node name="Button8" type="Button" parent="Editor/Generators"]
offset_top = 253.0 layout_mode = 2
offset_right = 101.0
offset_bottom = 284.0
size_flags_horizontal = 3 size_flags_horizontal = 3
text = "Mutate" text = "Mutate"
[node name="Button9" type="Button" parent="Editor/Generators"] [node name="Button9" type="Button" parent="Editor/Generators"]
offset_top = 288.0 layout_mode = 2
offset_right = 101.0
offset_bottom = 319.0
size_flags_horizontal = 3 size_flags_horizontal = 3
text = "Randomize" text = "Randomize"
[node name="ScrollContainer" type="ScrollContainer" parent="Editor"] [node name="ScrollContainer" type="ScrollContainer" parent="Editor"]
offset_left = 105.0 layout_mode = 2
offset_right = 1152.0
offset_bottom = 605.0
size_flags_horizontal = 3 size_flags_horizontal = 3
[node name="Params" type="HBoxContainer" parent="Editor/ScrollContainer"] [node name="Params" type="HBoxContainer" parent="Editor/ScrollContainer"]
offset_left = 17.0 layout_mode = 2
offset_top = 182.0
offset_right = 1029.0
offset_bottom = 423.0
size_flags_horizontal = 6 size_flags_horizontal = 6
size_flags_vertical = 6 size_flags_vertical = 6
[node name="Envolope" type="VBoxContainer" parent="Editor/ScrollContainer/Params"] [node name="Envolope" type="VBoxContainer" parent="Editor/ScrollContainer/Params"]
offset_right = 246.0 layout_mode = 2
offset_bottom = 241.0
[node name="ParamSlider" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")] [node name="ParamSlider" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")]
offset_right = 246.0 layout_mode = 2
offset_bottom = 31.0
label = "Attack Time" label = "Attack Time"
parameter = "p_env_attack" parameter = "p_env_attack"
[node name="ParamSlider2" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")] [node name="ParamSlider2" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")]
offset_top = 35.0 layout_mode = 2
offset_right = 246.0
offset_bottom = 66.0
label = "Sustain Time" label = "Sustain Time"
parameter = "p_env_sustain" parameter = "p_env_sustain"
[node name="ParamSlider3" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")] [node name="ParamSlider3" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")]
offset_top = 70.0 layout_mode = 2
offset_right = 246.0
offset_bottom = 101.0
label = "Sustain Punch" label = "Sustain Punch"
parameter = "p_env_punch" parameter = "p_env_punch"
[node name="ParamSlider4" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")] [node name="ParamSlider4" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")]
offset_top = 105.0 layout_mode = 2
offset_right = 246.0
offset_bottom = 136.0
label = "Decay Time" label = "Decay Time"
parameter = "p_env_decay" parameter = "p_env_decay"
[node name="ParamSlider5" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")] [node name="ParamSlider5" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")]
offset_top = 140.0 layout_mode = 2
offset_right = 246.0
offset_bottom = 171.0
label = "Change Amount" label = "Change Amount"
parameter = "p_arp_mod" parameter = "p_arp_mod"
bipolar = true bipolar = true
[node name="ParamSlider6" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")] [node name="ParamSlider6" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")]
offset_top = 175.0 layout_mode = 2
offset_right = 246.0
offset_bottom = 206.0
label = "Change Speed" label = "Change Speed"
parameter = "p_arp_speed" parameter = "p_arp_speed"
[node name="ParamSlider7" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")] [node name="ParamSlider7" parent="Editor/ScrollContainer/Params/Envolope" instance=ExtResource("3")]
offset_top = 210.0 layout_mode = 2
offset_right = 246.0
offset_bottom = 241.0
label = "Volume" label = "Volume"
parameter = "sound_vol" parameter = "sound_vol"
[node name="Frequency" type="VBoxContainer" parent="Editor/ScrollContainer/Params"] [node name="Frequency" type="VBoxContainer" parent="Editor/ScrollContainer/Params"]
offset_left = 250.0 layout_mode = 2
offset_right = 494.0
offset_bottom = 241.0
[node name="ParamSlider" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")] [node name="ParamSlider" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")]
offset_right = 244.0 layout_mode = 2
offset_bottom = 31.0
label = "Start Frequency" label = "Start Frequency"
parameter = "p_base_freq" parameter = "p_base_freq"
[node name="ParamSlider2" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")] [node name="ParamSlider2" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")]
offset_top = 35.0 layout_mode = 2
offset_right = 244.0
offset_bottom = 66.0
label = "Min Frequency" label = "Min Frequency"
parameter = "p_freq_limit" parameter = "p_freq_limit"
[node name="ParamSlider3" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")] [node name="ParamSlider3" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")]
offset_top = 70.0 layout_mode = 2
offset_right = 244.0
offset_bottom = 101.0
label = "Slide" label = "Slide"
parameter = "p_freq_ramp" parameter = "p_freq_ramp"
bipolar = true bipolar = true
[node name="ParamSlider4" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")] [node name="ParamSlider4" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")]
offset_top = 105.0 layout_mode = 2
offset_right = 244.0
offset_bottom = 136.0
label = "Delta Slide" label = "Delta Slide"
parameter = "p_freq_dramp" parameter = "p_freq_dramp"
bipolar = true bipolar = true
[node name="ParamSlider5" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")] [node name="ParamSlider5" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")]
offset_top = 140.0 layout_mode = 2
offset_right = 244.0
offset_bottom = 171.0
label = "Vibrato Depth" label = "Vibrato Depth"
parameter = "p_vib_strength" parameter = "p_vib_strength"
[node name="ParamSlider6" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")] [node name="ParamSlider6" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")]
offset_top = 175.0 layout_mode = 2
offset_right = 244.0
offset_bottom = 206.0
label = "Vibrato Speed" label = "Vibrato Speed"
parameter = "p_vib_speed" parameter = "p_vib_speed"
[node name="ParamSlider7" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")] [node name="ParamSlider7" parent="Editor/ScrollContainer/Params/Frequency" instance=ExtResource("3")]
offset_top = 210.0 layout_mode = 2
offset_right = 244.0
offset_bottom = 241.0
label = "Repeat Speed" label = "Repeat Speed"
parameter = "p_repeat_speed" parameter = "p_repeat_speed"
[node name="Waveform" type="VBoxContainer" parent="Editor/ScrollContainer/Params"] [node name="Waveform" type="VBoxContainer" parent="Editor/ScrollContainer/Params"]
offset_left = 498.0 layout_mode = 2
offset_right = 727.0
offset_bottom = 241.0
[node name="WaveformOption" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("4")] [node name="WaveformOption" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("4")]
offset_right = 229.0 layout_mode = 2
offset_bottom = 31.0
options = ["Square", "Sawtooth", "Sine", "Noise"] options = ["Square", "Sawtooth", "Sine", "Noise"]
parameter = "wave_type" parameter = "wave_type"
[node name="ParamSlider" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("3")] [node name="ParamSlider" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("3")]
offset_top = 35.0 layout_mode = 2
offset_right = 229.0
offset_bottom = 66.0
label = "Square Duty" label = "Square Duty"
parameter = "p_duty" parameter = "p_duty"
[node name="ParamSlider2" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("3")] [node name="ParamSlider2" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("3")]
offset_top = 70.0 layout_mode = 2
offset_right = 229.0
offset_bottom = 101.0
label = "Duty Sweep" label = "Duty Sweep"
parameter = "p_duty_ramp" parameter = "p_duty_ramp"
bipolar = true bipolar = true
[node name="ParamSlider5" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("3")] [node name="ParamSlider5" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("3")]
offset_top = 105.0 layout_mode = 2
offset_right = 229.0
offset_bottom = 136.0
label = "Phaser Offset" label = "Phaser Offset"
parameter = "p_pha_offset" parameter = "p_pha_offset"
bipolar = true bipolar = true
[node name="ParamSlider3" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("3")] [node name="ParamSlider3" parent="Editor/ScrollContainer/Params/Waveform" instance=ExtResource("3")]
offset_top = 140.0 layout_mode = 2
offset_right = 229.0
offset_bottom = 171.0
label = "Phaser Sweep" label = "Phaser Sweep"
parameter = "p_pha_ramp" parameter = "p_pha_ramp"
bipolar = true bipolar = true
[node name="Filter" type="VBoxContainer" parent="Editor/ScrollContainer/Params"] [node name="Filter" type="VBoxContainer" parent="Editor/ScrollContainer/Params"]
offset_left = 731.0 layout_mode = 2
offset_right = 1012.0
offset_bottom = 241.0
[node name="ParamSlider" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")] [node name="ParamSlider" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")]
offset_right = 281.0 layout_mode = 2
offset_bottom = 31.0
label = "Low-pass Cutoff" label = "Low-pass Cutoff"
parameter = "p_lpf_freq" parameter = "p_lpf_freq"
[node name="ParamSlider2" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")] [node name="ParamSlider2" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")]
offset_top = 35.0 layout_mode = 2
offset_right = 281.0
offset_bottom = 66.0
label = "Low-pass Sweep" label = "Low-pass Sweep"
parameter = "p_lpf_ramp" parameter = "p_lpf_ramp"
bipolar = true bipolar = true
[node name="ParamSlider5" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")] [node name="ParamSlider5" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")]
offset_top = 70.0 layout_mode = 2
offset_right = 281.0
offset_bottom = 101.0
label = "Low-pass Resonance" label = "Low-pass Resonance"
parameter = "p_lpf_resonance" parameter = "p_lpf_resonance"
[node name="ParamSlider3" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")] [node name="ParamSlider3" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")]
offset_top = 105.0 layout_mode = 2
offset_right = 281.0
offset_bottom = 136.0
label = "High-pass Cutoff" label = "High-pass Cutoff"
parameter = "p_hpf_freq" parameter = "p_hpf_freq"
[node name="ParamSlider4" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")] [node name="ParamSlider4" parent="Editor/ScrollContainer/Params/Filter" instance=ExtResource("3")]
offset_top = 140.0 layout_mode = 2
offset_right = 281.0
offset_bottom = 171.0
label = "High-pass Sweep" label = "High-pass Sweep"
parameter = "p_hpf_ramp" parameter = "p_hpf_ramp"
bipolar = true bipolar = true