-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(StateMachine): Prevent global state stack from going null.
- Adds @export var minimum_states: int = 1 to StateMachine. state_machine.pop_state() will never go below this value. - Sets all non-global StateMachines minimum states to 0. - Remove code no longer needed in overlay_input_manager that prevented dropping to null states. - While at it, change method comments in StateMachine to be used in automatic documentation formatting.
- Loading branch information
Showing
16 changed files
with
71 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
[resource] | ||
script = ExtResource("1_iwio6") | ||
logger_name = "NetworkOOBE" | ||
minimum_states = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
[resource] | ||
script = ExtResource("1_8ewnv") | ||
logger_name = "FirstBoot" | ||
minimum_states = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
[resource] | ||
script = ExtResource("1_ilq52") | ||
logger_name = "GameSettingsStateMachine" | ||
minimum_states = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
[resource] | ||
script = ExtResource("1_hgufk") | ||
logger_name = "StateMachine" | ||
minimum_states = 0 |
3 changes: 2 additions & 1 deletion
3
assets/state/state_machines/plugin_settings_state_machine.tres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://bnwdyr66wnxaw"] | ||
[gd_resource type="Resource" script_class="StateMachine" load_steps=2 format=3 uid="uid://bnwdyr66wnxaw"] | ||
|
||
[ext_resource type="Script" path="res://core/systems/state/state_machine.gd" id="1_20omy"] | ||
|
||
[resource] | ||
script = ExtResource("1_20omy") | ||
logger_name = "PluginSettingsStateMachine" | ||
minimum_states = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
[resource] | ||
script = ExtResource("1_k2cku") | ||
logger_name = "QuickBarStateMachine" | ||
minimum_states = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://iqrotrmq62i6"] | ||
[gd_resource type="Resource" script_class="StateMachine" load_steps=2 format=3 uid="uid://iqrotrmq62i6"] | ||
|
||
[ext_resource type="Script" path="res://core/systems/state/state_machine.gd" id="1_7ufyt"] | ||
|
||
[resource] | ||
script = ExtResource("1_7ufyt") | ||
logger_name = "SettingsStateMachine" | ||
minimum_states = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters