mirror of
https://github.com/Nokorpo/LibreAim.git
synced 2025-06-09 09:35:16 +09:00
Add configuration warnings to Scenarios
This commit is contained in:
parent
1a5be4f603
commit
a8c9b42418
3 changed files with 96 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
extends Node3D
|
||||
@tool
|
||||
@icon("res://scenes/game_world/scenario/scenario.svg")
|
||||
class_name Scenario
|
||||
extends Node3D
|
||||
## A custom training scenario to be played
|
||||
|
||||
@warning_ignore("unused_signal")
|
||||
|
@ -11,6 +13,12 @@ signal target_hitted
|
|||
|
||||
@export var _light: DirectionalLight3D
|
||||
|
||||
func _get_configuration_warnings() -> PackedStringArray:
|
||||
var warnings = []
|
||||
if _light == null:
|
||||
warnings.append("There should be a light node.")
|
||||
return warnings
|
||||
|
||||
func initialize() -> void:
|
||||
_update_world_appareance()
|
||||
|
||||
|
|
50
scenes/game_world/scenario/scenario.svg
Normal file
50
scenes/game_world/scenario/scenario.svg
Normal file
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 4.2333332 4.2333333"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
|
||||
sodipodi:docname="scenario.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<rect
|
||||
style="fill:none;fill-opacity:1;stroke:#fc7f7f;stroke-width:0.396875;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect1"
|
||||
width="3.1885638"
|
||||
height="3.2267001"
|
||||
x="0.51861882"
|
||||
y="0.45847753"
|
||||
rx="0.48874429"
|
||||
ry="0.48874429" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:1;stroke:#fc7f7f;stroke-width:0.396875;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
d="M 1.7094779,2.0718275 H 0.98829488"
|
||||
id="path3-9-6-6"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:1;stroke:#fc7f7f;stroke-width:0.396875;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
d="M 2.1129006,3.1964332 V 2.4752502"
|
||||
id="path3-9-6-6-9"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:1;stroke:#fc7f7f;stroke-width:0.396875;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
d="M 2.1129006,1.6684048 V 0.94722182"
|
||||
id="path3-9-6-6-9-4"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-opacity:1;stroke:#fc7f7f;stroke-width:0.396875;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
d="M 3.2375064,2.0718276 H 2.5163234"
|
||||
id="path3-9-6-6-0"
|
||||
sodipodi:nodetypes="cc" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
37
scenes/game_world/scenario/scenario.svg.import
Normal file
37
scenes/game_world/scenario/scenario.svg.import
Normal file
|
@ -0,0 +1,37 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c2tneknkr6pua"
|
||||
path="res://.godot/imported/scenario.svg-768407f03cc041ba82a21914b3ff43e7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/game_world/scenario/scenario.svg"
|
||||
dest_files=["res://.godot/imported/scenario.svg-768407f03cc041ba82a21914b3ff43e7.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
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
Loading…
Add table
Add a link
Reference in a new issue