aliens

Author Topic: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?  (Read 12994 times)

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
You know what? We could just use the corresponding globe texture. Maximum simplicity, instantly recognizable, future-proof (in case we see new globe textures... TFTD hybrid game, for example...

15*11 should be bog enoigh for the texture to be clearly recognizable, don't you think?

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
good idea
implemented this

Offline davide

  • Commander
  • *****
  • Posts: 565
    • View Profile

Offline luke83

  • Commander
  • *****
  • Posts: 1559
    • View Profile
    • openxcommods
A nice and simply solution

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
good idea
implemented this

Including directly texture of crash ground is...  ::)

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
what happened to this brilliant idea?

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
its part of a bunch of gui improvemnt i developed
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

Spoiler:
Code: [Select]
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
« Last Edit: August 20, 2014, 10:17:52 pm by Falko »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11727
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Edit: as far as i understand it new features are at least on a long waiting list until tftd is finished

...now I like TFTD even less. :P

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
Oh darn.. all of these would be very nifty improvements on the basic games, quick to put in and improving the user experience of OpenXCom before the huge upgrade of bringing TftD. I was hoping there would be OpenXCom 1.1 and up before then.. Too bad.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Nice, vanilla friendly and ellegant (even if the interception window looks a bit worse) feature and all, but... the thrill of not being sure will be gone... Something will be lost... After all, IRL a pilot wouldn't be able to tell if an UFO shot down at 10km attitude will fall into the sea or not, if it happens within a few kms of the shoreline... I dunno, maybe I'm just getting old... But this is going be just an option, so let's just call it "casual mode" and not use it if do not want. :)

And yeah, I don't intend to play TFTD anyway, especially after Hobbes imported the best part of it (urban terrains), and Solar has imported most of the TFTD aliens. Although I support its developement, as it promises a single saving grace: potentially definiable special enviros (if underwater, then why not space? Low-G? all kinds of hostile enviros?)... if it gets broadly implemented instead of just glossing over it like Microprose did, that is.
« Last Edit: August 22, 2014, 05:36:01 am by Dioxine »

Offline Hollow_Fang

  • Sergeant
  • **
  • Posts: 32
    • View Profile
Great idea cannot wait for this and or movable air combat window.

niculinux

  • Guest
Bumping because a little and useful idea, very easy to realize, i guess?