Files
junisaber/src/templates/dialogs.html

43 lines
1.6 KiB
HTML
Raw Normal View History

<a-mixin
id="dialogButton"
mixin="slice"
bind-toggle__raycastable="isPaused"
animation__mouseenter="property: components.slice9.material.color; type: color; from: #050505; to: #067197; startEvents: mouseenter; pauseEvents: mouseleave; dur: 150"
animation__mouseleave="property: components.slice9.material.color; type: color; from: #067197; to: #050505; startEvents: mouseleave; pauseEvents: mouseenter; dur: 150"
slice9="width: 1; height: 0.27; padding: 0.04"></a-mixin>
<a-mixin
id="dialogButtonText"
mixin="font"
2018-10-04 18:13:27 +02:00
position="0 -0.07 0.01"
text="align: center; wrapCount: 17; color: #AAA"></a-mixin>
2018-10-04 18:13:27 +02:00
<a-entity mixin="dialogButtonText" text="value: GAME OVER; color: #ff7171; width: 4" bind__visible="isGameOver" position="0 1.8 -2.3"></a-entity>
2018-10-04 02:21:16 +02:00
<a-entity id="pauseDialog" position="0 1.6 -2" bind__visible="isPaused">
<a-entity
id="resumeButton"
mixin="dialogButton"
2018-10-04 01:40:24 -07:00
bind-toggle__raycastable="isPaused && !isGameOver"
position="0 0.35 0"
2018-10-04 01:40:24 -07:00
proxy-event="event: click; to: a-scene; as: pausemenuresume"
bind__visible="!isGameOver">
2018-10-04 18:13:27 +02:00
<a-entity mixin="dialogButtonText" text="value: RESUME"></a-entity>
</a-entity>
2018-10-04 00:59:47 +02:00
<a-entity
id="restartButton"
mixin="dialogButton"
proxy-event="event: click; to: a-scene; as: pausemenurestart">
<a-entity mixin="dialogButtonText" text="value: RESTART SONG"></a-entity>
</a-entity>
2018-10-04 00:59:47 +02:00
<a-entity
id="exitButton"
mixin="dialogButton"
position="0 -0.35 0"
proxy-event="event: click; to: a-scene; as: pausemenuexit">
2018-10-04 18:13:27 +02:00
<a-entity mixin="dialogButtonText" text="value: EXIT TO MENU"></a-entity>
</a-entity>
</a-entity>