13 lines
260 B
GDScript
13 lines
260 B
GDScript
extends BaseControl
|
|
|
|
@export var SelectTexture :Texture2D
|
|
@export var UnSelectTexture : Texture2D
|
|
|
|
var IsSelect = false:
|
|
set(value):
|
|
IsSelect = value
|
|
if IsSelect:
|
|
$TextureRect2.texture = SelectTexture
|
|
else:
|
|
$TextureRect2.texture = UnSelectTexture
|