mirror of
https://github.com/Kaehvaman/OAIP.git
synced 2025-03-23 03:07:17 +04:00
Minor changes
This commit is contained in:
parent
50162f5e79
commit
b3b9149592
@ -344,7 +344,7 @@ int clip(int n, int lower, int upper) {
|
|||||||
return max(lower, min(n, upper));
|
return max(lower, min(n, upper));
|
||||||
}
|
}
|
||||||
|
|
||||||
char count_string[30];
|
char count_string[50];
|
||||||
|
|
||||||
bool netToggle = false;
|
bool netToggle = false;
|
||||||
|
|
||||||
@ -404,8 +404,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||||||
if (netToggle) drawNet(hdc);
|
if (netToggle) drawNet(hdc);
|
||||||
|
|
||||||
if (selected_element == gold) sprintf(count_string, "gold = %d", inventory[gold]);
|
if (selected_element == gold) sprintf(count_string, "gold = %d", inventory[gold]);
|
||||||
else sprintf(count_string, "wall = %d", inventory[wall]);
|
else if (selected_element == wall) sprintf(count_string, "wall = %d", inventory[wall]);
|
||||||
|
else sprintf(count_string, "not selected");
|
||||||
|
|
||||||
|
//SetBkColor(hdc, RGB(255, 0, 0));
|
||||||
//SetBkMode(hdc, TRANSPARENT);
|
//SetBkMode(hdc, TRANSPARENT);
|
||||||
DrawTextA(hdc, count_string, -1, &textrect, (DT_SINGLELINE | DT_TOP | DT_CENTER));
|
DrawTextA(hdc, count_string, -1, &textrect, (DT_SINGLELINE | DT_TOP | DT_CENTER));
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
10 15
|
10 15
|
||||||
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
3 0 0 0 0 0 0 0 0 0 0 0 0 2 2
|
||||||
0 0 0 0 0 0 0 0 0 3 0 0 0 0 0
|
3 0 0 0 0 0 0 0 0 0 0 0 0 2 2
|
||||||
0 0 0 0 0 0 0 0 0 3 0 0 0 0 0
|
3 0 0 0 0 0 0 0 0 0 0 0 2 2 2
|
||||||
0 0 0 3 3 3 3 0 0 0 3 3 0 0 0
|
3 0 0 0 0 0 0 0 0 0 0 0 2 2 2
|
||||||
0 0 0 0 0 0 3 0 0 0 3 3 0 0 0
|
3 0 0 0 0 0 0 0 0 0 0 0 2 2 2
|
||||||
0 0 0 0 0 0 3 3 3 0 0 0 0 0 0
|
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
|
||||||
0 0 0 0 0 0 0 0 3 0 2 0 0 2 0
|
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
|
||||||
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
|
||||||
0 0 0 0 0 0 2 2 2 2 2 2 2 2 0
|
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
|
||||||
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
3 3 0 0 0 0 0 0 0 0 0 0 2 2 2
|
||||||
0 0 18 0
|
0 0 0 0
|
||||||
1 7 3
|
5 4 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user