From ddbcd54013ac76016c39f76394654c4d1451c662 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 17 Jul 2022 15:58:16 +0200 Subject: display buff text --- godot/scenes/Die.tscn | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'godot/scenes/Die.tscn') diff --git a/godot/scenes/Die.tscn b/godot/scenes/Die.tscn index 8a85207..69727f1 100644 --- a/godot/scenes/Die.tscn +++ b/godot/scenes/Die.tscn @@ -1,8 +1,10 @@ -[gd_scene load_steps=10 format=2] +[gd_scene load_steps=15 format=2] [ext_resource path="res://scenes/Die.gd" type="Script" id=1] [ext_resource path="res://assets/game_objects/W8baseColor_Mat.material" type="Material" id=2] [ext_resource path="res://assets/textures/circles.png" type="Texture" id=3] +[ext_resource path="res://assets/fonts/default_dynamicfont.tres" type="DynamicFont" id=4] +[ext_resource path="res://assets/fonts/default_dynamicfontdata.tres" type="DynamicFontData" id=5] [sub_resource type="PhysicsMaterial" id=7] friction = 0.0 @@ -32,6 +34,18 @@ surfaces/0 = { [sub_resource type="SphereShape" id=6] radius = 0.1 +[sub_resource type="DynamicFont" id=8] +size = 35 +font_data = ExtResource( 5 ) + +[sub_resource type="Theme" id=9] +ProgressBar/fonts/font = SubResource( 8 ) + +[sub_resource type="Theme" id=10] +Label/colors/font_color = Color( 0.933333, 0.654902, 0.0666667, 1 ) +Label/colors/font_color_shadow = Color( 0, 0, 0, 1 ) +Label/fonts/font = ExtResource( 4 ) + [node name="Die" type="RigidBody"] collision_layer = 3 collision_mask = 3 @@ -147,7 +161,21 @@ margin_bottom = 40.0 margin_left = 64.0 margin_top = 44.0 margin_right = 1185.0 -margin_bottom = 153.0 +margin_bottom = 113.0 +theme = SubResource( 9 ) + +[node name="LabelBuff" type="Label" parent="PowerUI"] +anchor_left = 0.689 +anchor_top = 0.068 +anchor_right = 0.914 +anchor_bottom = 0.081 +margin_left = -30.0 +margin_top = -30.0 +margin_right = 30.0 +margin_bottom = 30.0 +theme = SubResource( 10 ) +align = 2 +valign = 1 [node name="PowerUI3D" type="Spatial" parent="."] -- cgit