[Docs] Added WebWorld Theme (#387)
|
@ -57,8 +57,10 @@ game.
|
|||
|
||||
A `WebWorld` class contains specific attributes and methods that can be modified
|
||||
for your world specifically on the webhost. At the moment this comprises of `settings_page`
|
||||
which can be changed to a link instead of an AP generated settings page; such is the case
|
||||
for Final Fantasy.
|
||||
which can be changed to a link instead of an AP generated settings page, and a `theme` to be used for your game specific AP pages. Available themes:
|
||||
| dirt | grass (default) | grassFlowers | ice | jungle | ocean | partyTime |
|
||||
|---|---|---|---|---|---|---|
|
||||
| <img src="img/theme_dirt.JPG" width="100"> | <img src="img/theme_grass.JPG" width="100"> | <img src="img/theme_grassFlowers.JPG" width="100"> | <img src="img/theme_ice.JPG" width="100"> | <img src="img/theme_jungle.JPG" width="100"> | <img src="img/theme_ocean.JPG" width="100"> | <img src="img/theme_partyTime.JPG" width="100"> |
|
||||
|
||||
### MultiWorld Object
|
||||
|
||||
|
|
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 216 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 257 KiB |
After Width: | Height: | Size: 221 KiB |
After Width: | Height: | Size: 245 KiB |
|
@ -1,6 +1,6 @@
|
|||
from typing import Dict, List, Set, Tuple, TextIO
|
||||
from BaseClasses import Item, MultiWorld, Location
|
||||
from ..AutoWorld import World
|
||||
from ..AutoWorld import World, WebWorld
|
||||
from .LogicMixin import TimespinnerLogic
|
||||
from .Items import get_item_names_per_category, item_table, starter_melee_weapons, starter_spells, starter_progression_items, filler_items
|
||||
from .Locations import get_locations, starter_progression_locations, EventId
|
||||
|
@ -8,6 +8,8 @@ from .Regions import create_regions
|
|||
from .Options import is_option_enabled, get_option_value, timespinner_options
|
||||
from .PyramidKeys import get_pyramid_keys_unlock
|
||||
|
||||
class TimespinnerWebWorld(WebWorld):
|
||||
theme = "ice"
|
||||
|
||||
class TimespinnerWorld(World):
|
||||
"""
|
||||
|
@ -20,6 +22,7 @@ class TimespinnerWorld(World):
|
|||
topology_present = True
|
||||
remote_items = False
|
||||
data_version = 8
|
||||
web = TimespinnerWebWorld()
|
||||
|
||||
item_name_to_id = {name: data.code for name, data in item_table.items()}
|
||||
location_name_to_id = {location.name: location.code for location in get_locations(None, None)}
|
||||
|
|