mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-29 02:29:18 +01:00
Experiments with the icon creation tool.
This commit is contained in:
parent
f26d7fd02d
commit
fa013e2360
81
game/data/icons/ parts/circles.svg
Normal file
81
game/data/icons/ parts/circles.svg
Normal file
@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="108.07371pt"
|
||||
height="105.17982pt"
|
||||
viewBox="0 0 38.12599 37.105105"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="0.92.4 5da689c313, 2019-01-14"
|
||||
sodipodi:docname="circles.svg">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.8141708"
|
||||
inkscape:cx="176.11004"
|
||||
inkscape:cy="192.19963"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:snap-text-baseline="true"
|
||||
inkscape:snap-center="true"
|
||||
inkscape:pagecheckerboard="true"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1020"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
units="pt"
|
||||
width="461pt"
|
||||
fit-margin-top="0.5"
|
||||
fit-margin-left="0.5"
|
||||
fit-margin-bottom="0.5"
|
||||
fit-margin-right="0.5" />
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-20.824946,-95.560874)">
|
||||
<ellipse
|
||||
style="fill:#ffffff;fill-opacity:0.79096045;stroke-width:0.26458332"
|
||||
id="path3735"
|
||||
cx="39.887947"
|
||||
cy="114.11343"
|
||||
rx="18.886612"
|
||||
ry="18.376163" />
|
||||
<ellipse
|
||||
style="fill:#ffffff;fill-opacity:0.83050848;stroke-width:0.20889893"
|
||||
id="path4544"
|
||||
transform="matrix(0.99486313,-0.10122919,0.16338782,0.98656192,0,0)"
|
||||
ry="7.8993263"
|
||||
rx="8.5184813"
|
||||
cy="124.56014"
|
||||
cx="13.187001" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.3 KiB |
34
game/data/icons/ parts/circles.svg.import
Normal file
34
game/data/icons/ parts/circles.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/circles.svg-a608c87b0b2cc8a88ef0f4bda018782e.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/icons/ parts/circles.svg"
|
||||
dest_files=[ "res://.import/circles.svg-a608c87b0b2cc8a88ef0f4bda018782e.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=1
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
BIN
game/data/icons/Naturalist/AspectOfScorpions.png
Normal file
BIN
game/data/icons/Naturalist/AspectOfScorpions.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 349 B |
34
game/data/icons/Naturalist/AspectOfScorpions.png.import
Normal file
34
game/data/icons/Naturalist/AspectOfScorpions.png.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/AspectOfScorpions.png-adf67f2bd67362e6adc1d97dee5a7344.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/icons/Naturalist/AspectOfScorpions.png"
|
||||
dest_files=[ "res://.import/AspectOfScorpions.png-adf67f2bd67362e6adc1d97dee5a7344.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=2
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=false
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
103
game/data/icons/Naturalist/AspectOfScorpions.tscn
Normal file
103
game/data/icons/Naturalist/AspectOfScorpions.tscn
Normal file
@ -0,0 +1,103 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://texture_tools/LayeredTextureMaker.gd" type="Script" id=1]
|
||||
[ext_resource path="res://data/icons/Naturalist/AspectOfScorpions.png" type="Texture" id=2]
|
||||
[ext_resource path="res://data/icons/ parts/circles.svg" type="Texture" id=3]
|
||||
[ext_resource path="res://data/icons/icons.png" type="Texture" id=4]
|
||||
|
||||
[sub_resource type="Gradient" id=1]
|
||||
offsets = PoolRealArray( 0, 0.166667, 1 )
|
||||
colors = PoolColorArray( 0, 0, 0, 1, 0.871094, 0.871094, 0.871094, 1, 1, 1, 1, 1 )
|
||||
|
||||
[node name="LayeredTextureMaker" type="Node2D"]
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
modulate = Color( 0, 0, 0, 1 )
|
||||
self_modulate = Color( 0, 0, 0, 1 )
|
||||
position = Vector2( 22.1815, 14.0857 )
|
||||
scale = Vector2( 0.85584, 0.746345 )
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
[node name="circles" type="Sprite" parent="."]
|
||||
visible = false
|
||||
modulate = Color( 0.427451, 0.0588235, 0.0588235, 1 )
|
||||
self_modulate = Color( 0.772549, 0.458824, 0.458824, 1 )
|
||||
position = Vector2( 5.77751, 5.69682 )
|
||||
scale = Vector2( 0.0683068, 0.0707925 )
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
|
||||
modulate = Color( 0.662745, 0.207843, 0.207843, 1 )
|
||||
position = Vector2( 6.35167, 10.2869 )
|
||||
scale = Vector2( 0.05, 0.05 )
|
||||
amount = 24
|
||||
texture = ExtResource( 3 )
|
||||
direction = Vector2( 0.5, 0.5 )
|
||||
spread = 108.36
|
||||
gravity = Vector2( 0, 0 )
|
||||
initial_velocity = 40.0
|
||||
linear_accel = 3.2
|
||||
linear_accel_random = 0.21
|
||||
color_ramp = SubResource( 1 )
|
||||
hue_variation_random = 0.02
|
||||
|
||||
[node name="CPUParticles2D2" type="CPUParticles2D" parent="."]
|
||||
modulate = Color( 0.662745, 0.207843, 0.207843, 1 )
|
||||
position = Vector2( 4.59298, 2.6762 )
|
||||
scale = Vector2( 0.02, 0.02 )
|
||||
amount = 20
|
||||
lifetime = 0.74
|
||||
explosiveness = 0.14
|
||||
randomness = 0.59
|
||||
lifetime_randomness = 0.38
|
||||
texture = ExtResource( 3 )
|
||||
direction = Vector2( 0.5, 0.5 )
|
||||
spread = 108.36
|
||||
gravity = Vector2( 0, 0 )
|
||||
initial_velocity = 40.0
|
||||
linear_accel = 3.2
|
||||
linear_accel_random = 0.21
|
||||
color_ramp = SubResource( 1 )
|
||||
|
||||
[node name="CPUParticles2D3" type="CPUParticles2D" parent="."]
|
||||
modulate = Color( 0.662745, 0.207843, 0.207843, 1 )
|
||||
position = Vector2( 10.675, 2.7188 )
|
||||
scale = Vector2( 0.02, 0.02 )
|
||||
amount = 20
|
||||
lifetime = 0.74
|
||||
preprocess = 14.4
|
||||
explosiveness = 0.14
|
||||
randomness = 0.59
|
||||
lifetime_randomness = 0.38
|
||||
texture = ExtResource( 3 )
|
||||
direction = Vector2( 0.5, 0.5 )
|
||||
spread = 108.36
|
||||
gravity = Vector2( 0, 0 )
|
||||
initial_velocity = 40.0
|
||||
linear_accel = 3.2
|
||||
linear_accel_random = 0.21
|
||||
color_ramp = SubResource( 1 )
|
||||
|
||||
[node name="CPUParticles2D4" type="CPUParticles2D" parent="."]
|
||||
modulate = Color( 0.662745, 0.207843, 0.207843, 1 )
|
||||
position = Vector2( 13.4834, 6.60399 )
|
||||
scale = Vector2( 0.02, 0.02 )
|
||||
amount = 20
|
||||
lifetime = 0.74
|
||||
preprocess = 9.6
|
||||
explosiveness = 0.14
|
||||
randomness = 0.59
|
||||
lifetime_randomness = 0.38
|
||||
texture = ExtResource( 3 )
|
||||
direction = Vector2( 0.5, 0.5 )
|
||||
spread = 108.36
|
||||
gravity = Vector2( 0, 0 )
|
||||
initial_velocity = 40.0
|
||||
linear_accel = 3.2
|
||||
linear_accel_random = 0.21
|
||||
color_ramp = SubResource( 1 )
|
@ -1,7 +1,7 @@
|
||||
[gd_resource type="Spell" load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/spells/gd_spell_script.gd" type="Script" id=1]
|
||||
[ext_resource path="res://data/icons/naturalist/aspect_of_wolves.tres" type="Texture" id=2]
|
||||
[ext_resource path="res://data/icons/Naturalist/AspectOfScorpions.png" type="Texture" id=2]
|
||||
[ext_resource path="res://data/auras/12_aspect_of_wolves_rank_1.tres" type="Aura" id=3]
|
||||
|
||||
[resource]
|
||||
|
@ -79,17 +79,19 @@ func _process(delta):
|
||||
if get_children().has(preview_node) and get_child(get_child_count() - 1) != preview_node:
|
||||
move_child(preview_node, get_child_count() - 1)
|
||||
|
||||
queued_save = true
|
||||
#queued_save = true
|
||||
|
||||
|
||||
func save() -> void:
|
||||
queued_save = false
|
||||
#queued_save = false
|
||||
|
||||
if texture == null:
|
||||
#print("LayeredTextureMaker: Set a target texture!")
|
||||
return
|
||||
|
||||
texture.set_data(viewport.get_texture().get_data())
|
||||
#texture.set_data(viewport.get_texture().get_data())
|
||||
viewport.get_texture().get_data().save_png(texture.resource_path)
|
||||
# texture.property_list_changed_notify()
|
||||
|
||||
func preview_refresh() -> void:
|
||||
for ch in viewport.get_children():
|
||||
|
Loading…
Reference in New Issue
Block a user