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
Improvement Suggestions
suggestion and solution for filmstrip view
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="nickola" data-source="post: 250592" data-attributes="member: 66317"><p>suggestion for filmstrip view </p><p></p><p>--------------------------------------------------------------------------------</p><p></p><p>How to make selected thumb fixed in Filmstrip view?</p><p></p><p>Solution tested :</p><p></p><p>Add <scrollOffset>1</scrollOffset> on skin xml files and make this change on GUIFilmstripControl.cs</p><p></p><p>Add-------------------------------------------------------------------------------------------------</p><p></p><p> [XMLSkinElement("scrollOffset")] protected int _scrollStartOffset = 1;</p><p></p><p>Modify-------------------------------------------------------------------------------------------------</p><p></p><p> void OnRight()</p><p> {</p><p> Action action = new Action();</p><p> action.wID = Action.ActionType.ACTION_MOVE_RIGHT;</p><p> if (_listType == GUIListControl.ListType.CONTROL_LIST)</p><p> {</p><p> if (_scrollingRight)</p><p> {</p><p> _scrollingRight = false;</p><p> _offset++;</p><p> int iPage = _offset / (_columns);</p><p> if ((_offset % (_columns)) != 0) iPage++;</p><p> if (_upDownControl != null) _upDownControl.Value = iPage + 1;</p><p> }</p><p></p><p> if (_cursorX + 1 + _scrollStartOffset == _columns)</p><p> {</p><p> _offset++;</p><p> if (!ValidItem(_cursorX))</p><p> {</p><p> _offset--;</p><p> }</p><p> else if ((_scrollStartOffset !=0) && (!ValidItem(_cursorX + _scrollStartOffset)))</p><p> {</p><p> {</p><p> _offset--;</p><p> _cursorX++;</p><p> }</p><p> OnSelectionChanged();</p><p> }</p><p> else</p><p> {</p><p> _offset--;</p><p> _scrollCounter = _itemWidth;</p><p> _scrollingRight = true;</p><p> }</p><p></p><p> OnSelectionChanged();</p><p> return;</p><p> }</p><p> else</p><p> {</p><p> if (ValidItem(_cursorX + 1))</p><p> {</p><p> _cursorX++;</p><p> }</p><p> OnSelectionChanged();</p><p> }</p><p> }</p><p> else if (_upDownControl != null)</p><p> {</p><p> if (_upDownControl.SelectedButton == GUISpinControl.SpinSelect.SPIN_BUTTON_UP)</p><p> {</p><p> _upDownControl.Focus = false;</p><p> _listType = GUIListControl.ListType.CONTROL_LIST;</p><p> this.Focus = true;</p><p> }</p><p> else</p><p> {</p><p> _upDownControl.OnAction(action);</p><p> if (!_upDownControl.Focus)</p><p> {</p><p> base.OnAction(action);</p><p> }</p><p> }</p><p> OnSelectionChanged();</p><p> }</p><p> }</p><p></p><p>Modify-------------------------------------------------------------------------------------------------</p><p></p><p> void OnLeft()</p><p> {</p><p> Action action = new Action();</p><p> action.wID = Action.ActionType.ACTION_MOVE_LEFT;</p><p> if (_listType == GUIListControl.ListType.CONTROL_LIST)</p><p> {</p><p> if (_scrollingLeft)</p><p> {</p><p> _scrollCounter = 0;</p><p> _scrollingLeft = false;</p><p> _offset--;</p><p> int iPage = _offset / (_columns);</p><p> if ((_offset % (_columns)) != 0) iPage++;</p><p> if (_upDownControl != null) _upDownControl.Value = iPage + 1;</p><p> }</p><p></p><p> if (_cursorX > _scrollStartOffset)</p><p> {</p><p> _cursorX--;</p><p> }</p><p> else if (_cursorX > 0 && _cursorX <= _scrollStartOffset && _offset == 0)</p><p> {</p><p> _cursorX--;</p><p> }</p><p> else if (_cursorX == _scrollStartOffset && _offset != 0)</p><p> {</p><p> _scrollCounter = _itemWidth;</p><p> _scrollingLeft = true;</p><p> }</p><p> else</p><p> {</p><p> base.OnAction(action);</p><p> }</p><p> OnSelectionChanged();</p><p> }</p><p> else if (_upDownControl != null)</p><p> {</p><p> if (_upDownControl.SelectedButton == GUISpinControl.SpinSelect.SPIN_BUTTON_DOWN)</p><p> {</p><p> _upDownControl.Focus = false;</p><p> _listType = GUIListControl.ListType.CONTROL_LIST;</p><p> this.Focus = true;</p><p> }</p><p> else</p><p> {</p><p> _upDownControl.OnAction(action);</p><p> }</p><p> if (!_upDownControl.Focus)</p><p> {</p><p> _listType = GUIListControl.ListType.CONTROL_LIST;</p><p> }</p><p> OnSelectionChanged();</p><p> }</p><p> }</p><p></p><p>------------------------------------------------------------------------------------------</p><p></p><p>thanks</p><p></p><p>Nickola</p></blockquote><p></p>
[QUOTE="nickola, post: 250592, member: 66317"] suggestion for filmstrip view -------------------------------------------------------------------------------- How to make selected thumb fixed in Filmstrip view? Solution tested : Add <scrollOffset>1</scrollOffset> on skin xml files and make this change on GUIFilmstripControl.cs Add------------------------------------------------------------------------------------------------- [XMLSkinElement("scrollOffset")] protected int _scrollStartOffset = 1; Modify------------------------------------------------------------------------------------------------- void OnRight() { Action action = new Action(); action.wID = Action.ActionType.ACTION_MOVE_RIGHT; if (_listType == GUIListControl.ListType.CONTROL_LIST) { if (_scrollingRight) { _scrollingRight = false; _offset++; int iPage = _offset / (_columns); if ((_offset % (_columns)) != 0) iPage++; if (_upDownControl != null) _upDownControl.Value = iPage + 1; } if (_cursorX + 1 + _scrollStartOffset == _columns) { _offset++; if (!ValidItem(_cursorX)) { _offset--; } else if ((_scrollStartOffset !=0) && (!ValidItem(_cursorX + _scrollStartOffset))) { { _offset--; _cursorX++; } OnSelectionChanged(); } else { _offset--; _scrollCounter = _itemWidth; _scrollingRight = true; } OnSelectionChanged(); return; } else { if (ValidItem(_cursorX + 1)) { _cursorX++; } OnSelectionChanged(); } } else if (_upDownControl != null) { if (_upDownControl.SelectedButton == GUISpinControl.SpinSelect.SPIN_BUTTON_UP) { _upDownControl.Focus = false; _listType = GUIListControl.ListType.CONTROL_LIST; this.Focus = true; } else { _upDownControl.OnAction(action); if (!_upDownControl.Focus) { base.OnAction(action); } } OnSelectionChanged(); } } Modify------------------------------------------------------------------------------------------------- void OnLeft() { Action action = new Action(); action.wID = Action.ActionType.ACTION_MOVE_LEFT; if (_listType == GUIListControl.ListType.CONTROL_LIST) { if (_scrollingLeft) { _scrollCounter = 0; _scrollingLeft = false; _offset--; int iPage = _offset / (_columns); if ((_offset % (_columns)) != 0) iPage++; if (_upDownControl != null) _upDownControl.Value = iPage + 1; } if (_cursorX > _scrollStartOffset) { _cursorX--; } else if (_cursorX > 0 && _cursorX <= _scrollStartOffset && _offset == 0) { _cursorX--; } else if (_cursorX == _scrollStartOffset && _offset != 0) { _scrollCounter = _itemWidth; _scrollingLeft = true; } else { base.OnAction(action); } OnSelectionChanged(); } else if (_upDownControl != null) { if (_upDownControl.SelectedButton == GUISpinControl.SpinSelect.SPIN_BUTTON_DOWN) { _upDownControl.Focus = false; _listType = GUIListControl.ListType.CONTROL_LIST; this.Focus = true; } else { _upDownControl.OnAction(action); } if (!_upDownControl.Focus) { _listType = GUIListControl.ListType.CONTROL_LIST; } OnSelectionChanged(); } } ------------------------------------------------------------------------------------------ thanks Nickola [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
suggestion and solution for filmstrip view
Contact us
RSS
Top
Bottom