Renamed class
This commit is contained in:
		
							parent
							
								
									144267dc9e
								
							
						
					
					
						commit
						d0e6dd13cd
					
				
							
								
								
									
										10
									
								
								I18N Commander/App/scenes/BtnIcon.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								I18N Commander/App/scenes/BtnIcon.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					using Godot;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace App.scenes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public partial class BtnIcon : Control
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    [Export]
 | 
				
			||||||
 | 
					    [ExportGroup("Data")]
 | 
				
			||||||
 | 
					    public string Text { get; set; } = string.Empty;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -1,9 +0,0 @@
 | 
				
			|||||||
using Godot;
 | 
					 | 
				
			||||||
using System;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
public partial class btn_icon : Control
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    [Export(PropertyHint.TypeString, "The text to display on the button.")]
 | 
					 | 
				
			||||||
    [ExportGroup("Data")]
 | 
					 | 
				
			||||||
    public string Text { get; set; } = string.Empty;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
[gd_scene load_steps=2 format=3 uid="uid://d0x0yv7nevod7"]
 | 
					[gd_scene load_steps=2 format=3 uid="uid://d0x0yv7nevod7"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ext_resource type="Script" path="res://scenes/btn_icon.cs" id="1_7lwon"]
 | 
					[ext_resource type="Script" path="res://scenes/BtnIcon.cs" id="1_b787p"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[node name="btn_icon" type="Control"]
 | 
					[node name="btn_icon" type="Control"]
 | 
				
			||||||
layout_mode = 3
 | 
					layout_mode = 3
 | 
				
			||||||
@ -9,7 +9,7 @@ anchor_right = 1.0
 | 
				
			|||||||
anchor_bottom = 1.0
 | 
					anchor_bottom = 1.0
 | 
				
			||||||
grow_horizontal = 2
 | 
					grow_horizontal = 2
 | 
				
			||||||
grow_vertical = 2
 | 
					grow_vertical = 2
 | 
				
			||||||
script = ExtResource("1_7lwon")
 | 
					script = ExtResource("1_b787p")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[node name="margin" type="MarginContainer" parent="."]
 | 
					[node name="margin" type="MarginContainer" parent="."]
 | 
				
			||||||
layout_mode = 0
 | 
					layout_mode = 0
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user