summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-03-14 21:45:00 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-03-14 21:45:00 +0100
commitc2a17228c19c4f959367b139e39c5e24dd7edd36 (patch)
tree2a898121b636f621bca67e332d439fc7c2e1c0fb
parentd7ae050e7dc27fa052a9f4dbf065fdb86a966967 (diff)
downloadgodot-hexgrid-c2a17228c19c4f959367b139e39c5e24dd7edd36.zip
godot-hexgrid-c2a17228c19c4f959367b139e39c5e24dd7edd36.tar.gz
go godot4
-rw-r--r--addons/hexgrid/HexMap.gd20
-rw-r--r--addons/hexgrid/HexMap.png.import31
-rw-r--r--addons/hexgrid/Piece.gd4
-rw-r--r--addons/hexgrid/Piece.png.import31
-rw-r--r--addons/hexgrid/Tile.gd6
-rw-r--r--addons/hexgrid/Tile.png.import31
-rw-r--r--demo/Hex.gd9
-rw-r--r--demo/Los.gd2
-rw-r--r--demo/Main.gd29
-rw-r--r--demo/Main.tscn152
-rw-r--r--demo/Map.gd8
-rw-r--r--demo/Unit.gd4
-rw-r--r--demo/assets/Anke.otf.import33
-rw-r--r--demo/assets/black.png.import31
-rw-r--r--demo/assets/block.png.import31
-rw-r--r--demo/assets/city.png.import31
-rw-r--r--demo/assets/green.png.import31
-rw-r--r--demo/assets/map-h.png.import31
-rw-r--r--demo/assets/map-v.png.import31
-rw-r--r--demo/assets/mountain.png.import31
-rw-r--r--demo/assets/move.png.import31
-rw-r--r--demo/assets/red.png.import31
-rw-r--r--demo/assets/short.png.import31
-rw-r--r--demo/assets/tank.png.import31
-rw-r--r--demo/assets/target.png.import31
-rw-r--r--demo/assets/tree.png.import31
-rw-r--r--icon.png.import32
-rw-r--r--project.godot39
28 files changed, 386 insertions, 448 deletions
diff --git a/addons/hexgrid/HexMap.gd b/addons/hexgrid/HexMap.gd
index f2a62c7..e1a6591 100644
--- a/addons/hexgrid/HexMap.gd
+++ b/addons/hexgrid/HexMap.gd
@@ -1,7 +1,7 @@
-#warning-ignore-all:integer_division
+@icon('res://addons/hexgrid/HexMap.png')
extends Node
-class_name HexMap, "res://addons/hexgrid/HexMap.png"
+class_name HexMap
enum Orientation { E=1, NE=2, N=4, NW=8, W=16, SW=32, S=64, SE=128 }
@@ -22,13 +22,13 @@ var m : float # dh / dw
var im : float # dw / dh
var tl : int # num of hexes in 2 consecutives rows
-var tile_factory_fct : FuncRef
+var tile_factory_fct : Callable
var angles : Dictionary
var adjacents : Array
var search_count : int
var stack : Array
-func _init(cols : int, rows : int, side : float, v0 : Vector2, vertical : bool, fct : FuncRef) -> void:
+func _init(cols : int, rows : int, side : float, v0 : Vector2, vertical : bool, fct : Callable) -> void:
tile_factory_fct = fct
v = vertical
s = side
@@ -69,7 +69,7 @@ func size() -> int:
# fetch a Tile given it's col;row coordinates
func get_tile(coords : Vector2) -> Tile:
- return tile_factory_fct.call_func(coords, key(coords))
+ return tile_factory_fct.call(coords, key(coords))
# Orientation to degrees
func to_degrees(o : int) -> int:
@@ -84,7 +84,7 @@ func to_orientation(a : float) -> int:
# compute the angle between 2 adjacent Tiles
func angle(from : Tile, to : Tile) -> int:
- var a : float = rad2deg((to.position - from.position).angle()) + DEGREE_ADJ
+ var a : float = rad_to_deg((to.position - from.position).angle()) + DEGREE_ADJ
if a < 0: a += 360
return int(a / 10) * 10
@@ -96,7 +96,7 @@ func opposite(o : int) -> int:
# return the Orientation given to distant Tiles
# Orientation is combined in case of diagonals
func distant_orientation(from : Tile, to : Tile) -> int:
- var a : float = rad2deg((to.position - from.position).angle())
+ var a : float = rad_to_deg((to.position - from.position).angle())
if a < 0: a += 360
a = int(a * 10) / 10.0
for k in angles.keys():
@@ -422,7 +422,7 @@ func possible_moves(piece : Piece, from : Tile, tiles : Array) -> int:
from.search_count = search_count
from.road_march = road_march_bonus > 0
stack.push_back(from)
- while(not stack.empty()):
+ while(not stack.is_empty()):
var src : Tile = stack.pop_back()
if (src.acc + (road_march_bonus if src.road_march else 0)) <= 0: continue
# warning-ignore:return_value_discarded
@@ -462,7 +462,7 @@ func shortest_path(piece : Piece, from : Tile, to : Tile, tiles : Array) -> int
from.search_count = search_count
from.road_march = road_march_bonus > 0
stack.push_back(from)
- while(not stack.empty()):
+ while(not stack.is_empty()):
var src : Tile = stack.pop_back()
if (src == to): break
# warning-ignore:return_value_discarded
@@ -512,7 +512,7 @@ func range_of_influence(piece : Piece, from : Tile, category : int, tiles : Arra
search_count += 1
from.search_count = search_count
stack.push_back(from)
- while(not stack.empty()):
+ while(not stack.is_empty()):
var src : Tile = stack.pop_back()
# warning-ignore:return_value_discarded
_build_adjacents(src.coords)
diff --git a/addons/hexgrid/HexMap.png.import b/addons/hexgrid/HexMap.png.import
index c56b1da..aa99e08 100644
--- a/addons/hexgrid/HexMap.png.import
+++ b/addons/hexgrid/HexMap.png.import
@@ -1,8 +1,9 @@
[remap]
importer="texture"
-type="StreamTexture"
-path="res://.import/HexMap.png-86399ef085f54bb49aa45ad5daebe043.stex"
+type="CompressedTexture2D"
+uid="uid://c7f4krpr86r0y"
+path="res://.godot/imported/HexMap.png-86399ef085f54bb49aa45ad5daebe043.ctex"
metadata={
"vram_texture": false
}
@@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://addons/hexgrid/HexMap.png"
-dest_files=[ "res://.import/HexMap.png-86399ef085f54bb49aa45ad5daebe043.stex" ]
+dest_files=["res://.godot/imported/HexMap.png-86399ef085f54bb49aa45ad5daebe043.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/addons/hexgrid/Piece.gd b/addons/hexgrid/Piece.gd
index e84208f..0085ae7 100644
--- a/addons/hexgrid/Piece.gd
+++ b/addons/hexgrid/Piece.gd
@@ -1,7 +1,7 @@
-#warning-ignore-all:unused_argument
+@icon('res://addons/hexgrid/Piece.png')
extends Node2D
-class_name Piece, "res://addons/hexgrid/Piece.png"
+class_name Piece
# movement points
func get_mp() -> int:
diff --git a/addons/hexgrid/Piece.png.import b/addons/hexgrid/Piece.png.import
index ce53b80..64160d3 100644
--- a/addons/hexgrid/Piece.png.import
+++ b/addons/hexgrid/Piece.png.import
@@ -1,8 +1,9 @@
[remap]
importer="texture"
-type="StreamTexture"
-path="res://.import/Piece.png-5155cac4a0bf7c2a889be85d756a935e.stex"
+type="CompressedTexture2D"
+uid="uid://bqdpgpmurt7r"
+path="res://.godot/imported/Piece.png-5155cac4a0bf7c2a889be85d756a935e.ctex"
metadata={
"vram_texture": false
}
@@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://addons/hexgrid/Piece.png"
-dest_files=[ "res://.import/Piece.png-5155cac4a0bf7c2a889be85d756a935e.stex" ]
+dest_files=["res://.godot/imported/Piece.png-5155cac4a0bf7c2a889be85d756a935e.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/addons/hexgrid/Tile.gd b/addons/hexgrid/Tile.gd
index b9463eb..ac94584 100644
--- a/addons/hexgrid/Tile.gd
+++ b/addons/hexgrid/Tile.gd
@@ -1,7 +1,7 @@
-#warning-ignore-all:unused_argument
+@icon('res://addons/hexgrid/Tile.png')
extends Node2D
-class_name Tile, "res://addons/hexgrid/Tile.png"
+class_name Tile
var coords : Vector2
var blocked : bool
@@ -18,7 +18,7 @@ func configure(p : Vector2, c: Vector2, o :Array) -> void:
coords = c
on_map = true
for t in o:
- var s :Sprite = Sprite.new()
+ var s :Sprite2D = Sprite2D.new()
s.texture = load(t)
s.visible = false
add_child(s)
diff --git a/addons/hexgrid/Tile.png.import b/addons/hexgrid/Tile.png.import
index 5c045cc..13c2e53 100644
--- a/addons/hexgrid/Tile.png.import
+++ b/addons/hexgrid/Tile.png.import
@@ -1,8 +1,9 @@
[remap]
importer="texture"
-type="StreamTexture"
-path="res://.import/Tile.png-c201d199cb1cc344924999eb46a6ca7d.stex"
+type="CompressedTexture2D"
+uid="uid://n0h0bofsf177"
+path="res://.godot/imported/Tile.png-c201d199cb1cc344924999eb46a6ca7d.ctex"
metadata={
"vram_texture": false
}
@@ -10,26 +11,24 @@ metadata={
[deps]
source_file="res://addons/hexgrid/Tile.png"
-dest_files=[ "res://.import/Tile.png-c201d199cb1cc344924999eb46a6ca7d.stex" ]
+dest_files=["res://.godot/imported/Tile.png-c201d199cb1cc344924999eb46a6ca7d.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/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
diff --git a/icon.png.import b/icon.png.import
index 96cbf46..7670c2d 100644
--- a/icon.png.import
+++ b/icon.png.import
@@ -1,8 +1,9 @@
[remap]
importer="texture"
-type="StreamTexture"
-path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
+type="CompressedTexture2D"
+uid="uid://c60hylfrir760"
+path="res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.ctex"
metadata={
"vram_texture": false
}
@@ -10,25 +11,24 @@ metadata={
[deps]
source_file="res://icon.png"
-dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
+dest_files=["res://.godot/imported/icon.png-487276ed1e3a0c39cad0279d744ee560.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
-stream=false
-size_limit=0
-detect_3d=true
-svg/scale=1.0
+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
diff --git a/project.godot b/project.godot
index cbb10de..8ba074e 100644
--- a/project.godot
+++ b/project.godot
@@ -6,49 +6,18 @@
; [section] ; section goes between []
; param=value ; assign values to parameters
-config_version=4
-
-_global_script_classes=[ {
-"base": "Tile",
-"class": "Hex",
-"language": "GDScript",
-"path": "res://demo/Hex.gd"
-}, {
-"base": "Node",
-"class": "HexMap",
-"language": "GDScript",
-"path": "res://addons/hexgrid/HexMap.gd"
-}, {
-"base": "Node2D",
-"class": "Piece",
-"language": "GDScript",
-"path": "res://addons/hexgrid/Piece.gd"
-}, {
-"base": "Node2D",
-"class": "Tile",
-"language": "GDScript",
-"path": "res://addons/hexgrid/Tile.gd"
-}, {
-"base": "Piece",
-"class": "Unit",
-"language": "GDScript",
-"path": "res://demo/Unit.gd"
-} ]
-_global_script_class_icons={
-"Hex": "res://addons/hexgrid/Tile.png",
-"HexMap": "res://addons/hexgrid/HexMap.png",
-"Piece": "res://addons/hexgrid/Piece.png",
-"Tile": "res://addons/hexgrid/Tile.png",
-"Unit": "res://addons/hexgrid/Piece.png"
-}
+config_version=5
[application]
config/name="Godot Hexgrid"
run/main_scene="res://demo/Main.tscn"
+config/features=PackedStringArray("4.1")
config/icon="res://icon.png"
[display]
+window/size/viewport_width=1920
+window/size/viewport_height=1024
window/size/width=1920
window/size/height=1080