Would it be possible for you to type out exactly what I need for the skin to remember where it was and in which file?
Here is the text from the Rotar main.js file if that is of any help. Maybe you could just delete what isn't necessary. Oh by the way in my skin all it is is a main window. That should make it a little more simpler.
var stateNormal = 1;
var statePressed = 2;
var stateDisabled = 3;
var stateHidden = 4;
var typeButton = 0;
var typePlaceholder = 1;
var typeSlider = 2;
var typeInfoDisplay = 3;
var typePicture = 4;
var stateStopped = 0;
var statePaused = 1;
var statePlaying = 2;
var stateWaiting = 3;
var StatusTimer = 0;
function OnInitialize()
{
if(Metamorphis.LoadSkinState() == false)
{
var x = Player.Left;
var y = Player.Top;
TextWindow.SetWindowPos(x |PLS| 20, y |PLS|190);
Visualization.SetWindowPos(x - 175, y |PLS|100);
EQ.SetWindowPos(x - 101, y -140);
Visualization.ShowWindow(true);
EQ.ShowWindow(true);
TextWindow.ShowWindow(true);
var ButtonEQ = Player.GetSkinItem(typeButton, "ToggleEqualizer");
ButtonEQ.State = statePressed;
ButtonEQ.Tooltip = "Hide Equalizer";
var ButtonVis= Player.GetSkinItem(typeButton, "ToggleVisualization");
ButtonVis.State = statePressed;
ButtonVis.Tooltip = "Hide Visualization";
var ButtonPl = Player.GetSkinItem(typeButton, "TogglePlaylist");
ButtonPl.State = statePressed;
ButtonPl.Tooltip = "Hide Playlist";
Player.GetSkinItem(typeInfoDisplay, "Title").State = stateNormal;
Player.GetSkinItem(typeInfoDisplay, "StatusInfo").State = stateHidden;
}
OnToggleEqState();
OnPlayStateChanged();
}
function OnExit()
{
Metamorphis.SaveSkinState();
}
function OnToggleEqButton()
{
var Button = Player.GetSkinItem(typeButton, "ToggleEqualizer");
if(EQ.IsWindowVisible())
{
EQ.ShowWindow(false);
Button.State = stateNormal;
Button.Tooltip = "Show Equalizer";
}
else
{
EQ.ShowWindow(true);
Button.State = statePressed;
Button.Tooltip = "Hide Equalizer";
}
}
function OnToggleVisualization()
{
var Button = Player.GetSkinItem(typeButton, "ToggleVisualization");
if(Visualization.IsWindowVisible())
{
Visualization.ShowWindow(false);
Button.State = stateNormal;
Button.Tooltip = "Show Visualization";
}
else
{
Visualization.ShowWindow(true);
Button.State = statePressed;
Button.Tooltip = "Hide Visualization";
}
}
function OnTogglePlaylist()
{
var Button = Player.GetSkinItem(typeButton, "TogglePlaylist");
if(TextWindow.IsWindowVisible())
{
TextWindow.ShowWindow(false);
Button.State = stateNormal;
Button.Tooltip = "Show Play List";
}
else
{
TextWindow.ShowWindow(true);
Button.State = statePressed;
Button.Tooltip = "Hide Play List";
}
}
function OnToggleEqState()
{
var EQButton = EQ.GetSkinItem(typeButton, "EQToggle");
if(MJAutomation.GetMJMixer().EQon)
{
EQButton.State = statePressed;
EQButton.Tooltip = "EQ ON";
}
else
{
EQButton.State = stateNormal;
EQButton.Tooltip = "EQ OFF";
}
}
function OnPlayStateChanged()
{
var PlayState = MJAutomation.GetPlayback().State;
var CurPlaylist = MJAutomation.GetCurPlaylist();
var Duration = MJAutomation.GetPlayback().Duration;
if(Duration <= 0 || PlayState == stateStopped)
Player.GetSkinItem(typeSlider, "Position").State = stateDisabled;
else
Player.GetSkinItem(typeSlider, "Position").State = stateNormal;
if(PlayState == statePlaying)
{
Player.GetSkinItem(typeButton, "Play").State = stateDisabled;
Player.GetSkinItem(typeButton, "Stop").State = stateNormal;
Player.GetSkinItem(typeButton, "Pause").State = stateNormal;
}
else if(PlayState == stateStopped)
{
Player.GetSkinItem(typeButton, "Play").State = stateNormal;
Player.GetSkinItem(typeButton, "Stop").State = stateDisabled;
Player.GetSkinItem(typeButton, "Pause").State = stateDisabled;
}
if(CurPlaylist.Position |PLS| 1 >= CurPlaylist.GetNumberFiles())
Player.GetSkinItem(typeButton, "Next").State = stateDisabled;
else
Player.GetSkinItem(typeButton, "Next").State = stateNormal;
if(CurPlaylist.Position > 0 )
Player.GetSkinItem(typeButton, "Previous").State = stateNormal;
else
Player.GetSkinItem(typeButton, "Previous").State = stateDisabled;
}
function OnVolumeChanged()
{
if(StatusTimer > 0) OnStatusTimer();
Player.GetSkinItem(typeInfoDisplay, "Title").State = stateHidden;
Player.GetSkinItem(typeInfoDisplay, "StatusInfo").State = stateNormal;
var asdf = MJAutomation.GetMJMixer().Volume;
var Text = "Volume: " |PLS| asdf |PLS| "%";
Player.GetSkinItem(typeInfoDisplay, "StatusInfo").Text = Text;
StatusTimer = Metamorphis.StartTimer(2000, "OnStatusTimer");
}
function OnBalanceChanged()
{
if(StatusTimer > 0) OnStatusTimer();
Player.GetSkinItem(typeInfoDisplay, "Title").State = stateHidden;
Player.GetSkinItem(typeInfoDisplay, "StatusInfo").State = stateNormal;
var asdf = MJAutomation.GetMJMixer().Balance;
var Text = "Balance: " |PLS| asdf |PLS| "%";
Player.GetSkinItem(typeInfoDisplay, "StatusInfo").Text = Text;
StatusTimer = Metamorphis.StartTimer(2000, "OnStatusTimer");
}
function OnStatusTimer()
{
Metamorphis.StopTimer(StatusTimer);
Player.GetSkinItem(typeInfoDisplay, "Title").State = stateNormal;
Player.GetSkinItem(typeInfoDisplay, "StatusInfo").State = stateHidden;
}