OpenXcom Forum

OpenXcom => Suggestions => Topic started by: Unknown Hero on July 02, 2014, 09:28:02 pm

Title: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Unknown Hero on July 02, 2014, 09:28:02 pm
Display a specific icon when the UFO is located above the land, and located above the sea.

(https://img11.hostingpics.net/pics/127686Overseeground02.png)

As usual, the images are for explanation only.
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Hythlodaeus on July 02, 2014, 09:37:30 pm
You know, this is kind of a good idea.
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Solarius Scorch on July 11, 2014, 06:06:31 pm
Yes, it is. Especially when dealing with multiple UFOs in various parts of the globe, so when it suddenly jumps to air combat somewhere, you have no idea where it is.
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: niculinux on July 11, 2014, 10:26:49 pm
+1
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: luke83 on July 12, 2014, 12:50:24 am
+1 ;D
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: moriarty on July 12, 2014, 12:57:36 am
simple yet efficient. +1
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: TurkishSwede on July 12, 2014, 01:08:10 am
+1
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Falko on July 12, 2014, 01:20:32 am
tweaked the source code here and there - it works :)
see image
perhaps some day i will make a PR or find the time to make abetter sea/land icon
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Unknown Hero on July 12, 2014, 01:47:01 am
@ Falko

Quote
tweaked the source code here and there - it works :)

Nice.  :)

Quote
perhaps some day i will make a PR or find the time to make abetter sea/land icon

As you said.  :P
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Qpoter on July 12, 2014, 07:12:13 am
+1

Simple and useful.
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Aldorn on July 12, 2014, 02:53:07 pm
Good  :D
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Sturm on July 12, 2014, 09:15:09 pm
Clicking that icon could minimize the window until it's on land.
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Yankes on July 12, 2014, 09:19:09 pm
Or maybe small "window" that show zoom on ufo blip with ground texture like on ground.
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: moriarty on July 12, 2014, 09:41:31 pm
very cool... hey, maybe we could come up with simple but understandable icons for every type of terrain there is? not just water/land, but also mountain/desert/farm/jungle/arctic/...
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Falko on July 12, 2014, 09:50:28 pm
my current implementation is 15x11 pixel dont know if thats enough space for all types to be clearly distinguishable
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: moriarty on July 12, 2014, 10:42:15 pm
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?
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Falko on July 13, 2014, 03:13:02 am
good idea
implemented this
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: davide on July 13, 2014, 08:53:47 am
+5
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: luke83 on July 13, 2014, 09:00:49 am
A nice and simply solution
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Aldorn on July 13, 2014, 12:33:37 pm
good idea
implemented this

Including directly texture of crash ground is...  ::)
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: moriarty on August 20, 2014, 09:22:55 pm
what happened to this brilliant idea?
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Falko on August 20, 2014, 10:00:00 pm
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

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
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Solarius Scorch on August 21, 2014, 08:23:10 am
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
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Arthanor on August 22, 2014, 12:40:58 am
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.
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Dioxine on August 22, 2014, 05:30:25 am
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.
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: Hollow_Fang on August 26, 2014, 10:06:18 am
Great idea cannot wait for this and or movable air combat window.
Title: Re: [SUGGESTION-UNCUT][#052] UFO chasing, is it above the sea or above the land?
Post by: niculinux on August 23, 2016, 10:58:57 pm
Bumping because a little and useful idea, very easy to realize, i guess?