InitCommit

update 1.4.2 source code
This commit is contained in:
kaia
2024-02-03 18:36:09 -06:00
commit ece4ffd123
216 changed files with 79783 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dj7jk7jlfex7a"
path="res://.godot/imported/eye1.png-81cce5113b5e99e40cb0f4e439772fa7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui_scenes/spriteList/eye1.png"
dest_files=["res://.godot/imported/eye1.png-81cce5113b5e99e40cb0f4e439772fa7.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dkajimlt8xv2a"
path="res://.godot/imported/eye2.png-84230626bd7832ce969996b51eb1cc2f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui_scenes/spriteList/eye2.png"
dest_files=["res://.godot/imported/eye2.png-84230626bd7832ce969996b51eb1cc2f.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b8eqd7au7u573"
path="res://.godot/imported/fade.png-58e42a1a35dd39b934ffb9dcbba38dfa.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui_scenes/spriteList/fade.png"
dest_files=["res://.godot/imported/fade.png-58e42a1a35dd39b934ffb9dcbba38dfa.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b2qfvfqovyyak"
path="res://.godot/imported/selected.png-a70e31adfee3fa5302d4cf40c008843a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui_scenes/spriteList/selected.png"
dest_files=["res://.godot/imported/selected.png-a70e31adfee3fa5302d4cf40c008843a.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://p2fusn8cii5r"
path="res://.godot/imported/spritePreview.png-ea5d3914558b116daa60c9fa0f75a6c2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui_scenes/spriteList/spritePreview.png"
dest_files=["res://.godot/imported/spritePreview.png-ea5d3914558b116daa60c9fa0f75a6c2.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

View File

@@ -0,0 +1,74 @@
extends NinePatchRect
@onready var spritePreview = $SpritePreview/Sprite2D
@onready var outline = $Selected
@onready var fade = $Fade
var sprite = null
var parent = null
var spritePath = ""
var indent = 0
var childrenTags = []
var parentTag = null
func _ready():
var count = spritePath.get_slice_count("/") - 1
$Label.text = spritePath.get_slice("/",count)
$Line2D.visible = false
spritePreview.texture = sprite.sprite.texture
var displaySize = sprite.imageData.get_size().y
spritePreview.scale = Vector2(1,1) * (60.0/displaySize)
spritePreview.offset = sprite.sprite.offset
func updateChildren():
for child in childrenTags:
child.indent = indent + 1
func updateIndent():
var push = (indent * 12) + 13
$Label.size.x -= push
$Label.position.x += push
$Line2D.points[2]=Vector2(push-3,0)
var xLine = (indent * 8)-6
var yLine = -14
for i in range(64):
var previousIndent = get_parent().get_child(get_index()-1-i).indent
if previousIndent <= indent:
yLine = -43 * (i+1)
if previousIndent == 0:
yLine = -14
break
$Line2D.points[0]=Vector2(xLine,yLine)
$Line2D.points[1]=Vector2(xLine,0)
$Line2D.visible = true
func _on_button_pressed():
if Global.heldSprite != null and Global.reparentMode:
Global.linkSprite(Global.heldSprite,sprite)
Global.chain.enable(false)
Global.heldSprite = sprite
Global.spriteEdit.setImage()
var count = sprite.path.get_slice_count("/") - 1
var i1 = sprite.path.get_slice("/",count)
Global.pushUpdate("Selected sprite \"" + i1 + "\"" + ".")
sprite.set_physics_process(true)
func _process(delta):
outline.visible = sprite == Global.heldSprite
func updateVis():
fade.visible = !sprite.visible

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,52 @@
extends Node2D
@onready var container = $ScrollContainer/VBoxContainer
@onready var spriteListObject = preload("res://ui_scenes/spriteList/sprite_list_object.tscn")
func _ready():
Global.spriteList = self
func updateData():
clearContainer()
await get_tree().create_timer(0.15).timeout
var spritesAll = get_tree().get_nodes_in_group("saved")
var spritesWithParents = []
var allSprites = []
for sprite in spritesAll:
var listObj = spriteListObject.instantiate()
listObj.spritePath = sprite.path
listObj.sprite = sprite
listObj.parent = sprite.parentSprite
if sprite.parentSprite != null:
spritesWithParents.append(listObj)
allSprites.append(listObj)
container.add_child(listObj)
for child in spritesWithParents:
var parentListObj = null
var index = 0
for sprite in allSprites:
if child.parent == sprite.sprite:
parentListObj = sprite
index = sprite.get_index() + 1
sprite.childrenTags.append(child)
break
child.parentTag = parentListObj
container.move_child(child,index)
for sprite in allSprites:
sprite.updateChildren()
for child in spritesWithParents:
child.updateIndent()
func clearContainer():
for i in container.get_children():
i.queue_free()
func updateAllVisible():
for i in container.get_children():
i.updateVis()

View File

@@ -0,0 +1,36 @@
[gd_scene load_steps=4 format=3 uid="uid://gaijtw7euy5g"]
[ext_resource type="Texture2D" uid="uid://23rqddatjku3" path="res://ui_scenes/mouse/tooltipBox.png" id="1_hogj3"]
[ext_resource type="Script" path="res://ui_scenes/spriteList/viewer.gd" id="1_ytjpf"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h2wjy"]
size = Vector2(230, 630)
[node name="SpriteList" type="Node2D"]
script = ExtResource("1_ytjpf")
[node name="NinePatchRect" type="NinePatchRect" parent="."]
offset_left = -4.0
offset_top = -4.0
offset_right = 226.0
offset_bottom = 626.0
texture = ExtResource("1_hogj3")
region_rect = Rect2(0, 0, 48, 48)
patch_margin_left = 8
patch_margin_top = 8
patch_margin_right = 8
patch_margin_bottom = 8
[node name="ScrollContainer" type="ScrollContainer" parent="."]
offset_right = 221.0
offset_bottom = 622.0
horizontal_scroll_mode = 0
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
layout_mode = 2
[node name="Area2D2" type="Area2D" parent="." groups=["penis"]]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D2"]
position = Vector2(111, 311)
shape = SubResource("RectangleShape2D_h2wjy")