shovel fully done
This commit is contained in:
parent
797fbfb4fe
commit
2639322dbf
12 changed files with 107 additions and 14 deletions
|
|
@ -5,6 +5,7 @@
|
|||
[resource]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("1_38cc4")
|
||||
shader_parameter/FLASH_COLOR = Color(1, 0.709804, 0.439216, 0.5)
|
||||
shader_parameter/FLASH_COLOR = Color(0.78, 0.78, 0.78, 0.501961)
|
||||
shader_parameter/HIGHLIGHT_COLOR = Color(0.69, 0, 0, 0.282353)
|
||||
shader_parameter/selected = false
|
||||
shader_parameter/blend = 0.0
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
[resource]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("1_fsu5r")
|
||||
shader_parameter/FLASH_COLOR = Color(1, 0.709804, 0.439216, 0.5)
|
||||
shader_parameter/FLASH_COLOR = Color(0.78, 0.78, 0.78, 0.501961)
|
||||
shader_parameter/HIGHLIGHT_COLOR = Color(0.69, 0, 0, 0.282353)
|
||||
shader_parameter/blend = 0.0
|
||||
shader_parameter/selected = false
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ shader_type canvas_item;
|
|||
render_mode unshaded;
|
||||
|
||||
uniform vec4 FLASH_COLOR : source_color = vec4(1,0.709803921,0.43921568,0.5);
|
||||
uniform vec4 HIGHLIGHT_COLOR : source_color = vec4(1,0.709803921,0.43921568,0.5);
|
||||
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
|
||||
uniform float blend : hint_range(0,1,0.01);
|
||||
uniform bool selected = false;
|
||||
|
|
@ -15,7 +16,7 @@ void fragment() {
|
|||
|
||||
if (selected)
|
||||
{
|
||||
COLOR = vec4(mix(text.rgb,FLASH_COLOR.rgb,FLASH_COLOR.a),text.a);
|
||||
COLOR = vec4(mix(text.rgb,HIGHLIGHT_COLOR.rgb,HIGHLIGHT_COLOR.a),text.a);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
uniform vec4 FLASH_COLOR : source_color = vec4(1,0.709803921,0.43921568,0.5);
|
||||
uniform vec4 HIGHLIGHT_COLOR : source_color = vec4(1,0.709803921,0.43921568,0.5);
|
||||
uniform bool selected = false;
|
||||
uniform float blend : hint_range(0.0, 1.0, 0.01);
|
||||
|
||||
|
|
@ -9,7 +10,7 @@ void fragment() {
|
|||
|
||||
if (selected)
|
||||
{
|
||||
COLOR = vec4(mix(text.rgb,FLASH_COLOR.rgb,FLASH_COLOR.a),text.a);
|
||||
COLOR = vec4(mix(text.rgb,HIGHLIGHT_COLOR.rgb,HIGHLIGHT_COLOR.a),text.a);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
shader_type canvas_item;
|
||||
|
||||
uniform vec4 region_rect;
|
||||
uniform float progress;
|
||||
|
||||
void fragment() {
|
||||
//vec4 text = texture(TEXTURE,UV);
|
||||
vec3 argg = vec3(distance(vec2(0.5),UV));
|
||||
COLOR = vec4(argg,1);
|
||||
if (progress > 0.9999)
|
||||
{
|
||||
vec4 text = texture(TEXTURE,UV);
|
||||
COLOR = text;
|
||||
}
|
||||
vec2 c = vec2(0.5)-UV;
|
||||
float d = atan(c.x,c.y)+PI;
|
||||
if (d > progress*TAU)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
vec4 text = texture(TEXTURE,UV);
|
||||
COLOR = text;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,3 +5,4 @@
|
|||
[resource]
|
||||
atlas = ExtResource("1_i8m7w")
|
||||
region = Rect2(0, 174, 46, 46)
|
||||
filter_clip = true
|
||||
|
|
|
|||
|
|
@ -5,3 +5,4 @@
|
|||
[resource]
|
||||
atlas = ExtResource("1_s2rs0")
|
||||
region = Rect2(46, 174, 51, 47)
|
||||
filter_clip = true
|
||||
|
|
|
|||
BIN
assets/sprites/gui/shovel_button.png
Normal file
BIN
assets/sprites/gui/shovel_button.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
34
assets/sprites/gui/shovel_button.png.import
Normal file
34
assets/sprites/gui/shovel_button.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b0jta6xgl7mvc"
|
||||
path="res://.godot/imported/shovel_button.png-c2f09bdee84da389a849b137a44654ee.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sprites/gui/shovel_button.png"
|
||||
dest_files=["res://.godot/imported/shovel_button.png-c2f09bdee84da389a849b137a44654ee.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Loading…
Add table
Add a link
Reference in a new issue