-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83c184e
commit ea37886
Showing
9 changed files
with
152 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamWAV" | ||
uid="uid://bqxk8dirbvq1v" | ||
path="res://.godot/imported/crumble.wav-0bcad40ad4450a1d92ca0eb283b50d73.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://main/ui/submenu/save/crumble.wav" | ||
dest_files=["res://.godot/imported/crumble.wav-0bcad40ad4450a1d92ca0eb283b50d73.sample"] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=false | ||
edit/normalize=false | ||
edit/loop_mode=0 | ||
edit/loop_begin=0 | ||
edit/loop_end=-1 | ||
compress/mode=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
game/main/ui/submenu/save/save_file_panel/rounded_corner.gdshader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
shader_type canvas_item; | ||
//https://gist.github.com/rohanrhu/11ffd387e1cc228d15bcea56fad4f593 | ||
|
||
uniform float radius: hint_range(0., 1.) = 1; | ||
uniform float square_scale: hint_range(0., 1.) = 0.1; | ||
|
||
void fragment() { | ||
float sc = square_scale + square_scale/2.; | ||
float r = square_scale + (1. - radius) * (square_scale/2.); | ||
|
||
float scax = 1. - square_scale; | ||
|
||
float dx; | ||
float dy; | ||
float d; | ||
float a; | ||
|
||
COLOR = texture(TEXTURE, UV); | ||
|
||
if (UV.x < square_scale && UV.y > scax) { | ||
dx = square_scale - UV.x; | ||
dy = scax - UV.y; | ||
d = sqrt(dx * dx + dy * dy); | ||
a = asin(d); | ||
|
||
if (a > r) { | ||
COLOR.a = 0.; | ||
} | ||
} | ||
|
||
if (UV.x < square_scale && UV.y < square_scale) { | ||
dx = square_scale - UV.x; | ||
dy = square_scale - UV.y; | ||
d = sqrt(dx * dx + dy * dy); | ||
a = asin(d); | ||
|
||
if (a > r) { | ||
COLOR.a = 0.; | ||
} | ||
} | ||
|
||
if (UV.x > scax && UV.y < square_scale) { | ||
dx = scax - UV.x; | ||
dy = square_scale - UV.y; | ||
d = sqrt(dx * dx + dy * dy); | ||
a = asin(d); | ||
|
||
if (a > r) { | ||
COLOR.a = 0.; | ||
} | ||
} | ||
|
||
if (UV.x > scax && UV.y > scax) { | ||
dx = scax - UV.x; | ||
dy = scax - UV.y; | ||
d = sqrt(dx * dx + dy * dy); | ||
a = asin(d); | ||
|
||
if (a > r) { | ||
COLOR.a = 0.; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamWAV" | ||
uid="uid://dfb0hid704r07" | ||
path="res://.godot/imported/scribble.wav-b291fd9f364a237b6c44d2fb48973cbd.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://main/ui/submenu/save/scribble.wav" | ||
dest_files=["res://.godot/imported/scribble.wav-b291fd9f364a237b6c44d2fb48973cbd.sample"] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=false | ||
edit/normalize=false | ||
edit/loop_mode=0 | ||
edit/loop_begin=0 | ||
edit/loop_end=-1 | ||
compress/mode=0 |