its part of a bunch of gui improvemnt i developed
- show "3: wounded" in stead of just wounded
- https://openxcom.org/forum/index.php?topic=2513.msg25395#msg25395
- "this thread"
- https://openxcom.org/bugs/openxcom/issues/524
- remove rank from inventory-soldier-name and put it into rank-icon-tooltip
- https://imgur.com/pD6semt (higher scale needed to see)
- inventory in base->rank icon jumps to base-soldier stat -> armor change possible (works with original scale)
- select armor in base-inv-window https://imgur.com/7YA6jU5 (higher scale needed)
- click on rank icon in soldier-ase-stats goes to inventory
- more than 10 I-see-alien infoboxes https://imgur.com/WSGPfLn
- no animation for infobox
- infobox for other aliens/psi: allow infobox for aliens other soldier see this turn (slightly different color) + different colors for mind controlled "soldier-enemies"
- infobox for soldiers here wounded/mindcontrolled/stunned/dead https://imgur.com/zQ3mwwN,vYy1Jvw
all put together in one number option
so if one wants to only have option 3 and option6 2^3+2^6 is your number
value 1 enables all
that is the "Options::guiSmallChange" part in the path to dogfight
diff --git a/src/Geoscape/DogfightState.cpp b/src/Geoscape/DogfightState.cpp
index 3c0408f..a4ea6e6 100644
--- a/src/Geoscape/DogfightState.cpp
+++ b/src/Geoscape/DogfightState.cpp
@@ -377,7 +377,7 @@ DogfightState::DogfightState(Globe *globe, Craft *craft, Ufo *ufo) : _globe(glob
_txtStatus->setText(tr("STR_STANDOFF"));
SurfaceSet *set = _game->getResourcePack()->getSurfaceSet("INTICON.PCK");
-
+ DrawTexture();
https:// Create the minimized dogfight icon.
Surface *frame = set->getFrame(_craft->getRules()->getSprite());
frame->setX(0);
@@ -1667,6 +1667,7 @@ void DogfightState::btnMinimizedIconClick(Action *)
_btnMinimizedIcon->setVisible(false);
_txtInterceptionNumber->setVisible(false);
_preview->setVisible(false);
+ DrawTexture();
}
/**
@@ -1837,4 +1838,28 @@ int DogfightState::getInterceptionNumber() const
return _interceptionNumber;
}
+/**
+ * Draws texture in dogfight window.
+ */
+void DogfightState::DrawTexture() const
+{
+ if (Options::guiSmallChange == 1 || ((Options::guiSmallChange >> 3 ) & 1 ) == 1)
+ {
+ SurfaceSet *textureset = _game->getResourcePack()->getSurfaceSet("TEXTURE.DAT");
+ Surface *ilframe;
+ Sint16 xt1[4]={143, 156, 156, 143};
+ Sint16 yt1[4]={71, 71, 81, 81};
+ if (!_globe->insideLand(_ufo->getLongitude(), _ufo->getLatitude()))
+ {
+ _window->drawPolygon(xt1,yt1,4,_globe->oceanColor1);
+ }
+ else
+ {
+ int texture, shade;
+ _globe->getPolygonTextureAndShade(_ufo->getLongitude(), _ufo->getLatitude(), &texture, &shade);
+ ilframe = textureset->getFrame(texture);
+ _window->drawTexturedPolygon(xt1,yt1,4,ilframe,0,0);
+ }
+ }
+}
}
i am not sure when or if there is even a chance that such change will find its way into the game
Edit: as far as i understand it new features are at least on a long waiting list until tftd is finished