mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-08-03 18:57:27 -04:00
Updated Launcher documentation WIP (markdown)
parent
9c8a1b9c83
commit
fb59c7cbd8
@ -11,22 +11,12 @@ You can use the following method to switch the active Screen:
|
||||
void Launcher_SetScreen(struct LScreen* screen);
|
||||
```
|
||||
|
||||
Example usage:
|
||||
```C
|
||||
void SimpleScreen_SetActive(void) {
|
||||
struct SimpleScreen* s = &SimpleScreen;
|
||||
LScreen_Reset((struct LScreen*)s);
|
||||
s->Init = SimpleScreen_Init;
|
||||
|
||||
s->title = "Title text";
|
||||
Launcher_SetScreen((struct LScreen*)s);
|
||||
}
|
||||
```
|
||||
|
||||
## What makes up a Launcher Screen
|
||||
|
||||
A Launcher Screen (shorted to `LScreen`) consists of the following members:
|
||||
|
||||
TODO: Talk about LScreen_Reset somewhere
|
||||
|
||||
### Required members
|
||||
|
||||
#### `void (*Init)(struct LScreen* s)`
|
||||
@ -113,6 +103,19 @@ TODO
|
||||
|
||||
### Slider widgets
|
||||
|
||||
## Complete example
|
||||
# Complete example
|
||||
|
||||
TODO
|
||||
TODO
|
||||
|
||||
|
||||
Example usage:
|
||||
```C
|
||||
void SimpleScreen_SetActive(void) {
|
||||
struct SimpleScreen* s = &SimpleScreen;
|
||||
LScreen_Reset((struct LScreen*)s);
|
||||
s->Init = SimpleScreen_Init;
|
||||
|
||||
s->title = "Title text";
|
||||
Launcher_SetScreen((struct LScreen*)s);
|
||||
}
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user