game_menu entity#400
Conversation
de1fd8e to
bf325df
Compare
|
I've been told that |
bf325df to
2925fce
Compare
2925fce to
53c7c19
Compare
Following up from this: The invalid menu item was changed from In order to get around the aforementioned plugin incompatibility, I made the paint code differentiate between them in a way that allows their IDs to remain the same. If the item ID is I am aware that this is a bit of a hack and only differentiates them implicitly. If the title happens to contain "0." at the start, then it will be considered a menu item, although this simply makes it use the smaller font and has no other negative effects. Since there is already an explicit 10th option that corresponds to "0.", I don't expect this to be a significant problem. Perhaps there could be a more proper way to apply one font over the other in the future, although I don't see that being in the current scope of this feature. |
|
Using control characters (a la terminal escape codes) would be compatible with plugins (nobody would send non-printable characters) and open up the possibilities of any kind of customisation, not limited to text changes. For example it could be "\x01" to denote title case, "\x1BB;" for bold text, "\x1BCRRGGBB;" to colour, etc.. |
This PR adds a new entity called
game_menuwhich displays a custom dialog fromCHudMenu, which is normally used by multiplayer games to initiate voice commands.Example:
This PR also contains some changes to
CHudMenuwhich are associated with this entity.PR Checklist
developbranch OR targets another branch with a specific goal in mind