Skip to content

Commit 01933d8

Browse files
committed
Minor fixes
1 parent bdc2328 commit 01933d8

3 files changed

Lines changed: 7 additions & 16 deletions

File tree

web/src/data/vehicle_components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ export const planeComponents = [
636636
},
637637
{
638638
name: "wingtop_pos",
639-
desc: "",
639+
desc: "Unknown empty frame (Skimmer only)",
640640
},
641641
{
642642
name: "light_left / light_right / light_tailplane",

web/src/pages/reference/Resource_Web_Access.mdx

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can access the resource through a web browser at: http://server-ip:http-port
3434

3535
The HTTP port is usually the server port + 2; by default it is `22005`.
3636

37-
The `performancebrowser` resource has a file defined in its meta that will be displayed as the main page that is, when no specific page is provided in the URL.
37+
The `performancebrowser` resource has a file defined in its meta that will be displayed as the main page - that is, when no specific page is provided in the URL.
3838
```xml
3939
<html src="pad.gif" raw="true" />
4040
<html src="loading.gif" raw="true" />
@@ -76,15 +76,7 @@ If a file is not specified in the metafile as **raw**, then it is passed through
7676
This pre-processor works much like PHP or ASP but uses Lua. You can embed standard MTA scripts within HTML pages, controlling the output.
7777
Almost all standard MTA functions work, plus a number of special [HTTP Functions](/reference/Scripting_Functions.html#HTTP).
7878

79-
Aside from HTTP functions, embedded Lua has access to the following [environment variables](/reference/Predefined_variables.html#HTTP) that contain information about how the page was requested.
80-
- table **requestHeaders** - This is a table containing all the headers that were requested with the page. You can set returned headers using [httpSetResponseHeader](/reference/httpSetResponseHeader).
81-
- table **form** - This is a table containing all the form data submitted to the page using HTTP POST combined with any variables passed in the querystring with HTTP GET.
82-
- table **cookies** - This is a table of all the cookies. You can modify cookies using [httpSetResponseCookie](/reference/httpSetResponseCookie).
83-
- string **hostname** - This is a string containing the IP address or hostname that requested the page.
84-
- string **url** - This is the URL of the page.
85-
- [account](/reference/account) **user** - This is the [account](/reference/account) element of the current user.
86-
- string **requestBody** - This is the request body.
87-
- string **requestMethod** - This is the HTTP method used to request the page (e.g. GET, POST, etc).
79+
Aside from HTTP functions, embedded Lua has access to the following [environment variables](/reference/Predefined_variables.html#http) that contain information about how the page was requested.
8880

8981
### Calls
9082
It is important that processed files are executed in a separate virtual machine (Lua VM) from the .lua code in the resource.
@@ -127,8 +119,6 @@ This is called when the function returns.
127119
<details>
128120
<summary>Here's a simple example.</summary>
129121

130-
131-
132122
**meta.xml**
133123
```xml
134124
<meta>
@@ -184,7 +174,8 @@ You can spin up and down the different resources as you wish, and users of your
184174
### How to setup a router function
185175
A router function has to be specified in the meta.xml (see example below).
186176
You can name the function however you like, there are no restrictions, as long as the function can be found in the global Lua scope in your scripts.
187-
**Note: You can have only one router function.**
177+
178+
<NoteBox type='info'>You can have only one router function.</NoteBox>
188179

189180
```xml
190181
<export function="httpRouter" http="true" router="true" />

web/src/pages/reference/attachElementsOffsets.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import VersionBox from '@src/components/VersionBox.astro';
88
title: 'attachElementsOffsets',
99
tableOfContents: false
1010
}}>
11-
11+
<section data-pagefind-ignore>
1212
### Problem
1313
The offset coordinates reflect the object space, not the world space. This means that you cannot simply visualize the attachment in the map editor and calculate the offsets between the 2 sets of world coordinates for `theElement` and `theAttachToObject`.
1414

@@ -84,5 +84,5 @@ end
8484
'reference:attachElements',
8585
'reference:setElementAttachedOffsets',
8686
])} currentId='' />
87-
87+
</section>
8888
</AutoStarlightPage>

0 commit comments

Comments
 (0)