move those guh
This commit is contained in:
		
							
								
								
									
										9
									
								
								src/ingame/quad_viewmodel.gd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/ingame/quad_viewmodel.gd
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
extends Node3D
 | 
			
		||||
 | 
			
		||||
func reflect_bundle(p_bundle: Dictionary) -> void:
 | 
			
		||||
	var item = GameState.fetch().INVENTORY_ITEM_DB[p_bundle["item_id"]]
 | 
			
		||||
	$Sprite3D.texture = item.icon
 | 
			
		||||
	if item.stackable:
 | 
			
		||||
		$CountLabel.text = str(p_bundle["count"]) + "/" + str(item.stack_limit)
 | 
			
		||||
	else:
 | 
			
		||||
		$CountLabel.text = str(p_bundle["count"])
 | 
			
		||||
							
								
								
									
										19
									
								
								src/ingame/quad_viewmodel.tscn
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								src/ingame/quad_viewmodel.tscn
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
[gd_scene load_steps=3 format=3 uid="uid://dxb5f3il2h1ur"]
 | 
			
		||||
 | 
			
		||||
[ext_resource type="Script" path="res://src/ingame/quad_viewmodel.gd" id="1_l2s4x"]
 | 
			
		||||
[ext_resource type="Texture2D" uid="uid://dw3x3h3f34sy3" path="res://assets/coin_flower.png" id="2_7fi8t"]
 | 
			
		||||
 | 
			
		||||
[node name="QuadViewmodel" type="Node3D"]
 | 
			
		||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.179242, 0)
 | 
			
		||||
script = ExtResource("1_l2s4x")
 | 
			
		||||
 | 
			
		||||
[node name="CountLabel" type="Label3D" parent="."]
 | 
			
		||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.181474, 0)
 | 
			
		||||
billboard = 1
 | 
			
		||||
text = "3"
 | 
			
		||||
 | 
			
		||||
[node name="Sprite3D" type="Sprite3D" parent="."]
 | 
			
		||||
pixel_size = 0.015
 | 
			
		||||
billboard = 1
 | 
			
		||||
texture_filter = 0
 | 
			
		||||
texture = ExtResource("2_7fi8t")
 | 
			
		||||
		Reference in New Issue
	
	Block a user