-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
118 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/ManiaTemplates.Tests/IntegrationTests/expected/slots/manialink.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<manialink version="3" id="MtBase" name="EvoSC#-MtBase"> | ||
<Theme /> | ||
<frame> | ||
<label text="labelBefore" /> | ||
<frame id="evosc_container" pos="5 -5" size="200 130" scale="0" hidden="0"> | ||
<label text="Next element should be TextInput" /> | ||
<TextInput name="Search" /> | ||
</frame> | ||
</frame> | ||
</manialink> |
11 changes: 11 additions & 0 deletions
11
tests/ManiaTemplates.Tests/IntegrationTests/templates/slots/base.mt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<component> | ||
<import component="Window" as="Window"/> | ||
|
||
<template> | ||
<Theme /> | ||
|
||
<Window width="200" height="130"> | ||
<TextInput name="Search"/> | ||
</Window> | ||
</template> | ||
</component> |
29 changes: 29 additions & 0 deletions
29
tests/ManiaTemplates.Tests/IntegrationTests/templates/slots/container.mt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<component> | ||
<property type="double" name="x" default="0.0" /> | ||
<property type="double" name="y" default="0.0" /> | ||
<property type="double" name="width" default="0.0" /> | ||
<property type="double" name="height" default="0.0" /> | ||
<property type="double" name="scale" default="0.0" /> | ||
<property type="bool" name="scrollable" default="false" /> | ||
<property type="bool" name="hidden" default="false" /> | ||
<property type="int" name="zIndex" default="0" /> | ||
<property type="int" name="rotate" default="0" /> | ||
<property type="string" name="className" default="" /> | ||
|
||
<template> | ||
<frame | ||
id="evosc_container" | ||
pos="{{ x }} {{ y }}" | ||
size="{{ width }} {{ height }}" | ||
scriptevents='{{ scrollable ? "1" : "0" }}' | ||
z-index="{{ zIndex }}" | ||
rot="{{ rotate }}" | ||
scale="{{ scale }}" | ||
class="{{ className }}" | ||
hidden='{{ hidden ? "1" : "0" }}' | ||
> | ||
<quad size="9999 9999" pos="0 0" if="scrollable" /> | ||
<slot /> | ||
</frame> | ||
</template> | ||
</component> |
25 changes: 25 additions & 0 deletions
25
tests/ManiaTemplates.Tests/IntegrationTests/templates/slots/window.mt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<component> | ||
<import component="Container" as="Container"/> | ||
|
||
<property type="double" name="width" default="600.0" /> | ||
<property type="double" name="height" default="400.0" /> | ||
<property type="double" name="padding" default="5.0" /> | ||
|
||
<template> | ||
<frame> | ||
<label text="labelBefore" /> | ||
|
||
<Container x="{{ padding }}" | ||
y="-{{ padding }}" | ||
width="{{ width }}" | ||
height="{{ height }}" | ||
|
||
pos="{{ padding }} -{{ padding }}" | ||
size="{{ width - padding * 2 }} {{ height - padding * 2 }}" | ||
> | ||
<label text="Next element should be TextInput" /> | ||
<slot /> | ||
</Container> | ||
</frame> | ||
</template> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters