Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@
path = hades-CharonSackControl
url = https://github.com/cgullsHadesMods/hades-CharonSackControl.git

[submodule "SplitDisplay"]
path = SplitDisplay
url = https://github.com/cgullsHadesMods/hades-SplitDisplay.git
57 changes: 57 additions & 0 deletions HadesSpeedrunningModpack/QualityOfLifeMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,64 @@ function HSMConfigMenu.CreateQolMenu(screen)
})
screen.Components["RtaTimerResetButton"].OnPressedFunctionName = "RtaTimer__ResetRtaTimer"
itemLocationY = itemLocationY + itemSpacingY
-----------------------------
-- Victory Screen Split Display Toggle
-----------------------------
screen.Components["SplitDisplayTextBox"] = CreateScreenComponent({
Name = "BlankObstacle",
Scale = 1,
X = itemLocationX,
Y = itemLocationY,
Group = "Combat_Menu" })
CreateTextBox({
Id = screen.Components["SplitDisplayTextBox"].Id,
Text = "Splits on Victory Screen: ",
Color = Color.BoonPatchCommon,
FontSize = 16,
OffsetX = 0, OffsetY = 0,
Font = "AlegrayaSansSCRegular",
ShadowBlur = 0, ShadowColor = { 0, 0, 0, 1 }, ShadowOffset = { 0, 2 },
Justification = "Left"
})
screen.Components["SplitDisplayCheckBox"] = CreateScreenComponent({
Name = "RadioButton",
Scale = 1,
X = itemLocationX + itemSpacingX,
Y = itemLocationY,
Group = "CombatMenu"
})
screen.Components["SplitDisplayCheckBox"].Config = "SplitDisplay.config.Enabled"
screen.Components["SplitDisplayCheckBox"].OnPressedFunctionName = "HSMConfigMenu__ToggleGenericConfigCheckBox"
HSMConfigMenu__UpdateGenericConfigCheckbox(screen, screen.Components["SplitDisplayCheckBox"])
itemLocationY = itemLocationY + itemSpacingY

screen.Components["SplitDisplaySegmentTimeTextBox"] = CreateScreenComponent({
Name = "BlankObstacle",
Scale = 1,
X = itemLocationX,
Y = itemLocationY,
Group = "Combat_Menu" })
CreateTextBox({
Id = screen.Components["SplitDisplaySegmentTimeTextBox"].Id,
Text = " - Segment Length instead of Split Time: ",
Color = Color.BoonPatchCommon,
FontSize = 16,
OffsetX = 0, OffsetY = 0,
Font = "AlegrayaSansSCRegular",
ShadowBlur = 0, ShadowColor = { 0, 0, 0, 1 }, ShadowOffset = { 0, 2 },
Justification = "Left"
})
screen.Components["SplitDisplaySegmentTimeCheckBox"] = CreateScreenComponent({
Name = "RadioButton",
Scale = 1,
X = itemLocationX + itemSpacingX,
Y = itemLocationY,
Group = "CombatMenu"
})
screen.Components["SplitDisplaySegmentTimeCheckBox"].Config = "SplitDisplay.config.ShowSegments"
screen.Components["SplitDisplaySegmentTimeCheckBox"].OnPressedFunctionName = "HSMConfigMenu__ToggleGenericConfigCheckBox"
HSMConfigMenu__UpdateGenericConfigCheckbox(screen, screen.Components["SplitDisplaySegmentTimeCheckBox"])
itemLocationY = itemLocationY + itemSpacingY
-----------------------------
-- Hell Mode Toggle
-----------------------------
Expand Down
3 changes: 2 additions & 1 deletion HadesSpeedrunningModpack/SettingsHashMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ HSMConfigMenu.NonRulesetSettings = {

{Key = "RtaTimer.config.DisplayTimer", Values = {false, true}, Default = false},
{Key = "RtaTimer.config.MultiWeapon", Values = {false, true}, Default = false},

{Key = "SplitDisplay.config.Enabled", Values = {false, true}, Default = false},
{Key = "SplitDisplay.config.ShowSegments", Values = {false, true}, Default = false},
{Key = "EmoteMod.config.Enabled", Values = {false, true}, Default = false},
}

Expand Down
1 change: 1 addition & 0 deletions SplitDisplay
Submodule SplitDisplay added at 879f4f