feat(ui): redesign esx_multicharacter interface#1633
Closed
9zku wants to merge 8 commits intoesx-framework:devfrom
9zku:newUI
Closed
feat(ui): redesign esx_multicharacter interface#16339zku wants to merge 8 commits intoesx-framework:devfrom 9zku:newUI
9zku wants to merge 8 commits intoesx-framework:devfrom
9zku:newUI
Conversation
Contributor
|
Old PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This brings out a new, fresh UI, for esx_multicharacter
Motivation
This task was assigned to me as part of the effort to implement the provided design into functional code.
Implementation Details
The UI has been rebuilt to align with updated design standards, improving both usability and appearance. Compatibility with esx_multicharacter has been maintained throughout, as I've only edited the fontend/ui (Backend typo was here)
Usage Example
SendNUIMessage({ type = 'setVisible', visible = uiOpen }) -- Opens up the character UI
-- NUI callback to get the character info
RegisterNUICallback('getCharacters', function(data, cb)
-- TODO: Fetch character list from the server and return
cb({
characters = {} -- Populate this with real data
})
end)
-- Select a character
RegisterNUICallback('selectCharacter', function(data, cb)
-- TODO: Handle character selection logic
cb({})
end)
-- Play selected character
RegisterNUICallback('playCharacter', function(data, cb)
-- TODO: Handle character loading logic
cb({})
end)
-- Delete a character
RegisterNUICallback('deleteCharacter', function(data, cb)
-- TODO: Handle character deletion logic
cb({})
end)
-- Create a new character
RegisterNUICallback('createCharacter', function(data, cb)
-- TODO: Handle character creation logic
cb({})
end)
PR Checklist