first commit
This commit is contained in:
22
addons/script_spliter/context/custom_options.gd
Normal file
22
addons/script_spliter/context/custom_options.gd
Normal file
@@ -0,0 +1,22 @@
|
||||
@tool
|
||||
extends Control
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
# Script Spliter
|
||||
# https://github.com/CodeNameTwister/Script-Spliter
|
||||
#
|
||||
# Script Spliter addon for godot 4
|
||||
# author: "Twister"
|
||||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
||||
|
||||
@export var columns : SpinBox
|
||||
@export var rows : SpinBox
|
||||
|
||||
func set_values(_columns : int, _rows : int) -> void:
|
||||
columns.value = _columns
|
||||
rows.value = _rows
|
||||
|
||||
func get_columns_value() -> int:
|
||||
return max(columns.value, 1)
|
||||
|
||||
func get_rows_value() -> int:
|
||||
return max(rows.value, 1)
|
||||
Reference in New Issue
Block a user