Esempio n. 1
0
 void nudRDungeonFloorEnd_ValueChanged(object sender, SdlDotNet.Widgets.ValueChangedEventArgs e)
 {
     if (nudRDungeonFloorEnd.Value < nudRDungeonFloor.Value)
     {
         nudRDungeonFloor.Value = nudRDungeonFloorEnd.Value;
     }
 }
Esempio n. 2
0
        void nudNewSpecies_ValueChanged(object sender, SdlDotNet.Widgets.ValueChangedEventArgs e)
        {
            Surface sprite = GraphicsManager.GetSpriteSheet(nudSpecies.Value).GetSheet(FrameType.Idle, Enums.Direction.Down);

            picNewSprite.X    = 185;
            picNewSprite.Y    = 120 - sprite.Height / 2;
            picNewSprite.Size = new Size(sprite.Width / 14, sprite.Height);

            picNewSprite.Image = sprite.CreateSurfaceFromClipRectangle(new Rectangle(new Point(3 * picNewSprite.Width, 0), picNewSprite.Size));
        }
Esempio n. 3
0
 void nudGetItem_ValueChanged(object sender, SdlDotNet.Widgets.ValueChangedEventArgs e)
 {
     if (nudGetItem.Value > 0 && nudGetItem.Value < MaxInfo.MaxItems)
     {
         lblGetItem.Text = "Item Bought (" + Items.ItemHelper.Items[nudGetItem.Value].Name + "):";
     }
     else
     {
         lblGetItem.Text = "Item Bought [---]:";
     }
 }
Esempio n. 4
0
        void nudSpecies_ValueChanged(object sender, SdlDotNet.Widgets.ValueChangedEventArgs e)
        {
            Surface sprite = GraphicsManager.GetSpriteSheet(nudSpecies.Value).GetSheet(FrameType.Idle, Enums.Direction.Down);

            picSprite.X    = 175 - sprite.Width / 14;
            picSprite.Y    = 120 - sprite.Height / 2;
            picSprite.Size = new Size(sprite.Width / 14, sprite.Height);

            picSprite.Image = sprite.CreateSurfaceFromClipRectangle(new Rectangle(new Point(3 * picSprite.Width, 0), picSprite.Size));
            //Graphics.Renderers.RenderLocation loc = new Graphics.Renderers.RenderLocation(new Graphics.Renderers.RendererDestinationData(picSprite.Image, new Point(0, 0), picSprite.Size), new Point(0, 0));

            //loc.DestinationSurface.Blit(sprite, loc.DestinationPoint, new Rectangle(new Point(3 * picSprite.Width, 0), picSprite.Size));
            //picSprite.SelectiveDrawBuffer();
            //picSprite.Image = Tools.CropImage(sprite, new Rectangle(new Point(3 * picSprite.Width / 14, 0), picSprite.Size));
        }
Esempio n. 5
0
 void nudRDungeonIndex_ValueChanged(object sender, SdlDotNet.Widgets.ValueChangedEventArgs e)
 {
     lblRDungeonIndex.Text = RDungeons.RDungeonHelper.RDungeons[nudRDungeonIndex.Value - 1].Name;
 }
Esempio n. 6
0
 void nudDexNum_ValueChanged(object sender, SdlDotNet.Widgets.ValueChangedEventArgs e)
 {
     lblDexNum.Text = Pokedex.PokemonHelper.Pokemon[nudDexNum.Value - 1].Name;
 }
Esempio n. 7
0
        //void btnLoadEnemy_Click(object sender, MouseButtonEventArgs e) {
        //    if (lbxMissionEnemies.SelectedIndex > -1) {
        //        nudNpcNum.Value = dungeon.ScriptList.KeyByIndex(lbxMissionEnemies.SelectedIndex);
        //        txtScriptParam.Text = dungeon.ScriptList.ValueByIndex(lbxMissionEnemies.SelectedIndex);
        //    }
        //}

        #endregion

        #region Rewards

        void nudItemNum_ValueChanged(object sender, SdlDotNet.Widgets.ValueChangedEventArgs e)
        {
            lblItemNum.Text = Items.ItemHelper.Items[nudItemNum.Value].Name;
        }