Better handling of ressources

This commit is contained in:
Lucas 2024-07-28 14:04:20 +02:00
parent 06184afcb8
commit 17ea850cce
2 changed files with 5 additions and 5 deletions

View file

@ -5,8 +5,8 @@ platform="Windows Desktop"
runnable=true runnable=true
dedicated_server=false dedicated_server=false
custom_features="" custom_features=""
export_filter="scenes" export_filter="resources"
export_files=PackedStringArray("res://maps/mainMenu.tscn", "res://maps/map1.tscn", "res://maps/mapManager.tscn") export_files=PackedStringArray("res://maps/mainMenu.tscn", "res://maps/map1.tscn", "res://maps/mapManager.tscn", "res://shaders/shaderMaterial_Outline.tres", "res://shaders/shader_outline3.gdshader", "res://shaders/shader_outline2.gdshader", "res://shaders/shader_outline.gdshader", "res://core/bridgeNode.tscn", "res://core/Cursor.gd", "res://core/Cursor.tscn", "res://core/debugDraw.tscn", "res://core/player.gd", "res://core/player.tscn", "res://core/sceneInstance.gd", "res://core/Sticker.gd", "res://core/Sticker.tscn")
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="builds/stickerClone.exe" export_path="builds/stickerClone.exe"
@ -32,7 +32,7 @@ codesign/timestamp_server_url=""
codesign/digest_algorithm=1 codesign/digest_algorithm=1
codesign/description="" codesign/description=""
codesign/custom_options=PackedStringArray() codesign/custom_options=PackedStringArray()
application/modify_resources=true application/modify_resources=false
application/icon="" application/icon=""
application/console_wrapper_icon="" application/console_wrapper_icon=""
application/icon_interpolation=4 application/icon_interpolation=4

View file

@ -10,6 +10,8 @@ region = Rect2(384, 64, 288, 224)
script/source = "@tool script/source = "@tool
extends Sprite2D extends Sprite2D
var OutlineMat:ShaderMaterial = preload(\"res://shaders/shaderMaterial_Outline.tres\")
@export_group(\"Sticker Detection Shape\") @export_group(\"Sticker Detection Shape\")
@export var Shape :Shape2D: @export var Shape :Shape2D:
set(new_shape): set(new_shape):
@ -35,8 +37,6 @@ func on_click():
print(self,\" clicked\") print(self,\" clicked\")
func on_hover(): func on_hover():
var OutlineMat:ShaderMaterial
OutlineMat = load(\"res://shaders/shaderMaterial_Outline.tres\")
material = OutlineMat material = OutlineMat
queue_redraw() queue_redraw()