aboutsummaryrefslogtreecommitdiffstats
path: root/Lua/DisplayChanges.patch
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-11 17:34:54 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-11 17:34:54 +0000
commit1ab628e8ad6c85c8f1b562f10480253ee3e622b7 (patch)
treed21621f68850ecd7762137e1c4387fa15731a811 /Lua/DisplayChanges.patch
parent6ec275387c320d3d9a8f5b6fe185687643565b8c (diff)
downloadusdx-1ab628e8ad6c85c8f1b562f10480253ee3e622b7.tar.gz
usdx-1ab628e8ad6c85c8f1b562f10480253ee3e622b7.tar.xz
usdx-1ab628e8ad6c85c8f1b562f10480253ee3e622b7.zip
merged trunk into lua branch
plugin loading is disabled atm because of a bug reading the files (lua may be the reason). Reading the files in usdx and passing the contents to lua may solve this git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2019 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Lua/DisplayChanges.patch')
-rw-r--r--Lua/DisplayChanges.patch88
1 files changed, 88 insertions, 0 deletions
diff --git a/Lua/DisplayChanges.patch b/Lua/DisplayChanges.patch
new file mode 100644
index 00000000..9cb00a18
--- /dev/null
+++ b/Lua/DisplayChanges.patch
@@ -0,0 +1,88 @@
+Index: src/menu/UDisplay.pas
+===================================================================
+--- src/menu/UDisplay.pas (revision 1702)
++++ src/menu/UDisplay.pas (working copy)
+@@ -42,8 +42,65 @@
+ SysUtils;
+
+ type
++ { this is a effect for screen fade that in fact does nothing
++ and should be used as parent for new fade effect.
++ It will also be used if fading is disabled }
++ TFadeEffect = class
++ private
++
++ public
++ constructor Create;
++
++ { this procedure is called when a screen change starts }
++ procedure StartFade;
++
++ { this function is called during a screen change, before screen
++ is drawn. screenchange is finished if this function returns
++ true. DoFadePostDraw will be called in every case after this
++ function was called, but fading will be finished regardless
++ what is returned DoFadePostDraw.}
++ function DoFadePreDraw: Boolean;
++
++ { this function is called during a screen change, after screen
++ was drawn. screenchange is finished if this function returns
++ true. }
++ function DoFadePostDraw: Boolean;
++
++
++
++ destructor Destroy;
++ end;
++
++ { class representing a kind of screen that is drawn over
++ one or more other screens. it has focus before the
++ screens that it is overlaying }
++ TOverlay = class(TMenu);
++
+ TDisplay = class
+ private
++ FadeInProgress: Boolean;
++ CurrentMenu: TMenu;
++
++ FadeEffect: TFadeEffect;
++ public
++ constructor Create(Caption: String);
++
++ { changes displayed screen, starts fading }
++ procedure ChangeMenu(NewScreen: TMenu);
++ property Menu: TMenu read CurrentMenu write ChangeMenu;
++
++
++
++
++
++ { calls draw procedures of Screen and overlays, it
++ returns false if application should be closed }
++ function Draw: Boolean;
++
++ destructor Destroy;
++
++ {TDisplay = class
++ private
+ //fade-to-black-hack
+ BlackScreen: boolean;
+
+@@ -53,7 +110,7 @@
+ LastFadeTime: cardinal; // last fade update time
+
+ FadeTex: array[1..2] of GLuint;
+-
++
+ FPSCounter: cardinal;
+ LastFPS: cardinal;
+ NextFPSSwap: cardinal;
+@@ -78,7 +135,7 @@
+ procedure SaveScreenShot;
+
+ function Draw: boolean;
+- end;
++ end; }
+
+ var
+ Display: TDisplay;