Old 23rd July 2017, 23:06   #1
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 294
CornerAmp does not remember corner

This is CornerAmp 1.4 being updated for Winamp 5.6x. Right-clicking on the CornerAmp label in the main window, allows you to select a corner. But the position is not remembered. Why? How can you make the skin remember where you put it last?

CornerAmp 1.5 remembers the positions but it does not auto-snap into the corners and it does not have the jump-to-corner menu either.
Attached Files
File Type: wal CornerAMP-wip.wal (345.2 KB, 21 views)
ariszlo is offline   Reply With Quote
Old 24th July 2017, 09:49   #2
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 294
OK, I have figured it out. It just takes some time to implement it.
ariszlo is offline   Reply With Quote
Old 24th July 2017, 19:00   #3
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 294
wip2

The solution was to replace this stanza:
PHP Code:
if (GetPrivateInt("Corner""LastPos"1) == 0)
{
 
ChangeToCorner(GetPrivateInt("Corner""LastPos"1));
}
else {
ChangeToCorner(1);} 
with this single line:
PHP Code:
ChangeToCorner(GetPrivateInt("Corner""LastPos"1)); 
and to set the top-left corner as the default position.

What I do not understand is why the timer font is smaller in Winamp 5.x than in the screenshots at Customize.org or DeviantArt. The font size definition has not changed since CornerAmp 1.2.
Attached Files
File Type: wal CornerAMP-wip2.wal (345.5 KB, 22 views)
ariszlo is offline   Reply With Quote
Old 24th July 2017, 21:37   #4
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 294
wip3

Stopped thinking on font size and just increased it.
Attached Thumbnails
Click image for larger version

Name:	CornerAmp.png
Views:	26
Size:	36.1 KB
ID:	53395  
Attached Files
File Type: wal CornerAMP-wip3.wal (345.5 KB, 23 views)
ariszlo is offline   Reply With Quote
Old 25th July 2017, 20:04   #5
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 294
wip4

It was a bad idea to add ml.xml. It made skin switching unstable: when I switched to CornerAmp from Winamp Classic, a ghost of Winamp Classics media library remained on screen behind CornerAmp. Removed ml.xml from wip4 to fix the issue.
Attached Files
File Type: wal CornerAMP-wip4.wal (384.9 KB, 22 views)
ariszlo is offline   Reply With Quote
Old 30th July 2017, 21:25   #6
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 294
wip5

Fixed dragging.
Attached Files
File Type: wal CornerAMP-wip5.wal (384.4 KB, 21 views)
ariszlo is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump