- Reword some sentences in introPopups

- Reorder some sections in introPopups
This commit is contained in:
RainlessSky
2026-03-30 21:22:47 -07:00
committed by Starystars67
parent 666fec4122
commit f341f4607c
2 changed files with 22 additions and 18 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 MiB

View File

@@ -236,7 +236,9 @@ guihooks.trigger("introPopupTutorial", {
guihooks.trigger("introPopupClose") guihooks.trigger("introPopupClose")
``` ```
If multiple pages are provided, or the hook is triggered multiple times, then the pages are combined into the same popup. If the hook is triggered while a introPopup is active, then it is displayed in a separate popup after the existing popup is closed. <figure class="image image_resized" style="width:75%" markdown>
![The introPopupTutorial snippet displayed in BeamNG.drive](../../assets/content/introPopupTutorial.png)
</figure>
Flavours controls which buttons are displayed. Four flavours exist: Flavours controls which buttons are displayed. Four flavours exist:
@@ -253,11 +255,25 @@ Flavours controls which buttons are displayed. Four flavours exist:
When using the noButtons flavour on the page, providing no extra JavaScript in the page content to close the popup causes a softlock. Pages are not combined into one popup in this flavour. It is not recommended to use this flavour. When using the noButtons flavour on the page, providing no extra JavaScript in the page content to close the popup causes a softlock. Pages are not combined into one popup in this flavour. It is not recommended to use this flavour.
If multiple pages are provided, or the hook is triggered multiple times, then the pages are combined into the same popup. If the hook is triggered while a introPopup is active, or when a different introPopup type has already been triggered, then it is displayed in a separate popup after the existing popup is closed.
#### introPopupCareer #### introPopupCareer
introPopupCareer is an easy to use, but open ended popup that supports embedding HTML, if needed. introPopupCareer is an easy to use, but open ended popup that supports embedding HTML, if needed.
If multiple pages are provided, or the hook is triggered multiple times, then the pages are combined into the same popup. If the hook is triggered while a introPopup is active, then it is displayed in a separate popup after the existing popup is closed. Flavours control which buttons are displayed and the default image aspect ratio. Four flavours exist:
* `default`
* Default image aspect ratio: 16x9
* Buttons: Later, Okay
* `welcome`
* Default image aspect ratio: 16x9
* Buttons: Career Logbook, Okay
* `branch-info`
* Default image aspect ratio: 16x9
* Buttons: Career Logbook, Okay
* `garage`
* Buttons: Later, Okay
```lua ```lua
guihooks.trigger("introPopupCareer", { guihooks.trigger("introPopupCareer", {
@@ -277,19 +293,7 @@ guihooks.trigger("introPopupClose")
![The introPopupCareer snippet displayed in BeamNG.drive](../../assets/content/introPopupCareer.png) ![The introPopupCareer snippet displayed in BeamNG.drive](../../assets/content/introPopupCareer.png)
</figure> </figure>
Flavours control which buttons are displayed and the default image aspect ratio. Four flavours exist: If multiple pages are provided, or the hook is triggered multiple times, then the pages are combined into the same popup. If the hook is triggered while a introPopup is active, or when a different introPopup type has already been triggered, then it is displayed in a separate popup after the existing popup is closed.
* `default`
* Default image aspect ratio: 16x9
* Buttons: Later, Okay
* `welcome`
* Default image aspect ratio: 16x9
* Buttons: Career Logbook, Okay
* `branch-info`
* Default image aspect ratio: 16x9
* Buttons: Career Logbook, Okay
* `garage`
* Buttons: Later, Okay
!!! bug !!! bug
@@ -300,9 +304,7 @@ Flavours control which buttons are displayed and the default image aspect ratio.
#### introPopupMission #### introPopupMission
introPopupMission is almost identical to introPopupCareer, but requires defining buttons rather than picking a preset for buttons. introPopupMission is almost identical to introPopupCareer, but needs buttons to be defined rather than picking a preset for buttons.
If multiple pages are provided, or the hook is triggered multiple times, then the pages are combined into the same popup. If the hook is triggered while a introPopup is active, then it is displayed in a separate popup after the existing popup is closed.
Button styles are combined as *bng-button-*`style`. Built-in button styles are: Button styles are combined as *bng-button-*`style`. Built-in button styles are:
@@ -336,6 +338,8 @@ guihooks.trigger("introPopupClose")
![The introPopupMission snippet displayed in BeamNG.drive](../../assets/content/introPopupMission.png) ![The introPopupMission snippet displayed in BeamNG.drive](../../assets/content/introPopupMission.png)
</figure> </figure>
If multiple pages are provided, or the hook is triggered multiple times, then the pages are combined into the same popup. If the hook is triggered while a introPopup is active, or when a different introPopup type has already been triggered, then it is displayed in a separate popup after the existing popup is closed.
!!! bug !!! bug
The background blur has a minimum height, causing popups with short content to have excess blur below its window. Two main workarounds exist: The background blur has a minimum height, causing popups with short content to have excess blur below its window. Two main workarounds exist: