Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allow format parameters for AddMenuItem and InsertMenuItem #2453

Copy link
Copy link
@luki1412

Description

@luki1412
Issue body actions

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.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.