37 lines
877 B
GDScript3
37 lines
877 B
GDScript3
|
extends Control
|
||
|
|
||
|
@onready var MultiplierLB = $MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer/MPLB/MultiplierLB
|
||
|
@onready var DieTypeLB = $MainMC/VBoxContainer/EnumMC/EnumHB/VBoxContainer2/DTTP/DieTypeLB
|
||
|
@onready var DieLB = $MainMC/VBoxContainer/Die/DiceCR/DieLB
|
||
|
|
||
|
var Multiplier : int = 1
|
||
|
var ChosenDie : int = 20
|
||
|
|
||
|
func _ready():
|
||
|
pass
|
||
|
|
||
|
func _process(_delta):
|
||
|
MultiplierLB = Multiplier
|
||
|
DieTypeLB = Die
|
||
|
DieLB = Die()
|
||
|
pass
|
||
|
|
||
|
func Die():
|
||
|
pass
|
||
|
|
||
|
|
||
|
func _unhandled_input(event):
|
||
|
if event is InputEventScreenDrag and event.is_pressed():
|
||
|
Multiplier += 1
|
||
|
|
||
|
func _on_dwdt_gui_input(event):
|
||
|
if event is InputEventScreenDrag and event.is_pressed():
|
||
|
Multiplier -= 1
|
||
|
|
||
|
func _on_mpup_gui_input(event):
|
||
|
if event is InputEventScreenDrag and event.is_pressed():
|
||
|
ChosenDie += 1
|
||
|
|
||
|
func _on_mpdw_gui_input(event):
|
||
|
if event is InputEventScreenDrag and event.is_pressed():
|
||
|
ChosenDie -= 1
|