home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Multiple Instances of GUIAnimation
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mattjcurry" data-source="post: 845299" data-attributes="member: 116338"><p>Hey guys,</p><p> </p><p>I am wondering if there is a best practice for when you want to display an image in a GUI control multiple times.</p><p> </p><p>I am working on a feature that will fill in the space between the jump points and the chapters with a different texture. As you can guess, the number of jumps is dynamic.</p><p> </p><p>In looking at the GUITVProgressControl, I can see where the fills are declared up top. However, all of the fills that are declared here occur only once. I would like to use the same image over and over again for each jump point.</p><p> </p><p>Should I have one private property as my template then create a local ArrayList with GuiAnimation's in it for the jump points? That seems like it would probably be OK, but I would like it to be as efficient as possible, and would like to avoid any chance at creating memory leaks.</p><p> </p><p>I hope that I am clear on my question. Thanks in advance.</p><p> </p><p>Thanks,</p><p>Matt</p></blockquote><p></p>
[QUOTE="mattjcurry, post: 845299, member: 116338"] Hey guys, I am wondering if there is a best practice for when you want to display an image in a GUI control multiple times. I am working on a feature that will fill in the space between the jump points and the chapters with a different texture. As you can guess, the number of jumps is dynamic. In looking at the GUITVProgressControl, I can see where the fills are declared up top. However, all of the fills that are declared here occur only once. I would like to use the same image over and over again for each jump point. Should I have one private property as my template then create a local ArrayList with GuiAnimation's in it for the jump points? That seems like it would probably be OK, but I would like it to be as efficient as possible, and would like to avoid any chance at creating memory leaks. I hope that I am clear on my question. Thanks in advance. Thanks, Matt [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Multiple Instances of GUIAnimation
Contact us
RSS
Top
Bottom