Skip to content

Commit 5d10139

Browse files
committed
fix: Switching iframes to dark theme
This will allow a transparent background
1 parent 75f1287 commit 5d10139

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

docs/features/doors.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ If you have complex doors that span on several layers, that is fine.
4040
:::
4141

4242
:::caution
43-
Do not forget to make the closed door tiles "collidable" (using the `collides` property), otherwise users will be able
43+
Do not forget to make the closed door [tiles "collidable"](/map-building/tiled-editor/wa-maps#building-walls-and-collidable-areas) (using the `collides` property), otherwise users will be able
4444
to walk through your open door!
4545
:::
4646

4747
## Door Variable
4848

49-
Then, add a ["variable"](https://docs.workadventu.re/developer/map-scripting/references/api-state). The variable will control
49+
Then, add a ["room variable"](https://docs.workadventu.re/developer/map-scripting/variables/#room-variables). The room variable will control
5050
the "state" of the door and to share that state between the players. If the variable value is `true`,
5151
the door will be open, if it is `false`, the door will be closed.
5252

@@ -55,7 +55,7 @@ In order to add a variable, you need to create a "Point" on any "object layer" i
5555
![Door Variable](images/door_variable.png)
5656

5757
- You can give this variable any name.
58-
- The "type" of the object MUST be "variable".
58+
- The "class" of the object MUST be "variable".
5959
- You MUST define a custom boolean property named `door`. The "door" checkbox must be checked.
6060
- You can set the `default` custom property to `true` (opened by default) or `false` (closed by default). This will be used
6161
the first time a user enters the map.

src/Iframes/Configuration/configuration.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<title>Configuration</title>
5+
<meta name="color-scheme" content="dark">
56
<script src="<%= workadventure_url %>/iframe_api.js" ></script>
67
</head>
78
<body class="tw-h-full tw-text-center tw-bg-dark-purple/95 tw-p-10 tw-flex tw-justify-center">

src/Iframes/Keypad/keypad.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<title>Keypad</title>
5+
<meta name="color-scheme" content="dark">
56
<style>
67
html {
78
height: 100%;

src/Iframes/TutorialV1/Launcher/script.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<title>Tutorial</title>
5+
<meta name="color-scheme" content="dark">
56
<script src="<%= workadventure_url %>/iframe_api.js" ></script>
67
</head>
78
<body class="tw-bg-dark-purple/95">

src/Iframes/TutorialV1/Tuto/tutorialv1.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<title>Tutorial</title>
5+
<meta name="color-scheme" content="dark">
56
<script src="<%= workadventure_url %>/iframe_api.js" ></script>
67
</head>
78
<body style="background-color: transparent;">

0 commit comments

Comments
 (0)