FOnline Development > Questions and Answers

Dialog

(1/2) > >>

KingR:
Hi everyone!

I put back the original dialog window, and it works fine.

Only, I have two things I would like to do:

- First, and this is the most important thing, I would like center the screen on the player when the dialog window is called, do you have any ideas to do that?

- And optionally,, I would like to be able to display an image in addition to the dialog window, which would depend on the npc. In fact I was thinking of putting a still image of the "talking head", while waiting to be able to put the original animations. (big work later on that). I noticed that there was an "avatar" field in dialogEditor, but it doesn't work.

Thanks for help !

Trapper Luke:
Adding avatars is possible, but doesn't work just like that. You have to go into coding, this way https://github.com/TheGreatDoc/fode/blob/master/Server/scripts/client_screen_dialog.fos

KingR:
Ok thank you very much. I will try this

KingR:
I found an alternative solution. With this:

void _DialogImage(int x, int y, int imageId, string@, array<int>@)

It gives a frozen image, but it's already very good

Thanks to all

Thatgun:
i do the same in client_io.fos
put png file in client folder





Navigation

[0] Message Index

[#] Next page

Go to full version