[MOD] Tactical Map
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Re: [MOD] Tactical Map
Thank you!!!
I discovered recently your mod and it is so good!
So much ease of use and so less clicking.
Your mod should be integrated into the vanilla game by default.
Great work!
I discovered recently your mod and it is so good!
So much ease of use and so less clicking.
Your mod should be integrated into the vanilla game by default.
Great work!
Re: [MOD] Tactical Map
Hey , I love what you have done with your tactical map mod!
I play the game with a PS4 controler, I found I could use your mod with it just fine, except for one thing: when I tab to the commands column, I just can scroll up and down in the commands columns but not to the left or right side.
Meaning that without mouse Im just able to choose the first command in each column row.
How or where can I add left or right scrolling in the rows, fe. by using the cursor keys ?
I play the game with a PS4 controler, I found I could use your mod with it just fine, except for one thing: when I tab to the commands column, I just can scroll up and down in the commands columns but not to the left or right side.
Meaning that without mouse Im just able to choose the first command in each column row.
How or where can I add left or right scrolling in the rows, fe. by using the cursor keys ?
- MegaJohnny
- Posts: 2197
- Joined: Wed, 4. Jun 08, 22:30
Re: [MOD] Tactical Map
Hey, thank you!barra wrote: ↑Mon, 12. Apr 21, 15:30Hey , I love what you have done with your tactical map mod!
I play the game with a PS4 controler, I found I could use your mod with it just fine, except for one thing: when I tab to the commands column, I just can scroll up and down in the commands columns but not to the left or right side.
Meaning that without mouse Im just able to choose the first command in each column row.
How or where can I add left or right scrolling in the rows, fe. by using the cursor keys ?
Unfortunately I really neglected to test the mod with gamepad whatsoever, so I don't have a good handle on what works and what doesn't. I only have an XBox controller, but I'll try to reproduce it tonight.
Re: [MOD] Tactical Map
thank you for your answer. To avoid any confusion: Its not about a game controler itself but about hotkeys, which also could be keyboard inputs such as arrow left or arrow right, which will allow to navigate the command columns to the left and right.
Imagine you are playing the game with JUST a keyboard, now you open the map, use the TAB key to "jump" down to the commands section, when at the commands section you will unfortunately realize you can just scroll the rows up and down but not to left and right. Effectivly preventing you to choose the second or third command in each row. So basically you can just choose the first command for each row, aslong as there is no key assigned for left right toggle.
Imagine you are playing the game with JUST a keyboard, now you open the map, use the TAB key to "jump" down to the commands section, when at the commands section you will unfortunately realize you can just scroll the rows up and down but not to left and right. Effectivly preventing you to choose the second or third command in each row. So basically you can just choose the first command for each row, aslong as there is no key assigned for left right toggle.
Spoiler
Show
- MegaJohnny
- Posts: 2197
- Joined: Wed, 4. Jun 08, 22:30
Re: [MOD] Tactical Map
Ah, cheers for the clarification.
I can reproduce it on my end. It also looks like, with a keyboard/controller, you're stuck on the rightmost of the "4 action buttons" in the corner.
I'm afraid I have no idea what the issue is yet but I'll keep trying over the next few days and keep you posted.
I can reproduce it on my end. It also looks like, with a keyboard/controller, you're stuck on the rightmost of the "4 action buttons" in the corner.
I'm afraid I have no idea what the issue is yet but I'll keep trying over the next few days and keep you posted.
Re: [MOD] Tactical Map
Thank you, I really do appreciate your efforts!
I have an idea whats causing it, but from the perspective of a non pro.
It seems the command rows are not properly "formatted", the fact that the whole row is marked yellow instead of the actual marked button in a row, indicates that the whole row is beeing seen by the game as one row, not as seperated buttons. (Do you have coded the mouse clicks by using coordinates?!)
I would suspect that you dont have coded the "hotkeys" for up and down, but/because they are the standard behaviour for scrolling in a list, so IF the rows were properly "formatted", then the left and right scrolling would also work without the need to define hotkeys for it directly in your mod.
A quick and dirty workaround, would be to assign hotkeys for when at the command rows to "jump" to each/the next coordinate, but i could imagine this would cause trouble for the different screen resolutions that could be used...
If needed you might take a look in the gamefiles, for menus were a horizontal switching of buttons is supported, as for instance in the wares purchase window, with its OK and CANCEL buttons?!
Again thank you for your efforts, Im aware of the fact, that you coded your mod with using a mouse in mind and that the game is rather oooold, but I still like it more then X4 which I also own.
To fix the issue would be helpfull especially when using a controler and therefor givig your really nice mod an added "value"!
I would even donate you a coffee, not as payment (which i probably could not afford) but to show a gesture of good will
I have an idea whats causing it, but from the perspective of a non pro.
It seems the command rows are not properly "formatted", the fact that the whole row is marked yellow instead of the actual marked button in a row, indicates that the whole row is beeing seen by the game as one row, not as seperated buttons. (Do you have coded the mouse clicks by using coordinates?!)
I would suspect that you dont have coded the "hotkeys" for up and down, but/because they are the standard behaviour for scrolling in a list, so IF the rows were properly "formatted", then the left and right scrolling would also work without the need to define hotkeys for it directly in your mod.
A quick and dirty workaround, would be to assign hotkeys for when at the command rows to "jump" to each/the next coordinate, but i could imagine this would cause trouble for the different screen resolutions that could be used...
If needed you might take a look in the gamefiles, for menus were a horizontal switching of buttons is supported, as for instance in the wares purchase window, with its OK and CANCEL buttons?!
Again thank you for your efforts, Im aware of the fact, that you coded your mod with using a mouse in mind and that the game is rather oooold, but I still like it more then X4 which I also own.
To fix the issue would be helpfull especially when using a controler and therefor givig your really nice mod an added "value"!
I would even donate you a coffee, not as payment (which i probably could not afford) but to show a gesture of good will
Re: [MOD] Tactical Map
I just want to let you know, that I found a quick and dirty workaround
I set " menu.numCommandButtonCols " from 3 to 1
changed "local numCommandButtonRows" from 10 to 30
and "local commandButtonWidth = usableWidth / menu.numCommandButtonCols" to "local commandButtonWidth = usableWidth / 3"
this way the grid stays, but only the first button for each row is filled with commands.
Its a bit ugly now but for a controller setup its even easier bcause i just need to scroll down with no need to "scroll" sidewards!
But I would be gratefull, if you could give me advice how to set the grid atall to display just 1 button per row but therefor maximising this one button per row to the whole width of each row?!
I set " menu.numCommandButtonCols " from 3 to 1
changed "local numCommandButtonRows" from 10 to 30
and "local commandButtonWidth = usableWidth / menu.numCommandButtonCols" to "local commandButtonWidth = usableWidth / 3"
this way the grid stays, but only the first button for each row is filled with commands.
Its a bit ugly now but for a controller setup its even easier bcause i just need to scroll down with no need to "scroll" sidewards!
Spoiler
Show
changes in menu_mej_tacticalmap.lua
from:
to:
from:
Code: Select all
menu.numCommandButtonCols = 3
local numCommandButtonRows = 10
local usableWidth = GetUsableTableWidth(Helper.standardSizeX, menu.selectTableOffsetX, 3, true)
local totalCommandButtonWidth = Helper.standardSizeX - menu.selectTableOffsetX
local commandButtonWidth = usableWidth / menu.numCommandButtonCols
menu.commandButtonWidth = commandButtonWidth
Code: Select all
menu.numCommandButtonCols = 1
local numCommandButtonRows = 30
local usableWidth = GetUsableTableWidth(Helper.standardSizeX, menu.selectTableOffsetX, 3, true)
local totalCommandButtonWidth = Helper.standardSizeX - menu.selectTableOffsetX
local commandButtonWidth = usableWidth / 3 --menu.numCommandButtonCols
menu.commandButtonWidth = commandButtonWidth
But I would be gratefull, if you could give me advice how to set the grid atall to display just 1 button per row but therefor maximising this one button per row to the whole width of each row?!