Skip to content

Commit

Permalink
add defines for the group menu position
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhite510 authored and past-due committed Aug 29, 2023
1 parent e8f83d6 commit 954774a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/hci.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ enum // Reticule button indecies.
#define OBJ_BACKWIDTH 320 //316 // Width of object screen back form.
#define OBJ_BACKHEIGHT 115 // Height of object screen back form.

#define GROUP_BACKX OBJ_BACKX
#define GROUP_BACKY OBJ_BACKY + 40
#define GROUP_BACKWIDTH OBJ_BACKWIDTH
#define GROUP_BACKHEIGHT OBJ_BACKHEIGHT - 40

/* Build screen positions */
#define OBJ_TABY 6 // Y coord of object screen tab form.
#define OBJ_WIDTH 316 //312//310 // Width of object screen tab form.
Expand Down
2 changes: 1 addition & 1 deletion src/hci/groups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void GroupsForum::initialize()
// the layout should be like this when the build menu is open
id = IDOBJ_GROUP;
setCalcLayout(LAMBDA_CALCLAYOUT_SIMPLE({
psWidget->setGeometry(OBJ_BACKX, OBJ_BACKY + 40, OBJ_BACKWIDTH, OBJ_BACKHEIGHT - 40);
psWidget->setGeometry(GROUP_BACKX, GROUP_BACKY, GROUP_BACKWIDTH, GROUP_BACKHEIGHT);
}));
addTabList();
// create the 11 buttons for each group
Expand Down

0 comments on commit 954774a

Please sign in to comment.