-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from gruppe-adler/direct-connect-refactor
directConnect right-click feature
- Loading branch information
Showing
14 changed files
with
262 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ https://github.com/gruppe-adler/grad_connectButtonPort | |
#### Maintainer(s) | ||
|
||
* McDiod | ||
* DerZade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
#define GRAD_DIRECTCONNECT_IDC_PASSWORDTEXT 1008 | ||
#define GRAD_DIRECTCONNECT_IDC_PASSWORD 1009 | ||
#define DIRECTCONNECT_IDC_PASSWORDTEXT 1008 | ||
#define DIRECTCONNECT_IDC_PASSWORD 1009 | ||
|
||
// ============================================================================= | ||
|
||
#define CENTER(PARENT_SIZE, CHILD_SIZE) ((PARENT_SIZE / 2) - (CHILD_SIZE / 2)) | ||
|
||
#define GRAD_DIRECTCONNECT_XSCALE (((safezoneW / safezoneH) min 1.2) / 40) | ||
#define GRAD_DIRECTCONNECT_YSCALE ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) | ||
#define DIRECTCONNECT_XSCALE (((safezoneW / safezoneH) min 1.2) / 40) | ||
#define DIRECTCONNECT_YSCALE ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) | ||
|
||
#define GRAD_DIRECTCONNECT_TOTALW (30 * GRAD_DIRECTCONNECT_XSCALE) | ||
#define GRAD_DIRECTCONNECT_TOTALH (10 * GRAD_DIRECTCONNECT_YSCALE) | ||
#define GRAD_DIRECTCONNECT_SPACERY (0.12 * GRAD_DIRECTCONNECT_YSCALE) | ||
#define GRAD_DIRECTCONNECT_ELEMENTH (1 * GRAD_DIRECTCONNECT_YSCALE) | ||
#define GRAD_DIRECTCONNECT_PADDINGY (1 * GRAD_DIRECTCONNECT_YSCALE) | ||
#define GRAD_DIRECTCONNECT_PADDINGX (1 * GRAD_DIRECTCONNECT_XSCALE) | ||
#define GRAD_DIRECTCONNECT_TEXTBOXH (2* GRAD_DIRECTCONNECT_XSCALE) | ||
#define GRAD_DIRECTCONNECT_BUTTONW (6.25 * GRAD_DIRECTCONNECT_XSCALE) | ||
#define DIRECTCONNECT_TOTALW (30 * DIRECTCONNECT_XSCALE) | ||
#define DIRECTCONNECT_TOTALH (10 * DIRECTCONNECT_YSCALE) | ||
#define DIRECTCONNECT_SPACERY (0.12 * DIRECTCONNECT_YSCALE) | ||
#define DIRECTCONNECT_ELEMENTH (1 * DIRECTCONNECT_YSCALE) | ||
#define DIRECTCONNECT_PADDINGY (1 * DIRECTCONNECT_YSCALE) | ||
#define DIRECTCONNECT_PADDINGX (1 * DIRECTCONNECT_XSCALE) | ||
#define DIRECTCONNECT_TEXTBOXH (2* DIRECTCONNECT_XSCALE) | ||
#define DIRECTCONNECT_BUTTONW (6.25 * DIRECTCONNECT_XSCALE) | ||
|
||
#define GRAD_DIRECTCONNECT_MAINH (GRAD_DIRECTCONNECT_TOTALH - 2*GRAD_DIRECTCONNECT_ELEMENTH - 2*GRAD_DIRECTCONNECT_SPACERY) | ||
#define DIRECTCONNECT_MAINH (DIRECTCONNECT_TOTALH - 2*DIRECTCONNECT_ELEMENTH - 2*DIRECTCONNECT_SPACERY) | ||
|
||
#define GRAD_DIRECTCONNECT_TOTALX (CENTER(1,GRAD_DIRECTCONNECT_TOTALW)) | ||
#define GRAD_DIRECTCONNECT_TOTALY (CENTER(1,GRAD_DIRECTCONNECT_TOTALH)) | ||
#define GRAD_DIRECTCONNECT_MAINY (GRAD_DIRECTCONNECT_TOTALY + GRAD_DIRECTCONNECT_ELEMENTH + GRAD_DIRECTCONNECT_SPACERY) | ||
#define DIRECTCONNECT_TOTALX (CENTER(1,DIRECTCONNECT_TOTALW)) | ||
#define DIRECTCONNECT_TOTALY (CENTER(1,DIRECTCONNECT_TOTALH)) | ||
#define DIRECTCONNECT_MAINY (DIRECTCONNECT_TOTALY + DIRECTCONNECT_ELEMENTH + DIRECTCONNECT_SPACERY) | ||
|
||
#define GRAD_DIRECTCONNECT_CONTENTW (GRAD_DIRECTCONNECT_TOTALW - 2*GRAD_DIRECTCONNECT_PADDINGX) | ||
#define GRAD_DIRECTCONNECT_CONTENTX (GRAD_DIRECTCONNECT_TOTALX + GRAD_DIRECTCONNECT_PADDINGX) | ||
#define GRAD_DIRECTCONNECT_BUTTONOKX (GRAD_DIRECTCONNECT_TOTALX + GRAD_DIRECTCONNECT_TOTALW - GRAD_DIRECTCONNECT_BUTTONW) | ||
#define GRAD_DIRECTCONNECT_BUTTONY (GRAD_DIRECTCONNECT_MAINY + GRAD_DIRECTCONNECT_MAINH + GRAD_DIRECTCONNECT_SPACERY) | ||
#define DIRECTCONNECT_CONTENTW (DIRECTCONNECT_TOTALW - 2*DIRECTCONNECT_PADDINGX) | ||
#define DIRECTCONNECT_CONTENTX (DIRECTCONNECT_TOTALX + DIRECTCONNECT_PADDINGX) | ||
#define DIRECTCONNECT_BUTTONOKX (DIRECTCONNECT_TOTALX + DIRECTCONNECT_TOTALW - DIRECTCONNECT_BUTTONW) | ||
#define DIRECTCONNECT_BUTTONY (DIRECTCONNECT_MAINY + DIRECTCONNECT_MAINH + DIRECTCONNECT_SPACERY) | ||
|
||
#define GRAD_DIRECTCONNECT_X (safeZoneX + 2 * GRAD_DIRECTCONNECT_XSCALE) | ||
#define GRAD_DIRECTCONNECT_LOGOX (GRAD_DIRECTCONNECT_X - (1.8 * (pixelH * pixelGrid * 2))) | ||
#define DIRECTCONNECT_X (safeZoneX + 2 * DIRECTCONNECT_XSCALE) | ||
#define DIRECTCONNECT_LOGOX (DIRECTCONNECT_X - (1.8 * (pixelH * pixelGrid * 2))) |
Oops, something went wrong.