warxander / warmenu

FiveM Lua Menu Framework
https://forum.cfx.re/t/free-warmenu-lua-menu-framework
ISC License
44 stars 31 forks source link

fix: windowTitleEntry not displaying #17

Closed Rasinzz closed 2 years ago

Rasinzz commented 2 years ago

Before if you entered a custom windowTitleEntry for WarMenu.InputButton, the title would be blank rather than the custom entry. That is fixed in this commit.

Before: https://i.imgur.com/kBm2POR.png

After: https://i.imgur.com/1K3A6ih.png

warxander commented 2 years ago

Looks like you were confused about entries and texts. FMMC_MPM_NA is built-in game text entry, you shoudn't override it.

Instead, make your own entry and use it like this:

AddTextEntry('MY_ENTRY', 'My text')
WarMenu.InputButton('Button text', 'MY_ENTRY', ...)
Rasinzz commented 2 years ago

Good to know, thanks