CamxxCore / iFruitAddon

GTA V ScriptHookVDotNet extension allowing customization of the in- game mobile phone
MIT License
20 stars 10 forks source link

Missing Pegasus Contact Icon #8

Open qiangqiang101 opened 8 years ago

qiangqiang101 commented 8 years ago

I'm adding Pegasus into my mod SPA, but i can't seems to find the icon for it.

qiangqiang101 commented 8 years ago

and how to get the index of the contactlist?

CamxxCore commented 8 years ago

I guess I missed that one but you could use it like this: contact.Icon = new ContactIcon("char_pegasus_delivery");

The method to get the index is set as internal but you could build the source with it as public and use it like this: ifruit.Contacts.GetSelectedIndex(ifruit.Handle); (or just c/p the function and use it in your own project: https://github.com/CamxxCore/iFruitAddon/blob/master/iFruitContactCollection.cs#L79)

CamxxCore commented 8 years ago

Btw you can find most icons with OpenIV under x64b.rpf\data\cdimages\scaleform_generic.rpf.

qiangqiang101 commented 8 years ago

Thanks but I mean get the last index of the phone contact, so it won't overlay the other contacts :+1:

qiangqiang101 commented 8 years ago

@CamxxCore can i change the font?

CamxxCore commented 8 years ago

No way to get the last index that I know of. Maybe if we could read a stat value related to the players progress. And we can't change the font or color. I think it is possible with other scaleform movies but not this one, since it instantiates a movie object for every contact. In other places you can just use html tags to change the color and font.

qiangqiang101 commented 8 years ago

@CamxxCore "In other places you can just use html tags to change the color and font." How can I do that?

CamxxCore commented 8 years ago

< font color=\'#ff00ff\' >hi< /font >

CamxxCore commented 8 years ago

no spaces.. github just tries to format it

Michael21107 commented 6 months ago

not sure how relevant it is now, but if u use the code style it shouldn't format it (great for sharing code)😂