Rahazan/GConsole — pull request #10 by baguwka (2014-10-16 12:26:31+00:00)
Title: DFGUI support, GetSuggestionItems with detailed data for easy use of suggestions in GUI

Was working on https://github.com/baguwka/GConsoleDFGUI and noticed that GetSuggestions returns just collection of strings with colored names and descriptions. So it hard to use it in such case like OnSuggestionClick, because console input fills with something like [color #00CCCC]dm_graphics[/color], but needs only dm_graphics to type.

So here struct GConsoleItem. GConsoleItem.Raw is raw text that suggestion suggest. GConsoleItem.Colored - colored text from suggestion, to show in GUI, GConsoleItem.Description - description.

Also i added enum ColorCodes with different GUI's, but i think its not good at all, i think may be color codes lies on GUI frontend, because here may be more frontends but core GConsole do not need to know each of color codes they use. Just oop interfaces or something like that, i can make it if needed, with backwards compatibility.