Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Pegasus Contact Icon #8

Open
qiangqiang101 opened this issue Jan 31, 2016 · 10 comments
Open

Missing Pegasus Contact Icon #8

qiangqiang101 opened this issue Jan 31, 2016 · 10 comments

Comments

@qiangqiang101
Copy link
Contributor

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

@qiangqiang101
Copy link
Contributor Author

and how to get the index of the contactlist?

@CamxxCore
Copy link
Owner

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
Copy link
Owner

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

@qiangqiang101
Copy link
Contributor Author

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

@qiangqiang101
Copy link
Contributor Author

@CamxxCore can i change the font?

@CamxxCore
Copy link
Owner

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
Copy link
Contributor Author

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

@CamxxCore
Copy link
Owner

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

@CamxxCore
Copy link
Owner

no spaces.. github just tries to format it

@Michael21107
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants