Skip to content

Allow format parameters for AddMenuItem and InsertMenuItem #2453

Description

@luki1412

Help us help you

Is your feature request related to a problem? Please describe.

Currently, if you want to use AddMenuItem or InsertMenuItem with format parameters you have to use Format/FormatEx first. Since menus are commonly displayed in different languages and are also used to display custom values and lists, formatting being built into the functions seems like a great feature. There is a sourcemod plugin that creates a custom function just avoid formatting everything manually before using AddMenuItem - AddTranslatedMenuItem in funcommands.sp.

Describe the solution you'd like

Option A - update current functions and formatting support. This shouldnt break any code as formatting parameters arent required
Option B - create secondary functions with formatting support

Describe alternatives you've considered

You have to manually format before each AddMenuItem/InsertMenuItem or create custom function for it.

Additional context

Functions are located in menus.inc
SetTitle for the menus already includes formatting support.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions