Example #1
0
 public LobbyPanel()
 {
     InitializeComponent();
     gridbg.Fill               = PBO.Elements.SBrushes.GetGridTileBrush(16, SBrushes.NewBrush(0x20ffffff));
     PBOClient.Disconnected   += () => MessageBox.Show("连接到服务器中断。");
     PBOClient.CurrentChanged += PBOClient_CurrentChanged;
     PBOClient_CurrentChanged();
 }
Example #2
0
 static PPShadow()
 {
     WHITE  = SBrushes.NewBrush(0xff707070);
     YELLOW = SBrushes.NewBrush(0xff786000);
     ORANGE = SBrushes.NewBrush(0xff703800);
     RED    = SBrushes.NewBrush(0xff780830);
     C      = new PPShadow();
 }
Example #3
0
 static PPColor()
 {
     WHITE  = SBrushes.NewBrush(0xfff8f8f8);
     YELLOW = SBrushes.NewBrush(0xfff8d000);
     ORANGE = SBrushes.NewBrush(0xfff87000);
     RED    = SBrushes.NewBrush(0xfff80848);
     C      = new PPColor();
 }
Example #4
0
 static BattleTypeBorder()
 {
     c      = new SolidColorBrush[RomData.BATTLETYPES];
     c[0]   = SBrushes.NewBrush(0x80555553); //normal
     c[1]   = SBrushes.NewBrush(0x80562c2d); //fight
     c[2]   = SBrushes.NewBrush(0x802a3f7e); //flying
     c[3]   = SBrushes.NewBrush(0x80552b40); //poison
     c[4]   = SBrushes.NewBrush(0x8054542c); //ground
     c[5]   = SBrushes.NewBrush(0x80543f2c); //rock
     c[6]   = SBrushes.NewBrush(0x80545400); //bug
     c[7]   = SBrushes.NewBrush(0x802b2b53); //ghost
     c[8]   = SBrushes.NewBrush(0x803f3f52); //steel
     c[9]   = SBrushes.NewBrush(0x807f1500); //fire
     c[10]  = SBrushes.NewBrush(0x802a3f69); //water
     c[11]  = SBrushes.NewBrush(0x8040552d); //grass
     c[12]  = SBrushes.NewBrush(0x80695413); //electric
     c[13]  = SBrushes.NewBrush(0x806b2c41); //psychic
     c[14]  = SBrushes.NewBrush(0x803f5469); //ice
     c[15]  = SBrushes.NewBrush(0x803f2a69); //dragon
     c[16]  = SBrushes.NewBrush(0x802a2a13); //dark
     c[17]  = SBrushes.NewBrush(0x807f556c); //fairy
     c2     = new SolidColorBrush[RomData.BATTLETYPES];
     c2[0]  = SBrushes.NewBrush(0xff555553); //normal
     c2[1]  = SBrushes.NewBrush(0xff562c2d); //fight
     c2[2]  = SBrushes.NewBrush(0xff2a3f7e); //flying
     c2[3]  = SBrushes.NewBrush(0xff552b40); //poison
     c2[4]  = SBrushes.NewBrush(0xff54542c); //ground
     c2[5]  = SBrushes.NewBrush(0xff543f2c); //rock
     c2[6]  = SBrushes.NewBrush(0xff545400); //bug
     c2[7]  = SBrushes.NewBrush(0xff2b2b53); //ghost
     c2[8]  = SBrushes.NewBrush(0xff3f3f52); //steel
     c2[9]  = SBrushes.NewBrush(0xff7f1500); //fire
     c2[10] = SBrushes.NewBrush(0xff2a3f69); //water
     c2[11] = SBrushes.NewBrush(0xff40552d); //grass
     c2[12] = SBrushes.NewBrush(0xff695413); //electric
     c2[13] = SBrushes.NewBrush(0xff6b2c41); //psychic
     c2[14] = SBrushes.NewBrush(0xff3f5469); //ice
     c2[15] = SBrushes.NewBrush(0xff3f2a69); //dragon
     c2[16] = SBrushes.NewBrush(0xff2a2a13); //dark
     c2[17] = SBrushes.NewBrush(0xff7f556c); //fairy
 }
Example #5
0
 static BattleTypeBg()
 {
     c     = new SolidColorBrush[RomData.BATTLETYPES];
     c[0]  = SBrushes.NewBrush(0xffdedecf); //normal
     c[1]  = SBrushes.NewBrush(0xffde6a52); //fight
     c[2]  = SBrushes.NewBrush(0xff7ebbff); //flying
     c[3]  = SBrushes.NewBrush(0xffd06abb); //poison
     c[4]  = SBrushes.NewBrush(0xfff4dc69); //ground
     c[5]  = SBrushes.NewBrush(0xffdccd7e); //rock
     c[6]  = SBrushes.NewBrush(0xffccdc2c); //bug
     c[7]  = SBrushes.NewBrush(0xff7f7fdb); //ghost
     c[8]  = SBrushes.NewBrush(0xffcdcddb); //steel
     c[9]  = SBrushes.NewBrush(0xffff552d); //fire
     c[10] = SBrushes.NewBrush(0xff3fbbff); //water
     c[11] = SBrushes.NewBrush(0xff94ea6c); //grass
     c[12] = SBrushes.NewBrush(0xfff8c030); //electric
     c[13] = SBrushes.NewBrush(0xffff6abb); //psychic
     c[14] = SBrushes.NewBrush(0xff93f5ff); //ice
     c[15] = SBrushes.NewBrush(0xff947efd); //dragon
     c[16] = SBrushes.NewBrush(0xff946952); //dark
     c[17] = SBrushes.NewBrush(0xffffcfff); //fairy
 }
Example #6
0
 public void GameLogAppended(string text, LogStyle style)
 {
     if (!style.HasFlag(LogStyle.HiddenAfterBattle))
     {
         if (style.HasFlag(LogStyle.NoBr))
         {
             TextReport.Append(text);
         }
         else
         {
             TextReport.AppendLine(text);
         }
     }
     UIDispatcher.Invoke(() =>
     {
         var align = style.HasFlag(LogStyle.Center) ? TextAlignment.Center : style.HasFlag(LogStyle.EndTurn) ? TextAlignment.Right : TextAlignment.Left;
         var color = SBrushes.GetBrush(style);
         var bold  = style.HasFlag(LogStyle.Bold);
         if (!style.HasFlag(LogStyle.NoBr))
         {
             text = text.LineBreak();
         }
         if (!style.HasFlag(LogStyle.HiddenInBattle))
         {
             RealTime.AddText(text, color, align, bold);
         }
         if (!style.HasFlag(LogStyle.HiddenAfterBattle))
         {
             Full.AddText(text, color, align, bold);
         }
         Nest.AutoScroll();
         if (beginTurn)
         {
             //Nest.nowTurn = new LinkedListNode<TextElement>(currentRealTime.Inlines.Last());
             //Nest.turnsBookmark.AddLast(Nest.nowTurn);
             beginTurn = false;
         }
     });
 }
Example #7
0
 static PokemonEditorView()
 {
     NATUREE = SBrushes.NewBrush(0xffffcccc);
     NATURED = SBrushes.NewBrush(0xff99ccff);
 }