Пример #1
0
 public TradeDialog(DwarfGUI gui, GUIComponent parent, Faction otherFaction, List <ResourceAmount> resources, WindowButtons buttons)
     : base(gui, parent, buttons)
 {
     IsResizeable = false;
     IsDraggable  = false;
     TradePanel   = new TradePanel(GUI, this, PlayState.PlayerFaction, otherFaction, resources)
     {
         WidthSizeMode  = SizeMode.Fit,
         HeightSizeMode = SizeMode.Fit
     };
     TradePanel.OnTraded   += TradePanel_OnTraded;
     TradePanel.OnCanceled += TradePanel_OnCanceled;
 }
Пример #2
0
 public TradeDialog(DwarfGUI gui, GUIComponent parent, Faction otherFaction, WindowButtons buttons)
     : base(gui, parent,buttons)
 {
     TradePanel = new TradePanel(GUI, this, PlayState.PlayerFaction, otherFaction)
     {
         WidthSizeMode = SizeMode.Fit,
         HeightSizeMode = SizeMode.Fit
     };
     TradePanel.OnTraded += TradePanel_OnTraded;
 }