Added an icon for non-builtin nodes and fixed minimize icon
This commit is contained in:
parent
b2837614f6
commit
519bbd122f
Binary file not shown.
After Width: | Height: | Size: 549 B |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/custom.png-b6de9bd960e2d683a2fceb1c6acd7f29.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://material_maker/icons/custom.png"
|
||||
dest_files=[ "res://.import/custom.png-b6de9bd960e2d683a2fceb1c6acd7f29.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=true
|
||||
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
|
|
@ -71,9 +71,9 @@
|
|||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="20.229516"
|
||||
inkscape:cx="69.406038"
|
||||
inkscape:cy="18.001746"
|
||||
inkscape:zoom="10.114758"
|
||||
inkscape:cx="47.436184"
|
||||
inkscape:cy="3.7345862"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
|
@ -901,7 +901,7 @@
|
|||
id="rect937"
|
||||
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.75590551;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke" />
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0.38499999;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.655;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.38499999;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:fill markers stroke;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="m 49.962099,97.160527 c -0.271712,2.78e-4 -0.491909,0.220475 -0.492187,0.492187 v 12.716656 c 2.77e-4,0.27172 0.220474,0.49191 0.492187,0.49219 h 12.212707 c 0.272476,8e-4 0.493864,-0.21971 0.49414,-0.49219 V 97.652714 c -2.78e-4,-0.272475 -0.221665,-0.492988 -0.49414,-0.492187 z m 0.788784,1.282924 h 10.585706 v 8.630769 H 50.809477 l -0.05859,0.004 z"
|
||||
transform="translate(0,216.06665)"
|
||||
id="rect936"
|
||||
|
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
@ -29,16 +29,19 @@ func _ready() -> void:
|
|||
func _exit_tree() -> void:
|
||||
get_parent().call_deferred("check_last_selected")
|
||||
|
||||
|
||||
func _draw() -> void:
|
||||
var color : Color = get_color("title_color")
|
||||
var icon = preload("res://material_maker/icons/minimize.tres")
|
||||
draw_texture_rect(icon, Rect2(rect_size.x-40, 4, 16, 16), false)
|
||||
draw_texture_rect(icon, Rect2(rect_size.x-40, 4, 16, 16), false, color)
|
||||
if generator != null and generator.has_randomness():
|
||||
icon = preload("res://material_maker/icons/randomness_locked.tres") if generator.is_seed_locked() else preload("res://material_maker/icons/randomness_unlocked.tres")
|
||||
draw_texture_rect(icon, Rect2(rect_size.x-56, 4, 16, 16), false)
|
||||
var color : Color = get_color("title_color")
|
||||
var inputs = generator.get_input_defs()
|
||||
var font : Font = get_font("default_font")
|
||||
var scale = get_global_transform().get_scale()
|
||||
if generator != null and generator.model == null:
|
||||
draw_texture_rect(preload("res://material_maker/icons/custom.png"), Rect2(3, 8, 7, 7), false, color)
|
||||
for i in range(inputs.size()):
|
||||
if inputs[i].has("group_size") and inputs[i].group_size > 1:
|
||||
var conn_pos1 = get_connection_input_position(i)
|
||||
|
|
Loading…
Reference in New Issue