Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Update Getting Started
authored
Oct 17, 2020
by
Moritz Brückner
Show whitespace changes
Inline
Side-by-side
Getting-Started.md
View page @
cf9e1d5a
...
@@ -72,8 +72,7 @@ class Main {
...
@@ -72,8 +72,7 @@ class Main {
static
function
initialized
(
window
:
kha
.
Window
)
{
static
function
initialized
(
window
:
kha
.
Window
)
{
kha
.
Assets
.
loadEverything
(
function
()
{
kha
.
Assets
.
loadEverything
(
function
()
{
Koui
.
init
();
Koui
.
init
(()
->
{
var
button
=
new
Button
(
"Click me!"
);
var
button
=
new
Button
(
"Click me!"
);
button
.
setPosition
(
400
,
180
);
button
.
setPosition
(
400
,
180
);
...
@@ -89,6 +88,9 @@ class Main {
...
@@ -89,6 +88,9 @@ class Main {
});
});
Koui
.
add
(
button
);
Koui
.
add
(
button
);
});
});
});
}
}
...
@@ -117,8 +119,7 @@ class KouiTrait extends iron.Trait {
...
@@ -117,8 +119,7 @@ class KouiTrait extends iron.Trait {
super
();
super
();
notifyOnInit
(
function
()
{
notifyOnInit
(
function
()
{
Koui
.
init
();
Koui
.
init
(()
->
{
var
button
=
new
Button
(
"Click me!"
);
var
button
=
new
Button
(
"Click me!"
);
button
.
setPosition
(
400
,
180
);
button
.
setPosition
(
400
,
180
);
...
@@ -135,6 +136,7 @@ class KouiTrait extends iron.Trait {
...
@@ -135,6 +136,7 @@ class KouiTrait extends iron.Trait {
Koui
.
add
(
button
);
Koui
.
add
(
button
);
});
});
});
}
}
}
}
```
```
...
...
...
...