mirror of
https://github.com/BeamMP/Docs.git
synced 2026-04-02 22:16:26 +00:00
- Reword some sentences in introPopups
- Reorder some sections in introPopups
This commit is contained in:
committed by
Starystars67
parent
666fec4122
commit
f341f4607c
BIN
docs/assets/content/introPopupTutorial.png
Normal file
BIN
docs/assets/content/introPopupTutorial.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 MiB |
@@ -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>
|
||||||
|

|
||||||
|
</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")
|
|||||||

|

|
||||||
</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")
|
|||||||

|

|
||||||
</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:
|
||||||
|
|||||||
Reference in New Issue
Block a user