summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/ptrc.menu111
-rw-r--r--ui/tremulous.txt2
2 files changed, 113 insertions, 0 deletions
diff --git a/ui/ptrc.menu b/ui/ptrc.menu
new file mode 100644
index 00000000..c11f11bd
--- /dev/null
+++ b/ui/ptrc.menu
@@ -0,0 +1,111 @@
+#include "ui/menudef.h"
+
+{
+ // PTRC POPUP MENU //
+
+ menuDef
+ {
+ name "ptrc_popmenu"
+ visible 0
+ fullscreen 0
+ rect 140 170 360 140
+ focusColor 1 .75 0 1
+ style 1
+ border 1
+ popup
+ onESC
+ {
+ play "sound/misc/menu1.wav";
+ close ptrc_popmenu
+ }
+
+
+ itemDef
+ {
+ name window
+ rect 0 0 360 140
+ style WINDOW_STYLE_FILLED
+ backcolor 0 0 0 1
+ visible 1
+ decoration
+
+ border WINDOW_BORDER_FULL
+ borderSize 1.0
+ borderColor 0.5 0.5 0.5 1
+ }
+
+
+ // PTRC //
+
+ itemDef
+ {
+ name confirm
+ text "It seems that you disconnected during this game."
+ style 0
+ textscale .4
+ textstyle 3
+ rect 180 40 0 0
+ textalign ITEM_ALIGN_CENTER
+ decoration
+ forecolor 1 1 1 1
+ visible 1
+ }
+
+ itemDef
+ {
+ name confirm
+ text "Would you like to be restored to your previous state?"
+ style 0
+ textscale .4
+ textstyle 3
+ rect 180 65 0 0
+ textalign ITEM_ALIGN_CENTER
+ decoration
+ forecolor 1 1 1 1
+ visible 1
+ }
+
+
+ itemDef
+ {
+ name yes
+ text "YES"
+ type 1
+ textscale .25
+ rect 80 96 20 20
+ textalign ITEM_ALIGN_CENTER
+ textalignx 10
+ textaligny 14
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu4.wav";
+ uiScript PTRCRestore;
+ close ptrc_popmenu
+ }
+ }
+
+
+ itemDef
+ {
+ name no
+ text "NO"
+ type 1
+ textscale .25
+ rect 260 96 20 20
+ textalign ITEM_ALIGN_CENTER
+ textalignx 10
+ textaligny 14
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ close ptrc_popmenu
+ }
+ }
+ }
+}
+
+
diff --git a/ui/tremulous.txt b/ui/tremulous.txt
index 8cf69b72..1a9ec55c 100644
--- a/ui/tremulous.txt
+++ b/ui/tremulous.txt
@@ -14,4 +14,6 @@
loadMenu { "ui/tremulous_aliendialogs.menu" }
loadMenu { "ui/tremulous_alienupgrade.menu" }
+
+ loadMenu { "ui/ptrc.menu" }
}