mirror of
https://github.com/Dummi26/mers.git
synced 2025-04-28 18:16:05 +02:00
changed while to loop in example .mers files
This commit is contained in:
parent
a7bb3e67fa
commit
924715cce1
2
gui.mers
2
gui.mers
@ -11,7 +11,7 @@ second_button = column.gui_add(Button: "This is a second button.")
|
||||
text_state = -2
|
||||
second_text = column.gui_add(Text: "press the button above to remove this text!")
|
||||
|
||||
while {
|
||||
loop {
|
||||
for event gui_updates() {
|
||||
switch! event {
|
||||
ButtonPressed([int ...]) {
|
||||
|
@ -165,7 +165,7 @@ thread(() {
|
||||
queue_list_inner.gui_remove()
|
||||
})
|
||||
|
||||
while {
|
||||
loop {
|
||||
for event gui_updates() {
|
||||
switch! event {
|
||||
ButtonPressed([int ...]) {
|
||||
|
@ -23,7 +23,7 @@ calculator = (max int) {
|
||||
slow_calculation_thread = calculator.thread(if fake_delay 10 else 20000000)
|
||||
|
||||
// every second, print the progress. once it reaches 100%, stop
|
||||
while {
|
||||
loop {
|
||||
sleep(1)
|
||||
println("{0}%".format(progress.to_string()))
|
||||
progress.eq(100) // break from the loop
|
||||
|
Loading…
Reference in New Issue
Block a user