Jump to content
Sign in to follow this  
MaxPower44

Slider like azimut

Recommended Posts

How can i make a control like the azimut ine the editor ?

I suppose that it is a slider control but how transforme it like a circle ?

Share this post


Link to post
Share on other sites

In the mission editor when you go to place the unit, see that big circle that says "Azimut:"

Move the arrow around or click on the number next to it to change it.

Share this post


Link to post
Share on other sites

Excuse me, I don't explain me.

When i create a dialog, i would like to create a slider like the Azimut in the editor.

How can i do it ?

Ask me if you don't understand my question (I'm french, sorry)

Share this post


Link to post
Share on other sites

if your sliders IDC=104 then

Use sliderSetRange [104,0,360]

then loop

man setdir sliderposition 104

or something like that

I hope thats right, it was a while since I used it.

Share this post


Link to post
Share on other sites

InqWiper, I just want to create a slider which look like the azimut (see in unit editor).

I know how to use a slider

Bullz_eye_on_my_back, never mind, you're the first who have understood my question....

Share this post


Link to post
Share on other sites

Perhaps you can explain Bullz. You want to create an Azimut like in the mission editor. But for what Max?

Share this post


Link to post
Share on other sites

I would like to create a dialog that allow the player to order others escouades to recon in a direction.

I don't want use the onmapclick because the map is not available in the beginning of my mission.

Then I have create a combobox with the list of direction (N,NE,E,SE,S,SW,W,NW) but it will be greater if i can replace this combo by a slider which looks like azimut

Share this post


Link to post
Share on other sites

Don't need a slider to tell them where to go. Can't you just choose them then click off into the distance?

Share this post


Link to post
Share on other sites

I know that I can make this with an other solution, but I mean that it was most fun with a circle-slider

Share this post


Link to post
Share on other sites

yes....it would look a lot better, it would be more effecient with space on the screen, and it would be more precise than pointing and clicking

Knowing how to create circular type of slider would really help me too with arranging my dialog box for controling my UAV

I'm glad your asking this question...maybe someone will have the answer

::crossing fingers:: biggrin.gif

Share this post


Link to post
Share on other sites

As I saw it in BIS resource.bin, the azimut is just a picture, where you can click on. When you make createDialog with any of the original dialogs with the azimut control, you have a white box in the place, where the control is.

So short answer: Not possible.

Share this post


Link to post
Share on other sites

I don't know why this old thread just popped into my head, but I never got back with Maxpower about this subject.....

It could be possible to do this, but it wouldn't be a slider function in coding persay....

You could creat a back ground picture and have it displayed once the dialog was created. Then you could create several transperant pictures too (except for the arrow showing the direction of the azmith)- it could be 360 individual pictures or what ever increments you would like to use for displaying the heading direction on the azmith... Then create a display box or editing box in the center of the azmith for showing the value that you selected (or entered by numberpad).....

A way to select it on the picture would be to make very small action boxes that are transparent in color and place them around the circumfrance of the circle or azmith....

Then create an action button bellow the display..to execute the command you want...

In the script.. First on the creation of the dialog a section would be needed to read the players heading and send it to the display box and display the proper picture of the arrow.

Second there would be one that would be reading the action buttons selected and displaying it to the display box.

Third, would be the script called up when hitting the "execute" button.... It would read the display box and execute what you wanted to do with the direction you selected.

All in all ...I think it could be done, but it would take a lot of work to do so! biggrin.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×