Presentation System
Presenting your things to the kernel!
This API provides you the presentation system used for presenting something to your users in the full-screen view. It's like a presentation in steroids.
How to present
To present your presentation to your users, you must implement a Presentation class instance, which must assign the following variables in the constructor:
NamePresentation name
PagesPresentation pages (List of
PresentationPageinstances)
To implement the PresentationPage instances, you must call its constructor with the following variables:
NamePresentation page name
PagesPresentation page elements (List of
IElementinstances)
To implement the page elements, make new instances of the elements. Base elements that Nitrocid KS implements are:
TextElementStatic text.
The first argument in the element
Argumentsis the string to be printed.
DynamicTextElementDynamic text.
The first argument in the element
Argumentsis the action to which it generates the string, for example,TimeDateRenderers.Render().
Controls
The presentation viewer has the following controls:
ENTER/Left-click (mouse)Advances to the next page
ESCBails out from the presentation
Has no effect on kiosk and modal presentations
Input
In addition to the presentation elements, you can also add input to your presentation to interact with your users more. Just create a new instance of the PresentationInputInfo class and provide the title, the description, and a new instance of the input module class that implements the InputModule class.
internal static PresentationInputInfo input =
new("Second multiple choice", "Asks the user to select one or more of the names (larger)",
new MultiComboBoxModule()
{
Name = "Second multiple choice",
Description = "Ultricies mi eget mauris pharetra sapien et ligula:",
Choices = GetCategories(data2)
}, true
);Then, in the PresentationPage constructor, you must add your input instance to the second argument that represents an array of InputInfo class instances, like this:
new PresentationPage("Fifth page - Debugging choice input",
[
new TextElement()
{
Arguments = [
"Tincidunt nunc pulvinar sapien et ligula ullamcorper malesuada proin."
]
},
],
[
input2,
input3,
]
),The presentation system checks the page to see if there are any input instances. If true, you'll be presented with an informational box telling you to select an input to fill. The asterisk next to the number denotes the required input. This means that users should fill in such input before being able to go on. Those without the asterisk means that it's fully optional.
Appearance
You can customize how your slideshow looks using the following properties:
BorderSettings: Customizes your presentation's bordersFrameColor: Customizes your presentation's border frame colorBackgroundColor: Customizes your presentation's background color
Last updated