@ -0,0 +1,40 @@ |
|||
using Godot; |
|||
using System; |
|||
|
|||
public partial class OptionPicker : Node2D |
|||
{ |
|||
// Called when the node enters the scene tree for the first time.
|
|||
public override void _Ready() |
|||
{ |
|||
} |
|||
|
|||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
|||
public override void _Process(double delta) |
|||
{ |
|||
} |
|||
|
|||
public void Reset() |
|||
{ |
|||
foreach (Node child in GetChildren()) |
|||
{ |
|||
if (child is SlotSymbol slotSymbol) |
|||
{ |
|||
slotSymbol.SetToRandom(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
public void Show(bool visible) |
|||
{ |
|||
foreach (CanvasItem child in GetChildren()) |
|||
{ |
|||
child.Visible = visible; |
|||
} |
|||
} |
|||
|
|||
public SlotSymbol Select(int index) |
|||
{ |
|||
Show(false); |
|||
return GetChildren()[index] as SlotSymbol; |
|||
} |
|||
} |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,34 @@ |
|||
[remap] |
|||
|
|||
importer="texture" |
|||
type="CompressedTexture2D" |
|||
uid="uid://drejcc82kh6f8" |
|||
path="res://.godot/imported/SPIN.png-724f4a40a5c86f8bf6aa669cfbdbd3cf.ctex" |
|||
metadata={ |
|||
"vram_texture": false |
|||
} |
|||
|
|||
[deps] |
|||
|
|||
source_file="res://sprites/SPIN.png" |
|||
dest_files=["res://.godot/imported/SPIN.png-724f4a40a5c86f8bf6aa669cfbdbd3cf.ctex"] |
|||
|
|||
[params] |
|||
|
|||
compress/mode=0 |
|||
compress/high_quality=false |
|||
compress/lossy_quality=0.7 |
|||
compress/hdr_compression=1 |
|||
compress/normal_map=0 |
|||
compress/channel_pack=0 |
|||
mipmaps/generate=false |
|||
mipmaps/limit=-1 |
|||
roughness/mode=0 |
|||
roughness/src_normal="" |
|||
process/fix_alpha_border=true |
|||
process/premult_alpha=false |
|||
process/normal_map_invert_y=false |
|||
process/hdr_as_srgb=false |
|||
process/hdr_clamp_exposure=false |
|||
process/size_limit=0 |
|||
detect_3d/compress_to=1 |
After Width: | Height: | Size: 10 KiB |
@ -0,0 +1,34 @@ |
|||
[remap] |
|||
|
|||
importer="texture" |
|||
type="CompressedTexture2D" |
|||
uid="uid://bgvashh2kxkkf" |
|||
path="res://.godot/imported/X2.png-790ad0a05e5e92e653745ecdcbfed3ef.ctex" |
|||
metadata={ |
|||
"vram_texture": false |
|||
} |
|||
|
|||
[deps] |
|||
|
|||
source_file="res://sprites/X2.png" |
|||
dest_files=["res://.godot/imported/X2.png-790ad0a05e5e92e653745ecdcbfed3ef.ctex"] |
|||
|
|||
[params] |
|||
|
|||
compress/mode=0 |
|||
compress/high_quality=false |
|||
compress/lossy_quality=0.7 |
|||
compress/hdr_compression=1 |
|||
compress/normal_map=0 |
|||
compress/channel_pack=0 |
|||
mipmaps/generate=false |
|||
mipmaps/limit=-1 |
|||
roughness/mode=0 |
|||
roughness/src_normal="" |
|||
process/fix_alpha_border=true |
|||
process/premult_alpha=false |
|||
process/normal_map_invert_y=false |
|||
process/hdr_as_srgb=false |
|||
process/hdr_clamp_exposure=false |
|||
process/size_limit=0 |
|||
detect_3d/compress_to=1 |