GUI for AI

GUI for AI

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
alik83
Posts: 82
Joined: 08 Sep 2004, 15:32

GUI for AI

Post by alik83 »

This is about having ability for AI (both group and global, as they can both be used as helper AIs) to add their own gui elements, and values of which the AI can access when player changes them. This could extend even more how a player controls his army through AI.
AF, I heard AI can add buttons to GUI, how do you do that, is it for both group and global AI, can you add toggle state buttons, can you use this idea to add additional gui elements?

You could probably code in the AI dll an entire giu on top of current gui similar to how Domipheus put a new CEGUI resourcebar on top of current gui but I'm not sure how would be the best way to implement it, I'm not sure if it's good to use external gui library in a dll AI library...
Any ideas on how additional gui elemnts for ai could be implemented?
(exept buttons I would need at least sliders, like the resourcebar)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

look at the groupAI colorblind updated in the svn.

It involves the GetPossible Commands call or w/e that functions called in IGroupAI
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Also combined with several additions I made to the AI interface dealing with cameras it would allow information displays and whatnot with GUI buttons etc by drawing them on the map with the lines
alik83
Posts: 82
Joined: 08 Sep 2004, 15:32

well

Post by alik83 »

well, if you drew them with lines, wouldn't this "gui" dissapear when you move the camera?
It could redraw itself in a new camera position, but that'd be kind of hackish and might slow down things...
And this getPossibleCommands thing is really usefull ;)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Possibly but your only drawing the information, the buttons are drawn by spring GUi code.

And I mean basic GUI using the line drawing functions in the callback, not the networked ones that where added.

Although could you do me a favour?

I want to knwo howto manipulate the itnerface to do three things but I've always be sideliend by other thigns.

Adding units to a group by GroupAI

Selecting units

Turning tracking on for a unit and turning it off too


I knwo with soem manipulation the first two cna be done, possibly using n#2 to achieve n# 1
Post Reply

Return to “AI”