Releases: Open-GTO/zlang
Releases · Open-GTO/zlang
zlang v3.6.0
- Added new functions:
Lang_TextDrawCreate,Lang_TextDrawSetStringForPlayer(open.mp only),Lang_SendTextToPlayersEx(#17). - Optimized
Lang_SendTextToAll,Lang_SendTextToPlayers, andLang_GameTextForAll(#16).
Thanks to @NikitaFoxze
zlang v3.5.2
- Fixed a regression in variable processing introduced in v3.5.0.
zlang v3.5.1
- Changed the default value of
MAX_LANG_VALUE_STRINGto 288. - Fixed default values for
MAX_LANG_FORMAT_STRING,MAX_LANG_MVALUE_STRINGandMAX_LANG_MFORMAT_STRING.
zlang v3.5.0
- Improved performance of
Lang_SendTexton the open.mp platform by @NikitaFoxze (#12). - Added SVar mode as an alternative to GVar mode by @NikitaFoxze (#13).
zlang v3.4.1
- Fix for unloading lang files (#8#issuecomment-2987823471)
zlang v3.4.0
- Added support for dynamic variables
Example of usage:
HELLO_MSG = Hello
COLOR_RED = {FF0000}
COLOR_GREEN = {00FF00}
COLOR_WHITE = {FFFFFF}
NAME_ONE = \v(COLOR_RED)Alex\v(COLOR_WHITE)
NAME_TWO = \v(COLOR_GREEN)Peter\v(COLOR_WHITE)
MESSAGE_HELLO = \v(COLOR_WHITE)\v(HELLO_MSG) \v(NAME_ONE) and \v(NAME_TWO)
dynamic_var_test = Hello, \v(%s) <- this is dynamic variable// initialize dynamic variables
#define ENABLE_LANG_DYNAMIC_VARS
#include <zlang>
public OnGameModeInit()
{
// ...init zlang...
Lang_printf("dynamic_var_test", "MESSAGE_HELLO");
// result:
// Hello, {FFFFFF}Hello {FF0000}Alex{FFFFFF} and {00FF00}Peter{FFFFFF} <- this is dynamic variable
return 1;
}zlang v3.3.3
- #6: Add
Lang_CreatePlayer3DTextLabel,Lang_UpdatePlayer3DTextLabelfunctions - Fix tests
zlang v3.3.2
- Fix const-correctness issues
- Add tests
zlang v3.3.1
zlang v3.3.0
- #2: Variables supports
- Fix separator getting on keys with spaces
- Add functions for PlayerTextDraw
Variables supports
HELLO_MSG = Hello
COLOR_RED = {FF0000}
COLOR_GREEN = {00FF00}
COLOR_WHITE = {FFFFFF}
NAME_ONE = \v(COLOR_RED)Alex\v(COLOR_WHITE)
NAME_TWO = \v(COLOR_GREEN)Peter\v(COLOR_WHITE)
MESSAGE_HELLO = \v(COLOR_WHITE)\v(HELLO_MSG) \v(NAME_ONE) and \v(NAME_TWO)