Skip to content

refactor: clarify GameText color terminology - #378

Merged
DevD4v3 merged 1 commit into
mainfrom
refactor/clarify-game-text-color
Aug 9, 2026
Merged

DevD4v3 merged 1 commit into
mainfrom
refactor/clarify-game-text-color

Conversation

@DevD4v3

@DevD4v3 DevD4v3 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Motivation

The Team.GameText property did not clearly communicate what the value represents. The property stores an open.mp GameText text color, such as ~r~ or ~b~, rather than a GameText style.

This ambiguity was also reflected in the message resources, where GameText and GameTextStyle were used inconsistently for the same color-related concept.

The terminology should clearly distinguish the GameText text color from the GameText style used when displaying a GameText message.

Changes

  • Rename Team.GameText to Team.GameTextColor.
  • Add XML documentation referencing the open.mp GameText text colors documentation.
  • Rename the corresponding GameText message resource to GameTextColor.
  • Rename the GameTextStyle message resource to GameTextColor.
  • Update all usages to use the new GameTextColor terminology.

* Rename the Team.GameText property to GameTextColor to clarify that it stores an open.mp GameText text color.

* Update related message resources and usages to consistently use GameTextColor terminology, and document the supported text colors.
@DevD4v3
DevD4v3 merged commit f1a7937 into main Aug 9, 2026
4 checks passed
@DevD4v3
DevD4v3 deleted the refactor/clarify-game-text-color branch August 9, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant