Ignore:
Timestamp:
2015-06-26 11:33:28 (8 years ago)
Author:
mijoliim
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/MikkoL/JRPG/JRPG/JRPG/Battle/BattleView.cs

    r6419 r6450  
    1414 
    1515    public _Background Background; 
    16     public Image Background_Image; 
    1716 
    1817    public EnemyGroup _EnemyGroup { get; set; } 
     
    4847    { } 
    4948 
    50     public void LoadBattle(EnemyGroup _Enemies, Image BG_Image) 
    51     { 
    52         Background_Image = BG_Image; 
    53         LoadBattle(_Enemies); 
    54     } 
    55  
    5649    public void LoadBattle(EnemyGroup _Enemies) 
    5750    { 
     
    6255        _EnemyGroup = _Enemies; 
    6356 
    64         Background = new _Background(JRPG.Game.Content.Load<Texture2D>("BG//bg_test")); 
     57        if (OverworldView.CurrentMapData.CurrentMapIndex == "01") 
     58        { 
     59            Background = new _Background(JRPG.Game.Content.Load<Texture2D>("BG//BG_Forest")); 
     60        } 
     61        else if (OverworldView.CurrentMapData.CurrentMapIndex == "02") 
     62        { 
     63            Background = new _Background(JRPG.Game.Content.Load<Texture2D>("BG//BG_Cave")); 
     64        } 
    6565        JRPG.Game.Add(Background, 1); 
    6666 
Note: See TracChangeset for help on using the changeset viewer.