summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 94de7ee)
raw | patch | inline | side by side (parent: 94de7ee)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sat, 30 Sep 2017 21:53:31 +0000 (00:53 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 2 Oct 2017 23:34:41 +0000 (02:34 +0300) |
src/game/g_holmes.pas | patch | blob | history | |
src/gx/gh_ui.pas | patch | blob | history |
diff --git a/src/game/g_holmes.pas b/src/game/g_holmes.pas
index d27dea1dbb0d53fc832727c7544db9aad78dcc23..0cac2c7aa30aa5f0b5834b11d49d0a24b37d8001 100644 (file)
--- a/src/game/g_holmes.pas
+++ b/src/game/g_holmes.pas
addCheckBox(box, '~foreground', @g_rlayer_fore);
winLayers.appendChild(box);
+ winLayers.flMaxSize := TLaySize.Create(trunc(getScrWdt/gh_ui_scale), trunc(getScrHgt/gh_ui_scale));
uiLayoutCtl(winLayers);
end;
addCheckBox(box, 'con~tours', @g_ol_nice);
winOutlines.appendChild(box);
+ winOutlines.flMaxSize := TLaySize.Create(trunc(getScrWdt/gh_ui_scale), trunc(getScrHgt/gh_ui_scale));
uiLayoutCtl(winOutlines);
end;
box := TUIHBox.Create();
box.hasFrame := true;
box.caption := 'windows';
+ box.captionAlign := 0;
box.flAlign := 0;
addButton(box, '~layers', toggleLayersWindowCB);
span := TUISpan.Create();
addButton(box, '~outline', toggleOutlineWindowCB);
winOptions.appendChild(box);
+ winOptions.flMaxSize := TLaySize.Create(trunc(getScrWdt/gh_ui_scale), trunc(getScrHgt/gh_ui_scale));
uiLayoutCtl(winOptions);
winOptions.centerInScreen();
end;
diff --git a/src/gx/gh_ui.pas b/src/gx/gh_ui.pas
index 72008e0233a0cfe8d88b1360e95de059bf0229f7..9027758fedba90270ae400d49ba50bfd554f0f9a 100644 (file)
--- a/src/gx/gh_ui.pas
+++ b/src/gx/gh_ui.pas
public
property caption: AnsiString read mCaption write setCaption;
property hasFrame: Boolean read mHasFrame write setHasFrame;
+ property captionAlign: Integer read mHAlign write mHAlign;
end;
TUIHBox = class(TUIBox)