Dwenny/Scripts/Main.gd

37 lines
877 B
GDScript3
Raw Normal View History

2024-01-17 23:40:36 +01:00
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