Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BibiCmoi

Pages: [1]
1
Scripting / Re: Height of a text to display description
« on: January 17, 2017, 05:17:09 AM »
Oh!! Thank you Liquid!

Thanks to the link you provide to the Arcadebliss' theme, I can see a property : "first_line_hint".
I tried to find some documentation, but failed, so I downloaded the sources of AM, and I found this :
Quote
// this is set to -1 when "no word wrapping" is set.
   // otherwise it is a value of 0+ and corresponds to the first line
   // of text being displayed in the control.  The user can change this
   // to control scrolling text where the text set into the control is
   // larger than the area available to display it.

I think it is possible to make something good with that.
I don't know how right now. I made some test and my text is scrollable but it is not really smooth (and I lost the beginning of my text).
I still need to work on it, but I am sure I am on the right way!

Thank you

2
Scripting / Re: Height of a text to display description
« on: January 17, 2017, 12:57:03 AM »
Hello liquid,

Thank you for your answer.

That's what I was afraid of :(
It is a pity that the height of a text is mandatory at creation. We shouldn't be obliged to enter this value since it's not necessarily known how much place the text will take (same for the width in some case)
I have already taken a look at the code in scrolling module and made some changes to meet my needs, but nothing that can help me in this particular case.

I will also look at this .dat and .ini history, because modifying the romlist.txt file is not very easy (I don't know why, when I modify my file, it adds me a "game" whose name is Title that comes from the First line which corresponds to the different fields)

Thank you again, and if an idea comes to you, don't hesitate to let me know.

3
Scripting / Height of a text to display description
« on: January 16, 2017, 06:52:55 AM »
Hello everybody,

I am new to AM, and I am trying to make a custom layout.
I use the ScrollingText module to display long titles horizontally and it works fine.
But now, I want to display long descriptions vertically, but I don't know how to find the true height of a text.

If the text is not enough long, I don't want the scroll to be active. But when the game has a big description, I want to activate the scroll, and resize the height of the object fe.Text to fit the description inside (otherwise, the text is not totally displayed). I tried to make a fe.Text with a height = height of the screen, but the scroll displays too much empty text (and it wouldn't work if the description is very very long)

Is there a way to do such a thing?

Subsidiary question : I put the description of the game in the filed "Extra" in the rom list. Is there a better solution?

Thank you

Pages: [1]