Added Wren scripting with module system 📚

Added Input pressed, released system
Added interface button support with wren onclick callback
This commit is contained in:
Antoine Pilote
2021-06-09 22:15:53 -04:00
parent aa2ebd04c8
commit 19db72aa22
1185 changed files with 320199 additions and 486 deletions

View File

@@ -1,6 +1,8 @@
.button {
width: 100%;
height: 100%;
.hello{
width: 400px;
height: 200px;
}
.screen{
@@ -8,20 +10,11 @@
width: 100%;
justify-content: center;
flex-direction: row;
align-content:flex-end;
align-content:flex-start;
}
.container {
height: 50px;
width: 50%;
flex-direction: row;
justify-content: space-between;
align-content: center;
align-self:center;
padding: 8px;
}
.rect{
height: 200px;
width: 200px;
.items{
height: 30px;
width: 30px;
}

View File

@@ -1,23 +1,12 @@
<Canvas
script="Interface/Testing.lua"
script="Scripts/test Test"
groups="screen"
color="25 25 25 255"
color="25 25 25 9"
>
<Rect
color="50 50 50 255"
groups="container"
padding="8px 8px 8px 8px"
>
<p>Hello world!</p>
<Rect groups="items" color="200 0 200 255"></Rect>
<Rect groups="items" color="200 0 200 255"></Rect>
<Rect groups="items" color="200 0 200 255"></Rect>
<Rect groups="items" color="200 0 200 255"></Rect>
<Rect groups="items" color="200 0 200 255"></Rect>
<Rect groups="items" color="200 0 200 255"></Rect>
<Rect groups="items" color="200 0 200 255"></Rect>
<Rect groups="items" color="200 0 200 255"></Rect>
<Rect groups="items" color="200 0 200 255"></Rect>
<Rect groups="items" color="200 0 200 255"></Rect>
<p groups="hello">Hello, world</p>
<Rect onclick="hello()"
groups="rect"
color="128 128 255 255">
</Rect>
<Slider value="sliderValue"/>
</Canvas>