index 5175e95155a8663bf3a450283ff8015500202c48..4f372842ff369a7c8a598207b044152c1299188e 100644 (file)
--- a/src/game/g_holmes_ui.inc
+++ b/src/game/g_holmes_ui.inc
procedure uiDraw ();
var
f: Integer;
+ ctl: THControl;
begin
- for f := 0 to High(uiTopList) do uiTopList[f].draw();
+ for f := 0 to High(uiTopList) do
+ begin
+ ctl := uiTopList[f];
+ ctl.draw();
+ if (f <> High(uiTopList)) then darkenRect(ctl.x0, ctl.y0, ctl.width, ctl.height, 128);
+ end;
end;
var
r, g, b: Integer;
begin
+ {
if getFocused then
begin
r := 255;
g := 127;
b := 127;
end;
+ }
+ r := 255;
+ g := 255;
+ b := 255;
drawRect(mX, mY, mWidth, mHeight, r, g, b);
if (Length(mTitle) > 0) then
begin
SetLength(mChecks, Length(mChecks)+1);
mChecks[High(mChecks)] := bv;
if (Length(mItems)*8+4 > mHeight) then mHeight := Length(mItems)*8+4;
+ if (mCurIndex < 0) then mCurIndex := 0;
end;