In data-gpp1.pk3/ui there is a file called ingame_game.menu. This file (naturally) deals with the how the ingame "game" menu is displayed. This includes stuff like votes. Anyways I'm trying to make a mod that adds reasons to votes (like lakitu's qvm) and has a GUI component in the menu. Good news: I've got that working. Bad news: I'm out of space in the menu, and the nice math they've done in there makes it very hard to get some extra room to make space for it. Currently it just kinda writes over the other text the menu and that is *ugly*.
Any ideas?
Here is the diff for ingame_game.menu. As you can see the only thing that I've done on the GUI side is add a textbox (and even that took me embarassingly long).
217a218
> show reasonfield;
239a241
> show reasonfield;
243a246,266
> itemDef
> {
> name reasonfield
> group gameGrp
> type ITEM_TYPE_EDITFIELD
> style WINDOW_STYLE_EMPTY
> text "Reason:"
> cvar "ui_reason"
> maxChars 50
> rect (PBUTT_X-30) (PBUTT_Y+PBUTT_H) 100 PBUTT_H
> textalign ALIGN_LEFT
> textvalign VALIGN_CENTER
> textscale .25
> outlinecolor .2 .2 .2 .5
> backcolor 0 0 0 0
> forecolor 1 1 1 1
> border WINDOW_BORDER_NONE
> bordercolor 0 0 0 0
> visible MENU_FALSE
> }
>
If you would like a diff (from svn r2015) for the mod source to see how it will function, in addition to the small GUI addition, ask.