diff options
Diffstat (limited to 'demo')
-rw-r--r-- | demo/Hex.gd | 9 | ||||
-rw-r--r-- | demo/Los.gd | 2 | ||||
-rw-r--r-- | demo/Main.gd | 29 | ||||
-rw-r--r-- | demo/Main.tscn | 152 | ||||
-rw-r--r-- | demo/Map.gd | 8 | ||||
-rw-r--r-- | demo/Unit.gd | 4 | ||||
-rw-r--r-- | demo/assets/Anke.otf.import | 33 | ||||
-rw-r--r-- | demo/assets/black.png.import | 31 | ||||
-rw-r--r-- | demo/assets/block.png.import | 31 | ||||
-rw-r--r-- | demo/assets/city.png.import | 31 | ||||
-rw-r--r-- | demo/assets/green.png.import | 31 | ||||
-rw-r--r-- | demo/assets/map-h.png.import | 31 | ||||
-rw-r--r-- | demo/assets/map-v.png.import | 31 | ||||
-rw-r--r-- | demo/assets/mountain.png.import | 31 | ||||
-rw-r--r-- | demo/assets/move.png.import | 31 | ||||
-rw-r--r-- | demo/assets/red.png.import | 31 | ||||
-rw-r--r-- | demo/assets/short.png.import | 31 | ||||
-rw-r--r-- | demo/assets/tank.png.import | 31 | ||||
-rw-r--r-- | demo/assets/target.png.import | 31 | ||||
-rw-r--r-- | demo/assets/tree.png.import | 31 |
20 files changed, 306 insertions, 334 deletions
diff --git a/demo/Hex.gd b/demo/Hex.gd index 029f6c3..7266212 100644 --- a/demo/Hex.gd +++ b/demo/Hex.gd @@ -1,7 +1,7 @@ -#warning-ignore-all:unused_argument +@icon('res://addons/hexgrid/Tile.png') extends Tile -class_name Hex, "res://addons/hexgrid/Tile.png" +class_name Hex var type : int = -1 var roads : int = 0 @@ -40,12 +40,15 @@ func elevation() -> int: if type == 2: return 3 return 0 +@warning_ignore("unused_parameter") func range_modifier(category : int) -> int: return (1 if type == 2 else 0) +@warning_ignore("unused_parameter") func attack_modifier(category : int, orientation : int) -> int: return (2 if type == 1 else 0) +@warning_ignore("unused_parameter") func defense_value(category : int, orientation : int) -> int: if type == 0: return 2 elif type == 1: return 1 @@ -75,6 +78,6 @@ func show_short(b) -> void: enable_overlay(8, b) func show_influence(b) -> void: - var s : Sprite = get_child(0) + var s : Sprite2D = get_child(0) s.modulate = Color(f/10.0, 0, 0) enable_overlay(0, b) diff --git a/demo/Los.gd b/demo/Los.gd index 324819a..069b9c4 100644 --- a/demo/Los.gd +++ b/demo/Los.gd @@ -18,4 +18,4 @@ func setup(v0 :Vector2, v1 : Vector2, v2 : Vector2) -> void: p0 = v0 p1 = v1 p2 = v2 - update() + queue_redraw() diff --git a/demo/Main.gd b/demo/Main.gd index 42b52a9..8aad56f 100644 --- a/demo/Main.gd +++ b/demo/Main.gd @@ -1,26 +1,25 @@ -#warning-ignore-all:return_value_discarded extends Node2D var moved : int = 0 var drag_map : bool = false -onready var UI : Control = $CanvasLayer/HBOX/UI -onready var Map : Sprite = $CanvasLayer/HBOX/ViewportContainer/Viewport/Map -onready var Camera : Camera2D = $CanvasLayer/HBOX/ViewportContainer/Viewport/Camera +@onready var UI : Control = $CanvasLayer/HBOX/UI +@onready var Map : Sprite2D = $CanvasLayer/HBOX/ViewportContainer/Viewport/Map +@onready var Camera : Camera2D = $CanvasLayer/HBOX/ViewportContainer/Viewport/Camera func _ready(): - UI.get_node("rotate").connect("pressed", self, "on_rotate") - UI.get_node("zin").connect("pressed", self, "on_zoom", [true]) - UI.get_node("zout").connect("pressed", self, "on_zoom", [false]) - UI.get_node("LOS").connect("pressed", self, "on_toggle") - UI.get_node("Move").connect("pressed", self, "on_toggle") - UI.get_node("Influence").connect("pressed", self, "on_toggle") - Map.connect("hex_touched", self, "on_hex_touched") - $CanvasLayer/HBOX/ViewportContainer.connect("resized", self, "on_viewport_resized") + UI.get_node("rotate").connect("pressed", on_rotate) + UI.get_node("zin").connect("pressed", func(): on_zoom(true)) + UI.get_node("zout").connect("pressed", func(): on_zoom(false)) + UI.get_node("LOS").connect("pressed", on_toggle) + UI.get_node("Move").connect("pressed", on_toggle) + UI.get_node("Influence").connect("pressed", on_toggle) + Map.connect("hex_touched", on_hex_touched) + $CanvasLayer/HBOX/ViewportContainer.connect("resized", on_viewport_resized) on_toggle() - yield(get_tree().create_timer(.2), 'timeout') + await get_tree().create_timer(.2).timeout on_viewport_resized() - UI.get_node("OSInfo").text = "screen\n%s\ndpi %d" % [OS.get_screen_size(), OS.get_screen_dpi()] + UI.get_node("OSInfo").text = "screen\n%s\ndpi %d" % [DisplayServer.screen_get_size(), DisplayServer.screen_get_dpi()] func on_viewport_resized() -> void: Camera.configure($CanvasLayer/HBOX/ViewportContainer/Viewport.size, Map.center(), Map.texture_size()) @@ -33,7 +32,7 @@ func on_zoom(b : bool) -> void: Camera.update_camera(0, 0, -0.05 if b else 0.05) func on_toggle() -> void: - Map.set_mode(UI.get_node("LOS").pressed, UI.get_node("Move").pressed, UI.get_node("Influence").pressed) + Map.set_mode(UI.get_node("LOS").is_pressed(), UI.get_node("Move").is_pressed(), UI.get_node("Influence").is_pressed()) func on_hex_touched(pos : Vector2, hex : Hex, key : int) -> void: var s : String = ("offmap" if key == -1 else hex.inspect()) diff --git a/demo/Main.tscn b/demo/Main.tscn index 6ac653f..4ab4a01 100644 --- a/demo/Main.tscn +++ b/demo/Main.tscn @@ -1,155 +1,105 @@ -[gd_scene load_steps=10 format=2] - -[ext_resource path="res://demo/Camera.gd" type="Script" id=1] -[ext_resource path="res://demo/assets/Anke.otf" type="DynamicFontData" id=2] -[ext_resource path="res://demo/assets/target.png" type="Texture" id=3] -[ext_resource path="res://demo/Map.gd" type="Script" id=4] -[ext_resource path="res://demo/Los.gd" type="Script" id=5] -[ext_resource path="res://demo/assets/tank.png" type="Texture" id=6] -[ext_resource path="res://demo/Main.gd" type="Script" id=7] - -[sub_resource type="DynamicFont" id=1] -size = 35 -font_data = ExtResource( 2 ) - -[sub_resource type="Theme" id=2] -default_font = SubResource( 1 ) +[gd_scene load_steps=10 format=3 uid="uid://dgsk1t6e4qqle"] + +[ext_resource type="Script" path="res://demo/Camera.gd" id="1"] +[ext_resource type="FontFile" uid="uid://dvfypd4r23idc" path="res://demo/assets/Anke.otf" id="2"] +[ext_resource type="Texture2D" uid="uid://dkf0ahw2k36lf" path="res://demo/assets/target.png" id="3"] +[ext_resource type="Script" path="res://demo/Map.gd" id="4"] +[ext_resource type="Script" path="res://demo/Los.gd" id="5"] +[ext_resource type="Texture2D" uid="uid://bs86mgcu1rf0c" path="res://demo/assets/tank.png" id="6"] +[ext_resource type="Script" path="res://demo/Main.gd" id="7"] + +[sub_resource type="FontFile" id="1"] +fallbacks = Array[Font]([ExtResource("2")]) +face_index = null +embolden = null +transform = null +cache/0/16/0/ascent = 0.0 +cache/0/16/0/descent = 0.0 +cache/0/16/0/underline_position = 0.0 +cache/0/16/0/underline_thickness = 0.0 +cache/0/16/0/scale = 1.0 +cache/0/16/0/kerning_overrides/16/0 = Vector2(0, 0) + +[sub_resource type="Theme" id="2"] +default_font = SubResource("1") [node name="Main" type="Node2D"] -script = ExtResource( 7 ) +script = ExtResource("7") [node name="CanvasLayer" type="CanvasLayer" parent="."] [node name="HBOX" type="HBoxContainer" parent="CanvasLayer"] +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -mouse_filter = 2 size_flags_horizontal = 3 size_flags_vertical = 3 -__meta__ = { -"_edit_use_anchors_": false -} - -[node name="ViewportContainer" type="ViewportContainer" parent="CanvasLayer/HBOX"] -margin_right = 1666.0 -margin_bottom = 1080.0 -rect_min_size = Vector2( 100, 100 ) mouse_filter = 2 + +[node name="ViewportContainer" type="SubViewportContainer" parent="CanvasLayer/HBOX"] +layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 +mouse_filter = 2 stretch = true -__meta__ = { -"_edit_use_anchors_": false -} -[node name="Viewport" type="Viewport" parent="CanvasLayer/HBOX/ViewportContainer"] -size = Vector2( 1666, 1080 ) +[node name="Viewport" type="SubViewport" parent="CanvasLayer/HBOX/ViewportContainer"] handle_input_locally = false -render_target_update_mode = 3 +size = Vector2i(1056, 648) +render_target_update_mode = 4 -[node name="Map" type="Sprite" parent="CanvasLayer/HBOX/ViewportContainer/Viewport"] -script = ExtResource( 4 ) +[node name="Map" type="Sprite2D" parent="CanvasLayer/HBOX/ViewportContainer/Viewport"] +script = ExtResource("4") [node name="Hexes" type="Node" parent="CanvasLayer/HBOX/ViewportContainer/Viewport/Map"] -[node name="Target" type="Sprite" parent="CanvasLayer/HBOX/ViewportContainer/Viewport/Map"] +[node name="Target" type="Sprite2D" parent="CanvasLayer/HBOX/ViewportContainer/Viewport/Map"] z_index = 1 -texture = ExtResource( 3 ) +texture = ExtResource("3") -[node name="Tank" type="Sprite" parent="CanvasLayer/HBOX/ViewportContainer/Viewport/Map"] +[node name="Tank" type="Sprite2D" parent="CanvasLayer/HBOX/ViewportContainer/Viewport/Map"] z_index = 1 -texture = ExtResource( 6 ) +texture = ExtResource("6") [node name="Los" type="Node2D" parent="CanvasLayer/HBOX/ViewportContainer/Viewport/Map"] -script = ExtResource( 5 ) +script = ExtResource("5") [node name="Camera" type="Camera2D" parent="CanvasLayer/HBOX/ViewportContainer/Viewport"] -current = true -script = ExtResource( 1 ) +script = ExtResource("1") [node name="UI" type="VBoxContainer" parent="CanvasLayer/HBOX"] -margin_left = 1670.0 -margin_right = 1920.0 -margin_bottom = 1080.0 -rect_min_size = Vector2( 250, 0 ) -theme = SubResource( 2 ) -custom_constants/separation = 30 -__meta__ = { -"_edit_use_anchors_": false -} +layout_mode = 2 +theme = SubResource("2") [node name="rotate" type="Button" parent="CanvasLayer/HBOX/UI"] -margin_right = 250.0 -margin_bottom = 100.0 -rect_min_size = Vector2( 0, 100 ) +layout_mode = 2 size_flags_horizontal = 3 text = "Rotate" -__meta__ = { -"_edit_use_anchors_": false -} [node name="zin" type="Button" parent="CanvasLayer/HBOX/UI"] -margin_top = 130.0 -margin_right = 250.0 -margin_bottom = 230.0 -rect_min_size = Vector2( 0, 100 ) +layout_mode = 2 size_flags_horizontal = 3 text = "Z IN" -__meta__ = { -"_edit_use_anchors_": false -} [node name="zout" type="Button" parent="CanvasLayer/HBOX/UI"] -margin_top = 260.0 -margin_right = 250.0 -margin_bottom = 360.0 -rect_min_size = Vector2( 0, 100 ) +layout_mode = 2 size_flags_horizontal = 3 text = "Z OUT" -__meta__ = { -"_edit_use_anchors_": false -} [node name="LOS" type="CheckBox" parent="CanvasLayer/HBOX/UI"] -margin_top = 390.0 -margin_right = 250.0 -margin_bottom = 434.0 -pressed = true +layout_mode = 2 text = "LOS" -__meta__ = { -"_edit_use_anchors_": false -} [node name="Move" type="CheckBox" parent="CanvasLayer/HBOX/UI"] -margin_top = 464.0 -margin_right = 250.0 -margin_bottom = 508.0 +layout_mode = 2 text = "Move" -__meta__ = { -"_edit_use_anchors_": false -} [node name="Influence" type="CheckBox" parent="CanvasLayer/HBOX/UI"] -margin_top = 538.0 -margin_right = 250.0 -margin_bottom = 582.0 +layout_mode = 2 text = "Influence" -__meta__ = { -"_edit_use_anchors_": false -} [node name="Info" type="Label" parent="CanvasLayer/HBOX/UI"] -margin_top = 612.0 -margin_right = 250.0 -margin_bottom = 648.0 -__meta__ = { -"_edit_use_anchors_": false -} +layout_mode = 2 [node name="OSInfo" type="Label" parent="CanvasLayer/HBOX/UI"] -margin_top = 678.0 -margin_right = 250.0 -margin_bottom = 714.0 -__meta__ = { -"_edit_use_anchors_": false -} +layout_mode = 2 diff --git a/demo/Map.gd b/demo/Map.gd index ca2a927..a72eb40 100644 --- a/demo/Map.gd +++ b/demo/Map.gd @@ -1,4 +1,4 @@ -extends Sprite +extends Sprite2D signal hex_touched(pos, hex, key) @@ -14,7 +14,7 @@ const TREE : String = "res://demo/assets/tree.png" const CITY : String = "res://demo/assets/city.png" const MOUNT : String = "res://demo/assets/mountain.png" -var drag : Sprite +var drag : Sprite2D var board : HexMap var prev : Vector2 @@ -75,10 +75,10 @@ func configure() -> void: v0 -= ts / 2 if v: hex_rotation = 30 - board = HexMap.new(10, 4, 100, v0, false, funcref(self, "get_tile")) + board = HexMap.new(10, 4, 100, v0, false, get_tile) else: hex_rotation = 0 - board = HexMap.new(10, 7, 100, v0, true, funcref(self, "get_tile")) + board = HexMap.new(10, 7, 100, v0, true, get_tile) func texture_size() -> Vector2: return texture.get_size() diff --git a/demo/Unit.gd b/demo/Unit.gd index e18ebff..8783f6b 100644 --- a/demo/Unit.gd +++ b/demo/Unit.gd @@ -1,7 +1,7 @@ -#warning-ignore-all:unused_argument +@icon('res://addons/hexgrid/Piece.png') extends Piece -class_name Unit, "res://addons/hexgrid/Piece.png" +class_name Unit func get_mp() -> int: return 2 diff --git a/demo/assets/Anke.otf.import b/demo/assets/Anke.otf.import new file mode 100644 index 0000000..5bd9ee1 --- /dev/null +++ b/demo/assets/Anke.otf.import @@ -0,0 +1,33 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://dvfypd4r23idc" +path="res://.godot/imported/Anke.otf-4ba2af30d19c0e9fbbe70b57c4b81596.fontdata" + +[deps] + +source_file="res://demo/assets/Anke.otf" +dest_files=["res://.godot/imported/Anke.otf-4ba2af30d19c0e9fbbe70b57c4b81596.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +hinting=1 +subpixel_positioning=1 +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/demo/assets/black.png.import b/demo/assets/black.png.import index c4ccf4e..8ecdb1a 100644 --- a/demo/assets/black.png.import +++ b/demo/assets/black.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/black.png-e51bb9446ed3e9a231bbefdd5d845a61.stex" +type="CompressedTexture2D" +uid="uid://cox5dnwr28x2b" +path="res://.godot/imported/black.png-e51bb9446ed3e9a231bbefdd5d845a61.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/black.png" -dest_files=[ "res://.import/black.png-e51bb9446ed3e9a231bbefdd5d845a61.stex" ] +dest_files=["res://.godot/imported/black.png-e51bb9446ed3e9a231bbefdd5d845a61.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/block.png.import b/demo/assets/block.png.import index d93d59d..b72a3d2 100644 --- a/demo/assets/block.png.import +++ b/demo/assets/block.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/block.png-7b666470ec7d1ed55123323983805a34.stex" +type="CompressedTexture2D" +uid="uid://qk5labte4qwy" +path="res://.godot/imported/block.png-7b666470ec7d1ed55123323983805a34.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/block.png" -dest_files=[ "res://.import/block.png-7b666470ec7d1ed55123323983805a34.stex" ] +dest_files=["res://.godot/imported/block.png-7b666470ec7d1ed55123323983805a34.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/city.png.import b/demo/assets/city.png.import index 8175df8..daa6804 100644 --- a/demo/assets/city.png.import +++ b/demo/assets/city.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/city.png-b5e144e6bc7635251820830d2b6c5a50.stex" +type="CompressedTexture2D" +uid="uid://c7xc7emgbvkfv" +path="res://.godot/imported/city.png-b5e144e6bc7635251820830d2b6c5a50.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/city.png" -dest_files=[ "res://.import/city.png-b5e144e6bc7635251820830d2b6c5a50.stex" ] +dest_files=["res://.godot/imported/city.png-b5e144e6bc7635251820830d2b6c5a50.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/green.png.import b/demo/assets/green.png.import index fad21c4..ba9afc1 100644 --- a/demo/assets/green.png.import +++ b/demo/assets/green.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/green.png-6cabcf440c4bebeca5e9f1949a914b94.stex" +type="CompressedTexture2D" +uid="uid://dmwoa7ry8pghk" +path="res://.godot/imported/green.png-6cabcf440c4bebeca5e9f1949a914b94.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/green.png" -dest_files=[ "res://.import/green.png-6cabcf440c4bebeca5e9f1949a914b94.stex" ] +dest_files=["res://.godot/imported/green.png-6cabcf440c4bebeca5e9f1949a914b94.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/map-h.png.import b/demo/assets/map-h.png.import index 7fd3434..22b21ac 100644 --- a/demo/assets/map-h.png.import +++ b/demo/assets/map-h.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/map-h.png-a625f2c7dc4113b3d54e67ecad578faa.stex" +type="CompressedTexture2D" +uid="uid://bl8mgmrc3njyw" +path="res://.godot/imported/map-h.png-a625f2c7dc4113b3d54e67ecad578faa.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/map-h.png" -dest_files=[ "res://.import/map-h.png-a625f2c7dc4113b3d54e67ecad578faa.stex" ] +dest_files=["res://.godot/imported/map-h.png-a625f2c7dc4113b3d54e67ecad578faa.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/map-v.png.import b/demo/assets/map-v.png.import index 3c082e1..7ac6006 100644 --- a/demo/assets/map-v.png.import +++ b/demo/assets/map-v.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/map-v.png-f23934658a4a2f9eda7b09606fcff75d.stex" +type="CompressedTexture2D" +uid="uid://dr7hwrtdoqab8" +path="res://.godot/imported/map-v.png-f23934658a4a2f9eda7b09606fcff75d.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/map-v.png" -dest_files=[ "res://.import/map-v.png-f23934658a4a2f9eda7b09606fcff75d.stex" ] +dest_files=["res://.godot/imported/map-v.png-f23934658a4a2f9eda7b09606fcff75d.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/mountain.png.import b/demo/assets/mountain.png.import index 1678f9b..7651ab2 100644 --- a/demo/assets/mountain.png.import +++ b/demo/assets/mountain.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/mountain.png-2ae0c60bcbdbe0b637e25f7b00914834.stex" +type="CompressedTexture2D" +uid="uid://2p6e0nlt5btm" +path="res://.godot/imported/mountain.png-2ae0c60bcbdbe0b637e25f7b00914834.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/mountain.png" -dest_files=[ "res://.import/mountain.png-2ae0c60bcbdbe0b637e25f7b00914834.stex" ] +dest_files=["res://.godot/imported/mountain.png-2ae0c60bcbdbe0b637e25f7b00914834.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/move.png.import b/demo/assets/move.png.import index 94b7afa..b68444a 100644 --- a/demo/assets/move.png.import +++ b/demo/assets/move.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/move.png-cbedb7692b73fcaf2a6f182fb2ab302a.stex" +type="CompressedTexture2D" +uid="uid://dxy8ycdsyha83" +path="res://.godot/imported/move.png-cbedb7692b73fcaf2a6f182fb2ab302a.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/move.png" -dest_files=[ "res://.import/move.png-cbedb7692b73fcaf2a6f182fb2ab302a.stex" ] +dest_files=["res://.godot/imported/move.png-cbedb7692b73fcaf2a6f182fb2ab302a.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/red.png.import b/demo/assets/red.png.import index 9a47dff..2098b79 100644 --- a/demo/assets/red.png.import +++ b/demo/assets/red.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/red.png-0fb5b28e6c289aea54776e2a268c9918.stex" +type="CompressedTexture2D" +uid="uid://bei430jmpo3ff" +path="res://.godot/imported/red.png-0fb5b28e6c289aea54776e2a268c9918.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/red.png" -dest_files=[ "res://.import/red.png-0fb5b28e6c289aea54776e2a268c9918.stex" ] +dest_files=["res://.godot/imported/red.png-0fb5b28e6c289aea54776e2a268c9918.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/short.png.import b/demo/assets/short.png.import index a73f3dd..8564fcb 100644 --- a/demo/assets/short.png.import +++ b/demo/assets/short.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/short.png-91db7f36df1a087629b942a028fb5df2.stex" +type="CompressedTexture2D" +uid="uid://fyd17mvj34bv" +path="res://.godot/imported/short.png-91db7f36df1a087629b942a028fb5df2.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/short.png" -dest_files=[ "res://.import/short.png-91db7f36df1a087629b942a028fb5df2.stex" ] +dest_files=["res://.godot/imported/short.png-91db7f36df1a087629b942a028fb5df2.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/tank.png.import b/demo/assets/tank.png.import index 26613fc..499b761 100644 --- a/demo/assets/tank.png.import +++ b/demo/assets/tank.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/tank.png-2f13e859efcf4e73b133475e609ef36b.stex" +type="CompressedTexture2D" +uid="uid://bs86mgcu1rf0c" +path="res://.godot/imported/tank.png-2f13e859efcf4e73b133475e609ef36b.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/tank.png" -dest_files=[ "res://.import/tank.png-2f13e859efcf4e73b133475e609ef36b.stex" ] +dest_files=["res://.godot/imported/tank.png-2f13e859efcf4e73b133475e609ef36b.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/target.png.import b/demo/assets/target.png.import index 81d6ccc..0d1e656 100644 --- a/demo/assets/target.png.import +++ b/demo/assets/target.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/target.png-c45d87ea7b33e72c20871629efe7753d.stex" +type="CompressedTexture2D" +uid="uid://dkf0ahw2k36lf" +path="res://.godot/imported/target.png-c45d87ea7b33e72c20871629efe7753d.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/target.png" -dest_files=[ "res://.import/target.png-c45d87ea7b33e72c20871629efe7753d.stex" ] +dest_files=["res://.godot/imported/target.png-c45d87ea7b33e72c20871629efe7753d.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/demo/assets/tree.png.import b/demo/assets/tree.png.import index 4b2123d..82441e1 100644 --- a/demo/assets/tree.png.import +++ b/demo/assets/tree.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/tree.png-09a81eaacb2ae7a9e3156ec7110e0c2e.stex" +type="CompressedTexture2D" +uid="uid://lcfgdxwmimps" +path="res://.godot/imported/tree.png-09a81eaacb2ae7a9e3156ec7110e0c2e.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://demo/assets/tree.png" -dest_files=[ "res://.import/tree.png-09a81eaacb2ae7a9e3156ec7110e0c2e.stex" ] +dest_files=["res://.godot/imported/tree.png-09a81eaacb2ae7a9e3156ec7110e0c2e.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +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/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 |