-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from snipercup/item-editor-ranged
Item editor ranged, magazine and ammo configuration
- Loading branch information
Showing
16 changed files
with
616 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://hktpdnah1cbg" | ||
path="res://.godot/imported/pistol_64.png-feaeec3d09921e141e026bd860429ada.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://Mods/Core/Items/pistol_64.png" | ||
dest_files=["res://.godot/imported/pistol_64.png-feaeec3d09921e141e026bd860429ada.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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://iaxknyj2b5s2" | ||
path="res://.godot/imported/rifle_128_64.png-b12f38a9f7ff52df43988cce360173b4.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://Mods/Core/Items/rifle_128_64.png" | ||
dest_files=["res://.godot/imported/rifle_128_64.png-b12f38a9f7ff52df43988cce360173b4.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 |
27 changes: 27 additions & 0 deletions
27
Scenes/ContentManager/Custom_Editors/ItemEditor/ItemAmmoEditor.tscn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://c2uiumyeepree"] | ||
|
||
[ext_resource type="Script" path="res://Scripts/ItemAmmoEditor.gd" id="1_5v06u"] | ||
|
||
[node name="ItemAmmoEditor" type="Control" node_paths=PackedStringArray("DamageNumberBox")] | ||
layout_mode = 3 | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
script = ExtResource("1_5v06u") | ||
DamageNumberBox = NodePath("Ammo/DamageNumber") | ||
|
||
[node name="Ammo" type="GridContainer" parent="."] | ||
layout_mode = 0 | ||
size_flags_vertical = 3 | ||
columns = 2 | ||
|
||
[node name="DamageLabel" type="Label" parent="Ammo"] | ||
layout_mode = 2 | ||
text = "Damage" | ||
|
||
[node name="DamageNumber" type="SpinBox" parent="Ammo"] | ||
layout_mode = 2 | ||
tooltip_text = "The width of this item in the inventory. A larger number means it will take up more horizontal inventory slots" | ||
value = 25.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
Scenes/ContentManager/Custom_Editors/ItemEditor/ItemMagazineEditor.tscn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://27f4k2pq2odn"] | ||
|
||
[ext_resource type="Script" path="res://Scripts/ItemMagazineEditor.gd" id="1_cgvqr"] | ||
|
||
[node name="ItemMagazineEditor" type="Control" node_paths=PackedStringArray("UsedAmmoTextEdit", "MaxAmmoNumberBox")] | ||
layout_mode = 3 | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
script = ExtResource("1_cgvqr") | ||
UsedAmmoTextEdit = NodePath("Magazine/UsedAmmoTextEdit") | ||
MaxAmmoNumberBox = NodePath("Magazine/MaxAmmoNumber") | ||
|
||
[node name="Magazine" type="GridContainer" parent="."] | ||
layout_mode = 0 | ||
size_flags_vertical = 3 | ||
columns = 2 | ||
|
||
[node name="UsedAmmoLabel" type="Label" parent="Magazine"] | ||
layout_mode = 2 | ||
text = "Ammo" | ||
|
||
[node name="UsedAmmoTextEdit" type="TextEdit" parent="Magazine"] | ||
custom_minimum_size = Vector2(0, 30) | ||
layout_mode = 2 | ||
size_flags_horizontal = 3 | ||
size_flags_stretch_ratio = 0.1 | ||
placeholder_text = "9mm" | ||
|
||
[node name="MaxAmmoLabel" type="Label" parent="Magazine"] | ||
layout_mode = 2 | ||
text = "Max ammo" | ||
|
||
[node name="MaxAmmoNumber" type="SpinBox" parent="Magazine"] | ||
layout_mode = 2 | ||
tooltip_text = "The width of this item in the inventory. A larger number means it will take up more horizontal inventory slots" | ||
value = 20.0 |
Oops, something went wrong.