Sandra et Yannig a écrit : > On Friday 14 December 2007 22:02:43 Matthieu Fertré wrote: >> Julien PUYDT a écrit : >>> Matthieu Fertré a écrit : >>>> Integrate the manual in the game menu, which is >>>> probably the best, is really difficult :-/ >>> Let's try to be more specific and discuss the issue a little. >>> >>> Adding a button to the main screen isn't that difficult. >>> >>> But displaying a nice manual is harder : >>> - either we could show a single page with a scrolling feature ; >>> - or we could a new button menu page, where each button leads to a >>> single page. >> Here are the issues I have in mind : >> - no support for different text formats (italic, bold) in one text. > > This kind of things can be easily done using sdl-pango (see > https://gna.org/task/?5485, and a little screenshot : > https://gna.org/task/download.php?file_id=3000).
Doesn't that make one more dep? >> - text is handled as surface, thus, it's not so easy to manage scrolling >> even if it's possible. We can imagine to scroll paragraph by paragraph. >> - probably needs to read text from file to manage easily language >> translations. However, in that case, how to manage picture integration >> in the manual. >> - need a motivated coder that is not working on something else ;) > > You are right ... this kind of work gone to be a huge effort. But what about > using directly a web browser ? Would it be possible to build a (big) image of the text, then use the code which is used to scroll on a map for that too? It could become interesting if sdl-pango has an api like : image = sdl_pango (text_with_formatting, screen_width); (where the height will be determined by making the text flow) That would leave open the question of embedding the images within the text. Snark _______________________________________________ Wormux-dev mailing list Wormux-dev@gna.org https://mail.gna.org/listinfo/wormux-dev