0ad/binaries/data/mods/mod/gui/timedconfirmation/timedconfirmation.xml
Angen 7e5e06bae8 Fix timeout confirmation box depending on fps
Introduced in b4fbbed379
Use Date.now() to calculate passed time.
Rewrite to class.
Also actually pass timeout from json.

Differential revision: D4318
Comments by: @vladislavbelov, @Stan
This was SVN commit r26306.
2022-02-06 11:04:42 +00:00

47 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<objects>
<script directory="gui/common/"/>
<script directory="gui/timedconfirmation/"/>
<!-- Fade out the background because it's non-interactable -->
<object sprite="ModernFade" type="image"/>
<object name="tmcCancelHotkey" hotkey="cancel" />
<object name="tmcMain"
style="ModernDialog"
type="image"
>
<object name="tmcTitleBar"
style="ModernLabelText"
type="text"
size="50%-128 -18 50%+128 14"
/>
<object name="tmcTimerDisplay"
type="text"
style="ModernLabelText"
size="18 28 100%-18 38"
/>
<object name="tmcText"
type="text"
style="ModernLabelText"
size="18 40 100%-18 100%-64"
/>
<!-- The size of the following buttons is set dynamically in timedconfirmation.js -->
<object name="tmcButton1"
style="ModernButtonRed"
type="button"
hidden="true"
/>
<object name="tmcButton2"
style="ModernButtonRed"
type="button"
hidden="true"
/>
<object name="tmcButton3"
style="ModernButtonRed"
type="button"
hidden="true"
/>
</object>
</objects>