manups4e / ScaleformUI

ScaleformUI is a GTA menu styled API made with custom Scaleforms to be lighter, faster and visually better
Other
141 stars 49 forks source link

On Card Pressed Handler #164

Closed Morji789 closed 1 year ago

Morji789 commented 1 year ago

An handler when card pressed, the same as OnButtonPressed

example:

ScaleformUI.Scaleforms.JobMissionSelector.Cards[1].OnCardPressed = function()
     print("Card Pressed")
end
manups4e commented 1 year ago

this is awesome! Could you add the C# event too? if not i'll merge and do it myself.. i'd love to have all in 1 commit

Morji789 commented 1 year ago

I'm not strong at C#, i would rather you doing it

manups4e commented 1 year ago

a good opportunity to start learning the language of the Masters u.u anyway don't worry i'll handle it

manups4e commented 1 year ago

also.. i just noticed you handled JobSelectionCard.. what about the 3 buttons? EDIT: nvm.. buttons already have the event.. it's only the card missing it.

Morji789 commented 1 year ago

a good opportunity to start learning the language of the Masters u.u anyway don't worry i'll handle it

I will don't worry

manups4e commented 1 year ago

also i would suggest testing your code before doing a pull request.. i didn't have time to check.. and your code resulted in an error... image by missing a comma.