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)
GUI for AI
Moderators: hoijui, Moderators
well
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
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

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
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