[Docs] Added WebWorld Theme (#387)

This commit is contained in:
Jarno Westhof 2022-04-01 22:39:39 +02:00 committed by GitHub
parent 95f8647f09
commit 6f5ab05345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 8 additions and 3 deletions

View File

@ -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

BIN
docs/img/theme_dirt.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

BIN
docs/img/theme_grass.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

BIN
docs/img/theme_ice.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

BIN
docs/img/theme_jungle.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

BIN
docs/img/theme_ocean.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

View File

@ -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)}