コード例 #1
0
ファイル: ScrollBinder.cs プロジェクト: nogu3ira/xrunuo
        private void OnTargetScrollBinder(Mobile from, ScrollBinder scroll)
        {
            if (scroll == this)
            {
                return;
            }

            if (m_ScrollType != scroll.ScrollType || m_Skill != scroll.Skill || m_Value != scroll.Value)
            {
                // This scroll does not match the type currently being bound.
                from.SendLocalizedMessage(1113143);
            }
            else
            {
                Total += scroll.Total;

                CheckCompleted(from);

                int rest = m_Total - m_Required;

                if (rest > 0)
                {
                    scroll.Total = rest;
                }
                else
                {
                    scroll.Delete();
                }
            }
        }
コード例 #2
0
ファイル: ScrollBinder.cs プロジェクト: nogu3ira/xrunuo
            public BindSotWarningGump(ScrollBinder binder, ScrollOfTranscendence toBound)
                : base(340, 340)
            {
                m_Binder  = binder;
                m_ToBound = toBound;

                AddPage(0);

                AddBackground(0, 0, 291, 99, 0x13BE);
                AddImageTiled(5, 6, 280, 20, 0xA40);

                AddHtmlLocalized(9, 8, 280, 20, 1113146, 0x7FFF, false, false);                   // Binding Scrolls of Transcendence
                AddImageTiled(5, 31, 280, 40, 0xA40);

                AddHtmlLocalized(9, 35, 272, 40, 1113147, 0x7FFF, false, false);                   // Binding this SoT will exceed the cap of 5, some points will be lost. Proceed?

                AddButton(215, 73, 0xFB7, 0xFB8, 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(250, 75, 65, 20, 1006044, 0x7FFF, false, false);                   // OK

                AddButton(5, 73, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0);
                AddHtmlLocalized(40, 75, 100, 20, 1060051, 0x7FFF, false, false);                   // CANCEL
            }
コード例 #3
0
ファイル: ScrollBinder.cs プロジェクト: Ravenwolfe/xrunuo
            public BindSotWarningGump( ScrollBinder binder, ScrollOfTranscendence toBound )
                : base(340, 340)
            {
                m_Binder = binder;
                m_ToBound = toBound;

                AddPage( 0 );

                AddBackground( 0, 0, 291, 99, 0x13BE );
                AddImageTiled( 5, 6, 280, 20, 0xA40 );

                AddHtmlLocalized( 9, 8, 280, 20, 1113146, 0x7FFF, false, false ); // Binding Scrolls of Transcendence
                AddImageTiled( 5, 31, 280, 40, 0xA40 );

                AddHtmlLocalized( 9, 35, 272, 40, 1113147, 0x7FFF, false, false ); // Binding this SoT will exceed the cap of 5, some points will be lost. Proceed?

                AddButton( 215, 73, 0xFB7, 0xFB8, 1, GumpButtonType.Reply, 0 );
                AddHtmlLocalized( 250, 75, 65, 20, 1006044, 0x7FFF, false, false ); // OK

                AddButton( 5, 73, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0 );
                AddHtmlLocalized( 40, 75, 100, 20, 1060051, 0x7FFF, false, false ); // CANCEL
            }
コード例 #4
0
ファイル: ScrollBinder.cs プロジェクト: Ravenwolfe/xrunuo
        private void OnTargetScrollBinder( Mobile from, ScrollBinder scroll )
        {
            if ( scroll == this )
                return;

            if ( m_ScrollType != scroll.ScrollType || m_Skill != scroll.Skill || m_Value != scroll.Value )
            {
                // This scroll does not match the type currently being bound.
                from.SendLocalizedMessage( 1113143 );
            }
            else
            {
                Total += scroll.Total;

                CheckCompleted( from );

                int rest = m_Total - m_Required;

                if ( rest > 0 )
                    scroll.Total = rest;
                else
                    scroll.Delete();
            }
        }