From 9c95f003f1c740da27876db61463c5eba78c4d54 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 22 Apr 2021 21:33:51 +0200 Subject: [PATCH] - ported E2ENDSCREEN --- wadsrc/static/zscript/games/duke/ui/screens.zs | 18 ++++++++++++++++++ wadsrc/static/zscript/screenjob.zs | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/games/duke/ui/screens.zs b/wadsrc/static/zscript/games/duke/ui/screens.zs index fd58543a3..282f1d7bf 100644 --- a/wadsrc/static/zscript/games/duke/ui/screens.zs +++ b/wadsrc/static/zscript/games/duke/ui/screens.zs @@ -251,3 +251,21 @@ class Episode1End1 : SkippableScreenJob } } +//--------------------------------------------------------------------------- +// +// +// +//--------------------------------------------------------------------------- + +class E2EndScreen : ImageScreen +{ + void Init() + { + Super.Init("E2ENDSCREEN", fadein | fadeout | stopsound, 0x7fffffff, 0); + } + + override void Start() + { + Duke.PlaySound(DukeSnd.PIPEBOMB_EXPLODE, CHAN_AUTO, CHANF_UI); + } +} diff --git a/wadsrc/static/zscript/screenjob.zs b/wadsrc/static/zscript/screenjob.zs index 5c8f7f25a..f1aac763b 100644 --- a/wadsrc/static/zscript/screenjob.zs +++ b/wadsrc/static/zscript/screenjob.zs @@ -81,7 +81,7 @@ class ImageScreen : SkippableScreenJob native native bool cleared; native TextureID texid; - native void Init(TextureID tex, int fade = fadein | fadeout, int wait = 3000, int translation = 0); + native void Init(String tex, int fade = fadein | fadeout, int wait = 3000, int translation = 0); //override void OnTick(); //override void Draw(double smooth); }