1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
7 // static char *VB_Name = "modDisplay";
11 int ScreenScrollXPos, ScreenScrollYPos;
12 int ScreenPosition, data_h_Xtmp, data_h_Ytmp;
14 int ShowRedDiskCounter, ShowPanel;
16 boolean NoDisplayFlag;
18 long DisplayMinX, DisplayMaxX, DisplayWidth;
19 long DisplayMinY, DisplayMaxY, DisplayHeight;
22 int subDisplayInfotronsNeeded()
24 int subDisplayInfotronsNeeded;
27 return subDisplayInfotronsNeeded;
31 MainForm.lblInfoCount.Caption = InfotronsNeeded;
32 MainForm.lblInfoCount.Refresh;
36 return subDisplayInfotronsNeeded;
39 int subDisplayPlayingTime()
41 int subDisplayPlayingTime;
44 return subDisplayPlayingTime;
51 if (NoDisplayFlag || ! LevelLoaded)
52 return subDisplayLevel;
55 MainForm.DisplayLevel();
58 return subDisplayLevel;
61 void subDisplayPanel()
65 int subCheckRestoreRedDiskCountDisplay()
67 int subCheckRestoreRedDiskCountDisplay;
70 return subCheckRestoreRedDiskCountDisplay;
72 if (ShowRedDiskCounter == 0)
73 return subCheckRestoreRedDiskCountDisplay;
75 ShowRedDiskCounter = ShowRedDiskCounter - 1;
76 if (ShowRedDiskCounter == 0)
80 MainForm.lblRedDiskCount.Caption = 0;
81 MainForm.lblRedDiskCount.Refresh;
86 return subCheckRestoreRedDiskCountDisplay;
89 void subDisplayRedDiskCount()
96 MainForm.lblRedDiskCount.Caption = RedDiskCount;
97 MainForm.lblRedDiskCount.Refresh;
100 ShowRedDiskCounter = 0x46;
103 void ScrollTo(int X, int Y)
112 X = ScrollDelta * (X / ScrollDelta);
113 X = Max(X, ScrollMinX);
114 X = Min(X, ScrollMaxX);
115 Y = ScrollDelta * (Y / ScrollDelta);
116 Y = Max(Y, ScrollMinY);
117 Y = Min(Y, ScrollMaxY);
120 Stage.ScrollTo(X, Y);
123 void ScrollTowards(int X, int Y)
132 X = ScrollDelta * (X / ScrollDelta);
133 X = Max(X, ScrollMinX);
134 X = Min(X, ScrollMaxX);
135 Y = ScrollDelta * (Y / ScrollDelta);
136 Y = Max(Y, ScrollMinY);
137 Y = Min(Y, ScrollMaxY);
140 Stage.ScrollTowards(X, Y, 2 * Stretch);
143 void SoftScrollTo(int X, int Y, long TimeMS, int FPS)
152 X = ScrollDelta * (X / ScrollDelta);
153 X = Max(X, ScrollMinX);
154 X = Min(X, ScrollMaxX);
155 Y = ScrollDelta * (Y / ScrollDelta);
156 Y = Max(Y, ScrollMinY);
157 Y = Min(Y, ScrollMaxY);
160 Stage.SoftScrollTo(X, Y, TimeMS, FPS);