Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1 from luiges90/master
Browse files Browse the repository at this point in the history
同步耒戈氏的代码
  • Loading branch information
k45399735 committed Aug 5, 2013
2 parents 28ec28f + a318ccd commit c7215e0
Show file tree
Hide file tree
Showing 109 changed files with 2,040 additions and 2,762 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal class ConfirmationDialog
internal Point BackgroundSize;
internal Texture2D BackgroundTexture;
private Point DisplayOffset;
private IPersonTextDialog iPersonTextDialog;
private Itupianwenzi iPersonTextDialog;
private ISimpleTextDialog iSimpleTextDialog;
private bool isShowing;
private Texture2D NoDisplayTexture;
Expand Down Expand Up @@ -102,7 +102,7 @@ private void screen_OnMouseRightDown(Point position)
this.IsShowing = false;
}

internal void SetPersonTextDialog(IPersonTextDialog iPersonTextDialog)
internal void SetPersonTextDialog(Itupianwenzi iPersonTextDialog)
{
this.iPersonTextDialog = iPersonTextDialog;
this.iSimpleTextDialog = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void SetGraphicsDevice(GraphicsDevice device)
this.LoadDataFromXMLDocument(@"GameComponents\ConfirmationDialog\ConfirmationDialogData.xml");
}

public void SetPersonTextDialog(IPersonTextDialog iPersonTextDialog)
public void SetPersonTextDialog(Itupianwenzi iPersonTextDialog)
{
this.confirmationDialog.SetPersonTextDialog(iPersonTextDialog);
}
Expand Down
17 changes: 16 additions & 1 deletion DixingBianjiqi/GameTextures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,22 @@ public void LoadTextures(GraphicsDevice device, GameScenario scenario)
{
animation.Device = device;
animation.TextureFileName = "Resources/Effects/TileEffect/" + animation.Name + ".png";
animation.SoundPath = "GameSound/Animation/" + animation.Name + ".wav";
try
{
animation.MaleSoundPath = "GameSound/Animation/Male/" + animation.Name + ".wav";
}
catch
{
animation.MaleSoundPath = "GameSound/Animation/" + animation.Name + ".wav";
}
try
{
animation.FemaleSoundPath = "GameSound/Animation/Female/" + animation.Name + ".wav";
}
catch
{
animation.FemaleSoundPath = "GameSound/Animation/" + animation.Name + ".wav";
}
}
}
catch (Exception exception8)
Expand Down
1 change: 1 addition & 0 deletions DixingBianjiqi/zhuyouxipingmu/MGSContextMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ private void HandleContextMenuResult(ContextMenuResult result)
case ContextMenuResult.AllEnter:
this.CurrentArchitecture.AllEnter();
this.Plugins.AirViewPlugin.ReloadTroopView();
this.Scenario.ClearPersonStatusCache();
break;

case ContextMenuResult.DateGo_1Day:
Expand Down
8 changes: 4 additions & 4 deletions DixingBianjiqi/zhuyouxipingmu/MGSDate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@ private void Date_OnSeasonChange(GameSeason season)
switch (season)
{
case GameSeason.:
this.PlayMusic("GameMusic/Spring.wma");
this.PlayMusic("GameMusic/Spring.mp3");
break;

case GameSeason.:
this.PlayMusic("GameMusic/Summer.wma");
this.PlayMusic("GameMusic/Summer.mp3");
break;

case GameSeason.:
this.PlayMusic("GameMusic/Autumn.wma");
this.PlayMusic("GameMusic/Autumn.mp3");
break;

case GameSeason.:
this.PlayMusic("GameMusic/Winter.wma");
this.PlayMusic("GameMusic/Winter.mp3");
break;
}

Expand Down
8 changes: 4 additions & 4 deletions GameFormFramePlugin/GameFormFramePlugin/GameFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,6 @@ private void screen_OnMouseLeftDown(Point position)
this.CancelButtonState = FrameButtonState.Normal;
}
}
if ((this.frameContent.MapViewSelectorButtonEnabled && StaticMethods.PointInRectangle(position, this.mapviewselectorButtonRectangle)) && (this.frameContent.MapViewSelectorFunction != null))
{
this.frameContent.MapViewSelectorFunction();
}
}
}

Expand Down Expand Up @@ -275,6 +271,10 @@ private void screen_OnMouseLeftUp(Point position)
this.Result = FrameResult.Cancel;
this.IsShowing = false;
}
if ((this.frameContent.MapViewSelectorButtonEnabled && StaticMethods.PointInRectangle(position, this.mapviewselectorButtonRectangle)) && (this.frameContent.MapViewSelectorFunction != null))
{
this.frameContent.MapViewSelectorFunction();
}
}
}

Expand Down
Loading

0 comments on commit c7215e0

Please sign in to comment.