Skip to content

Commit

Permalink
Update docs (#1350)
Browse files Browse the repository at this point in the history
- CubesterYT/KeySimulation: update docs
- CubesterYT/WindowControls: convert docs to actual markdown
- Improve docs template
  • Loading branch information
GarboMuffin authored Mar 9, 2024
1 parent 87cb473 commit 681661b
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 124 deletions.
14 changes: 10 additions & 4 deletions development/docs-template.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,20 @@
font-weight: bold;
font-size: 1.1em;
}
nav > * {
nav > div {
display: flex;
align-items: center;
max-width: 600px;
margin: 0 auto;
padding: 0.5rem 0.25rem;
}
nav a {
display: flex;
gap: 0.5rem;
padding: 0.5rem 0.25rem 0.5rem 0;
align-items: center;
text-decoration: none;
color: inherit !important;
}
nav > *:hover {
nav a:hover {
text-decoration: underline;
}
nav img {
Expand Down Expand Up @@ -115,6 +118,7 @@
width: 100%;
overflow-x: auto;
white-space: pre;
line-height: 42px; /* reasonable estimation to reduce layout shift */
}
.render-scratchblocks svg {
display: block;
Expand All @@ -128,10 +132,12 @@
</head>
<body>
<nav role="navigation">
<div>
<a href="/">
<img src="/turbowarp.svg" alt="">
<span>TurboWarp Extension Gallery</span>
</a>
</div>
</nav>

<main class="container">
Expand Down
8 changes: 8 additions & 0 deletions docs/CubesterYT/KeySimulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ click (left v) mouse button at x: (0) y: (0) for (0.1) seconds (without waiting
This will trigger "mouse down?" and "when this sprite clicked" blocks as well as update the "mouse x" and "mouse y" blocks. It can't be used to click on buttons in the editor, for example.

When `0` is used as a duration, the button will be pressed for exactly one frame.

## Move mouse

```scratch
move mouse to x: (0) y: (0) :: #BF0000
```

This will update the values of the "mouse x" and "mouse y" block without clicking.
Loading

0 comments on commit 681661b

Please sign in to comment.