Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate egui UI test files from .edn to .shs #819

Open
wants to merge 10 commits into
base: devel
Choose a base branch
from
56 changes: 0 additions & 56 deletions docs/samples/shards/UI/Area/1.edn

This file was deleted.

15 changes: 0 additions & 15 deletions docs/samples/shards/UI/BottomPanel/1.edn

This file was deleted.

18 changes: 18 additions & 0 deletions docs/samples/shards/UI/BottomPanel/1.shs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
GFX.MainWindow(
Contents: {
Once({
GFX.DrawQueue >= ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
})
UI(
ui-draw-queue
UI.BottomPanel(
Contents: {
"Bottom Panel" | UI.Label
}
)
)

GFX.Render(Steps: render-steps)
}
)
14 changes: 0 additions & 14 deletions docs/samples/shards/UI/Button/1.edn

This file was deleted.

19 changes: 19 additions & 0 deletions docs/samples/shards/UI/Button/1.shs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
GFX.MainWindow(
Contents: {
Once({
GFX.DrawQueue >= ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
})
UI(
ui-draw-queue
UI.CentralPanel({
UI.Button(
Label: "Click me!"
Action: Msg("Clicked")
)
})
)

GFX.Render(Steps: render-steps)
}
)
15 changes: 0 additions & 15 deletions docs/samples/shards/UI/Button/2.edn

This file was deleted.

22 changes: 22 additions & 0 deletions docs/samples/shards/UI/Button/2.shs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
GFX.MainWindow(
Contents: {
Once({
GFX.DrawQueue >= ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
})
UI(
ui-draw-queue
UI.CentralPanel({
UI.Button(
Label: "Click me!"
Style: {
color: @color(255 255 0)
}
Action: Msg("Clicked")
)
})
)

GFX.Render(Steps: render-steps)
}
)
14 changes: 0 additions & 14 deletions docs/samples/shards/UI/CentralPanel/1.edn

This file was deleted.

16 changes: 16 additions & 0 deletions docs/samples/shards/UI/CentralPanel/1.shs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
GFX.MainWindow(
Contents: {
Once({
GFX.DrawQueue >= ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
})
UI(
ui-draw-queue
UI.CentralPanel({
"Central Panel" | UI.Label
})
)

GFX.Render(Steps: render-steps)
}
)
14 changes: 0 additions & 14 deletions docs/samples/shards/UI/Checkbox/1.edn

This file was deleted.

19 changes: 19 additions & 0 deletions docs/samples/shards/UI/Checkbox/1.shs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
GFX.MainWindow(
Contents: {
Once({
GFX.DrawQueue >= ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
})
UI(
ui-draw-queue
UI.CentralPanel({
UI.Checkbox(
Label: "Checked"
Variable: checked
)
})
)

GFX.Render(Steps: render-steps)
}
)
15 changes: 0 additions & 15 deletions docs/samples/shards/UI/Checkbox/2.edn

This file was deleted.

23 changes: 23 additions & 0 deletions docs/samples/shards/UI/Checkbox/2.shs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
GFX.MainWindow(
Contents: {
Once({
GFX.DrawQueue >= ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
})
UI(
ui-draw-queue
UI.CentralPanel({
UI.Checkbox(
Label: "Checked"
Style: {
color: @color(255 0 255)
italics: true
}
Variable: checked
)
})
)

GFX.Render(Steps: render-steps)
}
)
19 changes: 0 additions & 19 deletions docs/samples/shards/UI/CloseMenu/1.edn

This file was deleted.

20 changes: 20 additions & 0 deletions docs/samples/shards/UI/CloseMenu/1.shs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
GFX.MainWindow(
Contents: {
Once({
GFX.DrawQueue >= ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
})
UI(
ui-draw-queue
{
UI.TopPanel(Contents: {
UI.MenuBar({
UI.Menu(Title: "Menu" Contents: UI.Button("Close" UI.CloseMenu))
})
})
}
)

GFX.Render(Steps: render-steps)
}
)
24 changes: 0 additions & 24 deletions docs/samples/shards/UI/CodeEditor/1.edn

This file was deleted.

31 changes: 31 additions & 0 deletions docs/samples/shards/UI/CodeEditor/1.shs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
GFX.MainWindow(
Contents: {
Once({
GFX.DrawQueue >= ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
})
UI(
ui-draw-queue
{
Once({
"" >= code
})
UI.TopPanel(
Contents: {
UI.MenuBar({
UI.Menu("Edit" UI.Button("Clear" {
"" > code
UI.CloseMenu
}))
})
}
)
UI.CentralPanel({
UI.CodeEditor(code "Rust")
})
}
)

GFX.Render(Steps: render-steps)
}
)
16 changes: 0 additions & 16 deletions docs/samples/shards/UI/Collapsing/1.edn

This file was deleted.

Loading