bcirpggithubmirror/Phase2/Godot ===(Game Code)===/DiceRoller/DiceRoller.tscn
Andrew Tang 3a4ca5fdcd Squashed commit of the following:
commit 59b74b946a
Author: Andrew Tang <tandrew@gmail.com>
Date:   Mon Jul 11 01:16:34 2022 +0800

    Complete DiceRoller Singleton Version

    Created script: "DiceRoller.gd" to be the only dice script attached to a node and will act as a singleton. A single DieManager object is created in this script. The DieManager's values can be changed and methods can be called through the DiceRoller Script

commit 3a402d4331
Author: Andrew Tang <90939405+TangoDevelopments@users.noreply.github.com>
Date:   Sun Jul 3 13:05:28 2022 -0400

    Delete .DS_Store

commit c00b24c60a
Author: Andrew Tang <90939405+TangoDevelopments@users.noreply.github.com>
Date:   Sun Jul 3 13:05:16 2022 -0400

    Delete .DS_Store

commit 4f788de0c7
Author: Andrew Tang <90939405+TangoDevelopments@users.noreply.github.com>
Date:   Sun Jul 3 13:05:05 2022 -0400

    Delete .DS_Store

commit c20fd85567
Author: Andrew Tang <tandrew@gmail.com>
Date:   Mon Jul 4 00:13:15 2022 +0800

    Added D10 and easier die selection
2022-07-11 01:39:53 +08:00

98 lines
2.1 KiB
Plaintext

[gd_scene load_steps=2 format=2]
[ext_resource path="res://DiceRoller.gd" type="Script" id=1]
[node name="DieManager" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
desiredDice = [ 10, 4, 6, 20 ]
neededPercentageToPass = 0.4
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 1 )
[node name="Die" type="Button" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -95.0
margin_top = 2.0
margin_right = 92.0
margin_bottom = 91.0
text = "Roll Die/Dice"
[node name="RolledValues" type="Label" parent="."]
visible = false
anchor_left = 0.5
anchor_right = 0.5
margin_left = -299.0
margin_top = 6.0
margin_right = 297.0
margin_bottom = 86.0
text = "Rolled Values:"
align = 1
autowrap = true
[node name="Outcome" type="Label" parent="."]
visible = false
anchor_left = 0.5
anchor_right = 0.5
margin_left = -296.0
margin_top = 173.0
margin_right = 300.0
margin_bottom = 253.0
text = "Success!
"
align = 1
autowrap = true
[node name="PercentNeeded" type="Label" parent="."]
visible = false
anchor_left = 0.5
anchor_right = 0.5
margin_left = -286.0
margin_top = 210.0
margin_right = 310.0
margin_bottom = 290.0
text = "Percent Needed to Pass: 0%"
align = 1
autowrap = true
[node name="PercentRolled" type="Label" parent="."]
visible = false
anchor_left = 0.5
anchor_right = 0.5
margin_left = -293.0
margin_top = 241.0
margin_right = 303.0
margin_bottom = 321.0
text = "Percent Rolled: 0%"
align = 1
autowrap = true
[node name="DegreeOfSuccess" type="Label" parent="."]
visible = false
anchor_left = 0.5
anchor_right = 0.5
margin_left = -295.0
margin_top = 272.0
margin_right = 301.0
margin_bottom = 352.0
text = "Degree of Success: 0%"
align = 1
autowrap = true
[node name="Reset" type="Button" parent="."]
margin_left = 457.0
margin_top = 421.0
margin_right = 567.0
margin_bottom = 469.0
text = "Reset"
[connection signal="button_down" from="Die" to="." method="_on_Die_button_down"]
[connection signal="button_down" from="Reset" to="." method="_on_Reset_button_down"]