mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
Added Wren scripting with module system 📚
Added Input pressed, released system Added interface button support with wren onclick callback
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user