aliens

Author Topic: MAPVIEW upgrade  (Read 96614 times)

Offline kevL

  • Colonel
  • ****
  • Posts: 308
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #495 on: February 20, 2020, 03:31:40 am »
( this could be interesting )

Offline hellrazor

  • Commander
  • *****
  • Posts: 2243
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: MAPVIEW upgrade
« Reply #496 on: February 20, 2020, 03:46:30 am »
( this could be interesting )

Well!!! See for yourself:

The Routeview window seems strange, maybe not drawing correctly?

Operating system Ubuntu 14.04 here on my Laptop. Will also work on the Desktop, compilation there worked ;)
And thanks so much for making it look really good and useable. Looking forward to spam MAPS!!
« Last Edit: February 20, 2020, 03:50:49 am by hellrazor »

Offline kevL

  • Colonel
  • ****
  • Posts: 308
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #497 on: February 20, 2020, 04:23:20 am »
holy serious RouteView shenanigans batman!

good job on the build, though. :)


here is the core function that draws the gridlines in RouteView ->

MapView/Forms/Observers/RouteView/RoutePanel.cs
DrawGridLines()

if you want to play with it idk.


note: HalfWidth and HalfHeight are (non-trivially) variables used to translate between cartesian and isometric coordinates ... but offhand i don't have a clue what's going on




EDIT: It might be the PixelOffsetMode on line #138

Code: [Select]
    _graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;

ie, try a different mode ... like none or half ...
« Last Edit: February 20, 2020, 04:46:43 am by kevL »

Offline hellrazor

  • Commander
  • *****
  • Posts: 2243
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: MAPVIEW upgrade
« Reply #498 on: February 20, 2020, 04:49:36 am »
holy serious RouteView shenanigans batman!

good job on the build, though. :)


here is the core function that draws the gridlines in RouteView ->

MapView/Forms/Observers/RouteView/RoutePanel.cs
DrawGridLines()

if you want to play with it idk.


note: HalfWidth and HalfHeight are (non-trivially) variables used to translate between cartesian and isometric coordinates ... but offhand i don't have a clue what's going on




EDIT: It might be the PixelOffsetMode on line #138

Code: [Select]
    _graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;

ie, try a different mode ... like none or half ...

I think it has to do with the size of the window Routeview is drawn in.
I will have to run some tests while actually making some maps.
then i will see what issues come up.

In any case dude!!
You made me extremly happyQ!!!!!

Offline kevL

  • Colonel
  • ****
  • Posts: 308
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #499 on: February 21, 2020, 12:21:18 am »

Offline kevL

  • Colonel
  • ****
  • Posts: 308
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #500 on: February 22, 2020, 01:04:55 pm »
2020 feb 22

https://github.com/kevL/OpenXCOM.Tools/blob/master/Distribution/README.md

have at it. Let me know if i goofed ...

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 9335
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: MAPVIEW upgrade
« Reply #501 on: February 23, 2020, 02:47:20 pm »
The coordinates are now displayed starting with 0; thank you!

Is there anything else new to check?

Offline kevL

  • Colonel
  • ****
  • Posts: 308
  • pitchforks and torches
    • View Profile
Re: MAPVIEW upgrade
« Reply #502 on: February 23, 2020, 03:25:17 pm »
MainView|Edit|Options|Global|IgnoreRecordsExceeded = true

(default is false, you'll want it true i believe)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 9335
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: MAPVIEW upgrade
« Reply #503 on: February 23, 2020, 06:44:27 pm »
Ah, right. Works perfectly. Thanks again!