ajout des mutation et refonte de l'inspecteur
* ajout des mutations #86 * changement de l'objectif #85 * refonte de l'inspecteur #71 * changement léger de la plantation * les plantes ne donnent que des graines de leurs espèces * refonte partielle du code, refacto
This commit is contained in:
9
gui/game/inspector/stat_info/scripts/stat_info.gd
Normal file
9
gui/game/inspector/stat_info/scripts/stat_info.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
extends HBoxContainer
|
||||
|
||||
var stat_info : Inspector.StatInfo = null : set = update_stat_info
|
||||
|
||||
func update_stat_info(s_info : Inspector.StatInfo):
|
||||
stat_info = s_info
|
||||
%Icon.texture = stat_info.icon
|
||||
%Text.text = str(stat_info.text)
|
||||
|
||||
1
gui/game/inspector/stat_info/scripts/stat_info.gd.uid
Normal file
1
gui/game/inspector/stat_info/scripts/stat_info.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://yghu53hja4xj
|
||||
28
gui/game/inspector/stat_info/stat_info.tscn
Normal file
28
gui/game/inspector/stat_info/stat_info.tscn
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://djihfgtjuhqwy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://yghu53hja4xj" path="res://gui/game/inspector/stat_info/scripts/stat_info.gd" id="1_4pua2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsvxhafoxwmw0" path="res://common/icons/cube-3d-sphere.svg" id="2_pdlch"]
|
||||
[ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/default_theme.tres" id="3_pdlch"]
|
||||
|
||||
[node name="StatInfo" type="HBoxContainer"]
|
||||
theme_override_constants/separation = 4
|
||||
alignment = 1
|
||||
script = ExtResource("1_4pua2")
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="."]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(20, 20)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_pdlch")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="Text" type="RichTextLabel" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme = ExtResource("3_pdlch")
|
||||
bbcode_enabled = true
|
||||
text = "6"
|
||||
fit_content = true
|
||||
scroll_active = false
|
||||
autowrap_mode = 0
|
||||
Reference in New Issue
Block a user