Exemple #1
0
 public PlayListEntry(Mobile from, MusicBox box)
     : base(10003, 1)
 {
     m_From = from;
     m_Box  = box;
 }
Exemple #2
0
 public PlayListEntry(Mobile from, MusicBox box)
     : base(10003, 1)
 {
     m_From = from;
     m_Box = box;
 }
Exemple #3
0
 public PlayListGump(Mobile from, MusicBox box)
     : base(30, 30)
 {
     from.CloseGump(typeof(PlayListGump));
     m_Box = box;
     m_From = from;
     AddBackground(0, 0, 600, 480, 9400);
     AddPage(0);
     AddHtmlLocalized(250, 10, 180, 20, 1075130, 2124, false, false);
     int Xpos = 26, Ypos = 42;
     int z = 0;
     for (int x = 0; x < 3; x++)
     {
         for (int y = 0; y < 17; y++)
         {
             bool has = (box.HasTrack[z]);
             AddSongEntry(Xpos, Ypos, MusicBox.Locals[z], has ? 177 : 547, z + 100, has);
             Ypos += 20;
             z++;
         }
         Xpos += 200;
         Ypos = 42;
     }
     AddLabel(250, 460, 2124, "Add Songs");
     AddButton(220, 460, 1210, 1210, 99, GumpButtonType.Reply, 0);
 }
Exemple #4
0
 public TurnTimer(Mobile from, double duration, MusicBox box)
     : base(TimeSpan.FromSeconds(duration))
 {
     m_From = from;
     m_Box = box;
     Priority = TimerPriority.TwoFiftyMS;
 }