SAGA2: Unstub mouse-related interface functions

This commit is contained in:
Eugene Sandulenko 2021-06-27 17:21:06 +02:00
parent cf8b7945b8
commit a85940e77d
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -2302,10 +2302,9 @@ APPFUNC(cmdAggressive) {
} else if (ev.eventType == gEventMouseMove) {
if (ev.value == gCompImage::enter) {
// set the text in the cursor
warning("STUB: APPFUNC(cmdAggressive)");
//mouseInfo.setText(isAggressive(transBroID)
// ? ON_AGRESS
// : OFF_AGRESS);
mouseInfo.setText(isAggressive(transBroID)
? ON_AGRESS
: OFF_AGRESS);
} else if (ev.value == gCompImage::leave) {
mouseInfo.setText(nullptr);
}
@ -2368,10 +2367,9 @@ APPFUNC(cmdCenter) {
if (ev.eventType == gEventMouseMove) {
if (ev.value == gCompImage::enter) {
// set the text in the cursor
warning("STUB: APPFUNC(cmdCenter)");
//mouseInfo.setText(getCenterActorPlayerID() == transBroID
// ? ON_CENTER
// : OFF_CENTER);
mouseInfo.setText(getCenterActorPlayerID() == transBroID
? ON_CENTER
: OFF_CENTER);
} else if (ev.value == gCompImage::leave) {
mouseInfo.setText(nullptr);
}
@ -2403,10 +2401,9 @@ APPFUNC(cmdBand) {
} else if (ev.eventType == gEventMouseMove) {
if (ev.value == gCompImage::enter) {
// set the text in the cursor
warning("STUB: APPFUNC(cmdBand)");
//mouseInfo.setText(isBanded(transBroID)
// ? ON_BANDED
// : OFF_BANDED);
mouseInfo.setText(isBanded(transBroID)
? ON_BANDED
: OFF_BANDED);
} else if (ev.value == gCompImage::leave) {
mouseInfo.setText(nullptr);
}