mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-31 15:57:02 +00:00
actions on title click allowed (unused)
This commit is contained in:
parent
6331ca1e1d
commit
ae92566255
@ -119,6 +119,8 @@ EX namespace dialog {
|
|||||||
EX vector<item> items;
|
EX vector<item> items;
|
||||||
|
|
||||||
EX item& lastItem() { return items[items.size() - 1]; }
|
EX item& lastItem() { return items[items.size() - 1]; }
|
||||||
|
|
||||||
|
EX item& titleItem() { return items[0]; }
|
||||||
|
|
||||||
EX map<int, reaction_t> key_actions;
|
EX map<int, reaction_t> key_actions;
|
||||||
|
|
||||||
@ -421,7 +423,9 @@ EX namespace dialog {
|
|||||||
int mid = (top + tothei) / 2;
|
int mid = (top + tothei) / 2;
|
||||||
I.position = mid;
|
I.position = mid;
|
||||||
if(I.type == diTitle || I.type == diInfo) {
|
if(I.type == diTitle || I.type == diInfo) {
|
||||||
|
bool xthis = (mousey >= top && mousey < tothei && I.key);
|
||||||
displayfr(dcenter, mid, 2, dfsize * I.scale/100, I.body, I.color, 8);
|
displayfr(dcenter, mid, 2, dfsize * I.scale/100, I.body, I.color, 8);
|
||||||
|
if(xthis) getcstat = I.key;
|
||||||
}
|
}
|
||||||
else if(I.type == diItem || I.type == diBigItem) {
|
else if(I.type == diItem || I.type == diBigItem) {
|
||||||
bool xthis = (mousey >= top && mousey < tothei);
|
bool xthis = (mousey >= top && mousey < tothei);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user