aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-03-18 18:08:41 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-03-18 18:08:41 +0000
commitd290102f779675f6ceabcb5f0c6d5df6e209c2a4 (patch)
treeea7f87be5bc107e4552eb4a40e09bf6d696b8687
parent517d37a95f797204758f54607969a56761b4a0db (diff)
downloadusdx-d290102f779675f6ceabcb5f0c6d5df6e209c2a4.tar.gz
usdx-d290102f779675f6ceabcb5f0c6d5df6e209c2a4.tar.xz
usdx-d290102f779675f6ceabcb5f0c6d5df6e209c2a4.zip
vertically center select arrows
set correct z value for arrows git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2206 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--src/menu/UMenu.pas7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/menu/UMenu.pas b/src/menu/UMenu.pas
index a56b7c7f..30cd9d4d 100644
--- a/src/menu/UMenu.pas
+++ b/src/menu/UMenu.pas
@@ -1286,6 +1286,8 @@ begin
SelectsS[High(SelectsS)].Texture.Z := ThemeSelectS.Z;
SelectsS[High(SelectsS)].TextureSBG.Z := ThemeSelectS.Z;
+ SelectsS[High(SelectsS)].Tex_SelectS_ArrowL.Z := ThemeSelectS.Z;
+ SelectsS[High(SelectsS)].Tex_SelectS_ArrowR.Z := ThemeSelectS.Z;
SelectsS[High(SelectsS)].showArrows := ThemeSelectS.showArrows;
SelectsS[High(SelectsS)].oneItemOnly := ThemeSelectS.oneItemOnly;
@@ -1364,13 +1366,14 @@ begin
SelectsS[High(SelectsS)].Tex_SelectS_ArrowL := Tex_SelectS_ArrowL;
SelectsS[High(SelectsS)].Tex_SelectS_ArrowL.X := X + W + SkipX;
- SelectsS[High(SelectsS)].Tex_SelectS_ArrowL.Y := Y;
+ SelectsS[High(SelectsS)].Tex_SelectS_ArrowL.Y := Y + (H - Tex_SelectS_ArrowL.H) / 2;
SelectsS[High(SelectsS)].Tex_SelectS_ArrowL.W := Tex_SelectS_ArrowL.W;
SelectsS[High(SelectsS)].Tex_SelectS_ArrowL.H := Tex_SelectS_ArrowL.H;
+
SelectsS[High(SelectsS)].Tex_SelectS_ArrowR := Tex_SelectS_ArrowR;
SelectsS[High(SelectsS)].Tex_SelectS_ArrowR.X := X + W + SkipX + SBGW - Tex_SelectS_ArrowR.W;
- SelectsS[High(SelectsS)].Tex_SelectS_ArrowR.Y := Y;
+ SelectsS[High(SelectsS)].Tex_SelectS_ArrowR.Y := Y + (H - Tex_SelectS_ArrowR.H) / 2;
SelectsS[High(SelectsS)].Tex_SelectS_ArrowR.W := Tex_SelectS_ArrowR.W;
SelectsS[High(SelectsS)].Tex_SelectS_ArrowR.H := Tex_SelectS_ArrowR.H;