LADX: Adding 'Option Groups' to the player options page. (#3560)
* Adding 'Option Groups' to the LADX player options page. * Moved 'Miscellaneous' group to the logic effecting groups.
This commit is contained in:
parent
b6191ff7ca
commit
240d1a3bbf
|
@ -3,7 +3,7 @@ from dataclasses import dataclass
|
||||||
import os.path
|
import os.path
|
||||||
import typing
|
import typing
|
||||||
import logging
|
import logging
|
||||||
from Options import Choice, Toggle, DefaultOnToggle, Range, FreeText, PerGameCommonOptions
|
from Options import Choice, Toggle, DefaultOnToggle, Range, FreeText, PerGameCommonOptions, OptionGroup
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
import Utils
|
import Utils
|
||||||
|
|
||||||
|
@ -493,6 +493,44 @@ class AdditionalWarpPoints(DefaultOffToggle):
|
||||||
[Off] No change
|
[Off] No change
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
ladx_option_groups = [
|
||||||
|
OptionGroup("Goal Options", [
|
||||||
|
Goal,
|
||||||
|
InstrumentCount,
|
||||||
|
]),
|
||||||
|
OptionGroup("Shuffles", [
|
||||||
|
ShuffleInstruments,
|
||||||
|
ShuffleNightmareKeys,
|
||||||
|
ShuffleSmallKeys,
|
||||||
|
ShuffleMaps,
|
||||||
|
ShuffleCompasses,
|
||||||
|
ShuffleStoneBeaks
|
||||||
|
]),
|
||||||
|
OptionGroup("Warp Points", [
|
||||||
|
WarpImprovements,
|
||||||
|
AdditionalWarpPoints,
|
||||||
|
]),
|
||||||
|
OptionGroup("Miscellaneous", [
|
||||||
|
TradeQuest,
|
||||||
|
Rooster,
|
||||||
|
TrendyGame,
|
||||||
|
NagMessages,
|
||||||
|
BootsControls
|
||||||
|
]),
|
||||||
|
OptionGroup("Experimental", [
|
||||||
|
DungeonShuffle,
|
||||||
|
EntranceShuffle
|
||||||
|
]),
|
||||||
|
OptionGroup("Visuals & Sound", [
|
||||||
|
LinkPalette,
|
||||||
|
Palette,
|
||||||
|
TextShuffle,
|
||||||
|
APTitleScreen,
|
||||||
|
GfxMod,
|
||||||
|
Music,
|
||||||
|
MusicChangeCondition
|
||||||
|
])
|
||||||
|
]
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class LinksAwakeningOptions(PerGameCommonOptions):
|
class LinksAwakeningOptions(PerGameCommonOptions):
|
||||||
|
|
|
@ -24,7 +24,7 @@ from .LADXR.settings import Settings as LADXRSettings
|
||||||
from .LADXR.worldSetup import WorldSetup as LADXRWorldSetup
|
from .LADXR.worldSetup import WorldSetup as LADXRWorldSetup
|
||||||
from .Locations import (LinksAwakeningLocation, LinksAwakeningRegion,
|
from .Locations import (LinksAwakeningLocation, LinksAwakeningRegion,
|
||||||
create_regions_from_ladxr, get_locations_to_id)
|
create_regions_from_ladxr, get_locations_to_id)
|
||||||
from .Options import DungeonItemShuffle, ShuffleInstruments, LinksAwakeningOptions
|
from .Options import DungeonItemShuffle, ShuffleInstruments, LinksAwakeningOptions, ladx_option_groups
|
||||||
from .Rom import LADXDeltaPatch, get_base_rom_path
|
from .Rom import LADXDeltaPatch, get_base_rom_path
|
||||||
|
|
||||||
DEVELOPER_MODE = False
|
DEVELOPER_MODE = False
|
||||||
|
@ -65,7 +65,7 @@ class LinksAwakeningWebWorld(WebWorld):
|
||||||
["zig"]
|
["zig"]
|
||||||
)]
|
)]
|
||||||
theme = "dirt"
|
theme = "dirt"
|
||||||
|
option_groups = ladx_option_groups
|
||||||
|
|
||||||
class LinksAwakeningWorld(World):
|
class LinksAwakeningWorld(World):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue