mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Add missing manual syntax highlights
A few more spotted in the original HTML
This commit is contained in:
parent
cc8da495ae
commit
310a437b88
6 changed files with 16 additions and 16 deletions
|
@ -7,10 +7,10 @@ consider them solved and they remain open. Otherwise we wait for a little while,
|
|||
the location of the icons, and then close them again.
|
||||
|
||||
We'll modify the `.60` markup inside the `sixtyfps!` macro to signal to the Rust code when the user clicks on a tile.
|
||||
Two changes to `MainWindow` are needed: We need to add a way for the MainWindow to call to the Rust code that it should
|
||||
Two changes to <span class="hljs-title">MainWindow</span> are needed: We need to add a way for the MainWindow to call to the Rust code that it should
|
||||
check if a pair of tiles has been solved. And we need to add a property that Rust code can toggle to disable further
|
||||
tile interaction, to prevent the player from opening more tiles than allowed. No cheating allowed! First, we paste
|
||||
the callback and property declarations into `MainWindow`:
|
||||
the callback and property declarations into <span class="hljs-title">MainWindow</span>:
|
||||
|
||||
|
||||
```60
|
||||
|
@ -27,7 +27,7 @@ MainWindow := Window {
|
|||
...
|
||||
```
|
||||
|
||||
The last change to the `.60` markup is to act when the `MemoryTile` signals that it was clicked on. We add the following handler:
|
||||
The last change to the `.60` markup is to act when the <code class="hljs-title"> signals that it was clicked on. We add the following handler:
|
||||
|
||||
```60
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue