Skip to content

Commit

Permalink
Version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
4d49 authored Apr 23, 2024
1 parent 250e5dd commit 96e2591
Show file tree
Hide file tree
Showing 25 changed files with 1,963 additions and 582 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Godot auto generated files
*.import
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2022-2023 Mansur Isaev and contributors
Copyright (c) 2022-2024 Mansur Isaev and contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Object Inspector
In-game object inspector for Godot 4.0.
In-game property inspector for Godot 4.3+

![](https://user-images.githubusercontent.com/8208165/165034315-66e7208b-ab82-433d-9b04-c9363e0bb205.png)
![](https://github.com/4d49/object-inspector/assets/8208165/1e57adc5-9941-43dd-9aeb-50df146f00c4)

# Support types:
- Bool
Expand All @@ -13,15 +13,19 @@ In-game object inspector for Godot 4.0.
- Vector3, Vector3i
- Enum
- Flags
- Typed/Untyped Arrays and PackedArrays
- Dictionary
- Category, Group and Subgroup

# Installation:
1. Clone this repository to `addons` folder.
1. `git clone` this repository to `addons` folder.
2. Enabled `Object Inspector` in Plugins.
3. Add `ObjectInspector` node to the scene.
4. Profit.
4. Apply the example theme to the `ObjectInspector` node.
5. Done!

# License
Copyright (c) 2023 Mansur Isaev and contributors
Copyright (c) 2022-2024 Mansur Isaev and contributors

Unless otherwise specified, files in this repository are licensed under the
MIT license. See [LICENSE.md](LICENSE.md) for more information.
1 change: 1 addition & 0 deletions icons/collapsed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/delete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/expanded.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions icons/inspector.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions icons/inspector_container.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions icons/maximize.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/page_first.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/page_last.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/page_next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/page_prev.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions icons/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions inspector_theme.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
[gd_resource type="Theme" load_steps=15 format=3 uid="uid://dyf67c0ud50ts"]

[ext_resource type="Texture2D" uid="uid://cr6jrnuywr8g4" path="res://addons/object-inspector/icons/maximize.svg" id="1_hfaeu"]
[ext_resource type="Texture2D" uid="uid://cfw5fv6chuy5o" path="res://addons/object-inspector/icons/collapsed.svg" id="1_hpca1"]
[ext_resource type="Texture2D" uid="uid://dec8bwwwl2po1" path="res://addons/object-inspector/icons/expanded.svg" id="2_0jwgf"]
[ext_resource type="Texture2D" uid="uid://bq3g4y2emis6p" path="res://addons/object-inspector/icons/search.svg" id="2_vebvf"]
[ext_resource type="Texture2D" uid="uid://ce8g2ipkdytv4" path="res://addons/object-inspector/icons/page_first.svg" id="5_e0bdv"]
[ext_resource type="Texture2D" uid="uid://xk56atdieu1t" path="res://addons/object-inspector/icons/edit.svg" id="5_x0g0o"]
[ext_resource type="Texture2D" uid="uid://ccs8xtkn7x5wd" path="res://addons/object-inspector/icons/page_last.svg" id="6_wdbtw"]
[ext_resource type="Texture2D" uid="uid://bd0mwwwcv347l" path="res://addons/object-inspector/icons/page_next.svg" id="7_hjbvh"]
[ext_resource type="Texture2D" uid="uid://cysi7j6pgq3m" path="res://addons/object-inspector/icons/page_prev.svg" id="8_ybigx"]
[ext_resource type="Texture2D" uid="uid://bblbrs0vcnuui" path="res://addons/object-inspector/icons/delete.svg" id="9_t1qfx"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_h08j0"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ds1an"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 4.0
content_margin_bottom = 4.0
bg_color = Color(0, 0, 0, 0.5)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 3
anti_aliasing = false

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_idiuy"]
content_margin_left = 2.0
content_margin_top = 2.0
content_margin_right = 2.0
content_margin_bottom = 2.0
bg_color = Color(0.225, 0.225, 0.225, 0.5)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 3
anti_aliasing = false

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cncyr"]
content_margin_left = 2.0
content_margin_top = 2.0
content_margin_right = 2.0
content_margin_bottom = 2.0
bg_color = Color(1, 1, 1, 0.125)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 3
anti_aliasing = false

[resource]
BoxContainer/constants/separation = 2
FlowContainer/constants/h_separation = 2
FlowContainer/constants/v_separation = 2
Inspector/base_type = &"VBoxContainer"
Inspector/icons/maximize = ExtResource("1_hfaeu")
Inspector/icons/search = ExtResource("2_vebvf")
InspectorProperty/base_type = &"PanelContainer"
InspectorProperty/styles/panel = SubResource("StyleBoxEmpty_h08j0")
InspectorPropertyArray/base_type = &"PanelContainer"
InspectorPropertyArray/icons/delete = ExtResource("9_t1qfx")
InspectorPropertyArray/icons/edit = ExtResource("5_x0g0o")
InspectorPropertyArray/styles/panel = SubResource("StyleBoxEmpty_h08j0")
InspectorPropertyCategory/base_type = &"PanelContainer"
InspectorPropertyCategory/styles/header = SubResource("StyleBoxFlat_ds1an")
InspectorPropertyCategory/styles/panel = SubResource("StyleBoxEmpty_h08j0")
InspectorPropertyDictionary/base_type = &"PanelContainer"
InspectorPropertyDictionary/icons/delete = ExtResource("9_t1qfx")
InspectorPropertyDictionary/icons/edit = ExtResource("5_x0g0o")
InspectorPropertyDictionary/styles/panel = SubResource("StyleBoxEmpty_h08j0")
InspectorPropertyGroup/base_type = &"PanelContainer"
InspectorPropertyGroup/icons/collapsed = ExtResource("1_hpca1")
InspectorPropertyGroup/icons/expanded = ExtResource("2_0jwgf")
InspectorPropertyGroup/styles/panel = SubResource("StyleBoxFlat_idiuy")
InspectorPropertyPaginator/base_type = &"VBoxContainer"
InspectorPropertyPaginator/icons/page_first = ExtResource("5_e0bdv")
InspectorPropertyPaginator/icons/page_last = ExtResource("6_wdbtw")
InspectorPropertyPaginator/icons/page_next = ExtResource("7_hjbvh")
InspectorPropertyPaginator/icons/page_prev = ExtResource("8_ybigx")
InspectorPropertySubGroup/base_type = &"InspectorPropertyGroup"
InspectorPropertySubGroup/styles/panel = SubResource("StyleBoxFlat_cncyr")
InspectorSubProperty/base_type = &"InspectorProperty"
InspectorSubProperty/styles/panel = SubResource("StyleBoxFlat_cncyr")
2 changes: 1 addition & 1 deletion plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="Object Inspector"
description="In-game properties inspector"
author="Mansur Isaev and contributors"
version="1.1"
version="2.0"
script="plugin.gd"
2 changes: 1 addition & 1 deletion plugin.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022 Mansur Isaev and contributors - MIT License
# Copyright (c) 2022-2024 Mansur Isaev and contributors - MIT License
# See `LICENSE.md` included in the source distribution for details.

@tool
Expand Down
Loading

0 comments on commit 96e2591

Please sign in to comment.