OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SelectThis on 24 Jan 2003, 03:57:14
-
Are there plans to introduce a more graphical interface for the Ce2 engine?
More specifially for the group/team selection process.
As it is now most of the time is spent navigating the radio commands to select the unit that you wish to give commands to. With the introduction of the singleclick functionality the engine seems to have lost the ability to directly select the unit from the map (maybe I missed something here! ;)).
SelectThis
-
Are there plans to introduce a more graphical interface for the Ce2 engine?
More specifially for the group/team selection process.
As it is now most of the time is spent navigating the radio commands to select the unit that you wish to give commands to. With the introduction of the singleclick functionality the engine seems to have lost the ability to directly select the unit from the map (maybe I missed something here! ;)).
SelectThis
I think a graphical interface would be very good, but ive heard from TheCaptain who(as you know ST) making a big mission using a graphical interface (looks a lot like X-COM), and he cant use the map, so that means no clicking at all, so from what ive heard its not possible...i hope it is though, oh and you need to go back to the main menu to select a squad from the map, in groups it tries to make a new waypoint (although this is from Bagels superb TOD mission)
-
Well, I know the exact story of what happened with TheCaptain, as I was right there with him.
If you use forceMap to bring the map up (which you have to do, if you want a dialog to work in conjunction with the map) you cannot use onMapSingleClick. It doesn't work with forceMap.
And there's no way of detecting if the player opens the map (presses the 'M' key), so we can't do a check if the map is up and create the dialog after that.
I.E shownMap doesn't tell you if the player has the map up or not, it just checks if he has the possibility of opening it in the mission (as in "It's in the mission".)
I'm sure there are work-arounds though, our work-around was to simply ignore the onMapSingleClick approach, and we did it through the use of menus (you can access them at the same time pretty much, nice list of the platoons with information such as name, number of men, type of platoon (recon, assault a.s.o), home-base, current position blah blah).
But, there's no smooth way of incorporating onMapSingleClick into dialogs atm.
-
@ KTottE,
just one question:
I'm at work right now, so i can't test this now.
There's a command in the official comref:
shownMap
Type of returned value:
Boolean
Description:
Check if player has map enabled.
I have to say, that i've never been using this command,
but from reading it i always thought that it's there to check,
wether a player displays his map or not.
OK, i also think that you've been looking into comref aswell
dozens of times, but i thought it's worth a try to show ya
the command (sometimes we're reading and do not take
notice of some stuff).
:edit - after reading my reply, i noticed that it wasn't really
a question, what i was posting here ;D ;)
~S~ CD
-
We have tried that, and it doesn't work.
It's like this.
showMap true/false
that tells OFP whether the player will be able to open the map or not, I.E sets the state of availability.
shownMap returns true if showMap true, false if showMap false
I.E it detects the state of availability.
I was also under the impression that shownMap is "does the player have map up or not", but it's "can the player have map up or not"
UGH!
-
Are there plans to introduce a more graphical interface for the Ce2 engine?
More specifially for the group/team selection process.
As it is now most of the time is spent navigating the radio commands to select the unit that you wish to give commands to. With the introduction of the singleclick functionality the engine seems to have lost the ability to directly select the unit from the map (maybe I missed something here! ).
SelectThis
Actually, I extended the ability to do this:
If you are in the radio main menu (and in most other menus), you should be able to select a group simply by clicking it (this then shows the hint info), when you click it again, it gives you the group control menu.
In all menus, if you ALT-click a group it takes you directly to the group control menu.
If this doesnÂ't work for you, there maybe a problem with the mission (or are you using any other script with the onMapSingleClick command?).
The interface of the CE2 will be reworked over time, away from the radio and towards dialogs (within the limits you all mentioned above).
i hope it is though, oh and you need to go back to the main menu to select a squad from the map, in groups it tries to make a new waypoint (although this is from Bagels superb TOD mission)
Here the same as above applies: If you want to select another group (open its control menu), ALT-click it