コード例 #1
0
ファイル: Painting.cs プロジェクト: justdanofficial/khaeros
 public static void ChangeID( Painting painting, int index )
 {
     switch( index )
     {
         case 0: painting.ItemID = 9229; painting.Index = 0; break;
         case 1: painting.ItemID = 9230; painting.Index = index; break;
         case 2: painting.ItemID = 9231; painting.Index = index; break;
         case 3: painting.ItemID = 9232; painting.Index = index; break;
         case 4: painting.ItemID = 9235; painting.Index = index; break;
         case 5: painting.ItemID = 9236; painting.Index = index; break;
         case 6: painting.ItemID = 9233; painting.Index = index; break;
         case 7: painting.ItemID = 9234; painting.Index = index; break;
         case 8: painting.ItemID = 3744; painting.Index = index; break;
         case 9: painting.ItemID = 3745; painting.Index = index; break;
         case 10: painting.ItemID = 3746; painting.Index = index; break;
         case 11: painting.ItemID = 3785; painting.Index = index; break;
         case 12: painting.ItemID = 3815; painting.Index = index; break;
         case 13: painting.ItemID = 3784; painting.Index = index; break;
         case 14: painting.ItemID = 3743; painting.Index = index; break;
         case 15: painting.ItemID = 3749; painting.Index = index; break;
         case 16: painting.ItemID = 3750; painting.Index = index; break;
         case 17: painting.ItemID = 3751; painting.Index = index; break;
         case 18: painting.ItemID = 3752; painting.Index = index; break;
         case 19: painting.ItemID = 9229; painting.Index = 0; break;
     }
 }
コード例 #2
0
        public PaintingGump( PlayerMobile pm, Painting painting )
            : base(0, 0)
        {
            m_painting = painting;
            m_pm = pm;

            pm.CloseGump( typeof( PaintingGump ) );
            this.Closable=false;
            this.Disposable=false;
            this.Dragable=true;
            this.Resizable=false;

            this.AddPage( 0 );
            this.AddBackground( 54, 31, 400, 383, 9270 );
            this.AddImage( 4, 10, 10440 );
            this.AddImage( 423, 10, 10441 );
            this.AddImage( 180, 50, 29 );
            this.AddLabel( 220, 47, 2010, @"Painting" );
            this.AddButton( 404, 46, 1150, 1152, 0, GumpButtonType.Reply, 0 );
            this.AddBackground( 82, 162, 345, 226, 3500 );
            this.AddButton( 369, 46, 1153, 1155, 1, GumpButtonType.Reply, 0 );

            if( pm.Feats.GetFeatLevel(FeatList.Painter) > 1 )
            {
                this.AddLabel( 123, 176, 0, @"Name:" );
                this.AddTextEntry( 160, 176, 235, 20, 0, 2, @"" + painting.Name );
            }

            if( pm.Feats.GetFeatLevel(FeatList.Painter) > 2 )
            {
                this.AddLabel( 219, 205, 0, @"Description" );
                this.AddTextEntry( 123, 230, 261, 140, 0, 3, @"" + painting.Description );
            }

            this.AddButton( 369, 79, 5533, 5535, 4, GumpButtonType.Reply, 0 );
        }