コード例 #1
0
 /// <summary>
 /// Sets the drawing properties, namely rectangle size and position for the current displayed messagebox at the bottom of the screen..
 /// </summary>
 public virtual void Set_MessageBox_Drawing_Properties()
 {
     try
     {
         Mod_Menu_MessageBox_Properties = DirectX_Menu_Methods.Get_Menu_Size_Location_Message(this.Mod_Menu_MessageBox_Strings.ToArray(), 50.0F, 80.0F, Program.Sonic_Heroes_Overlay.direct2DWindowTarget, Program.Sonic_Heroes_Overlay.overlayWinForm);
     }
     catch { }
 }
コード例 #2
0
 /// <summary>
 /// Sets the current message to be displayed in the messagebox.
 /// </summary>
 /// <param name="Message"></param>
 public virtual void Set_MessageBox_Message(List <string> Message)
 {
     try
     {
         // Obtain current selection.
         Mod_Menu_MessageBox_Strings    = Message;
         Mod_Menu_MessageBox_Properties = DirectX_Menu_Methods.Get_Menu_Size_Location_Message(Mod_Menu_MessageBox_Strings.ToArray(), 50.0F, 80.0F, Program.Sonic_Heroes_Overlay.direct2DWindowTarget, Program.Sonic_Heroes_Overlay.overlayWinForm);
     } catch { }
 }
コード例 #3
0
 /// <summary>
 /// Converts the coordinates of Rectangle and spits out RawRectangleF
 /// </summary>
 /// <param name="rectangle"></param>
 /// <returns></returns>
 public static RawRectangleF RawRectangle_Get_Text_Location_Message(DirectX_2D_Message_Properties Mod_Menu_Page_Visual_Style, int Loop_Iteration)
 {
     try
     {
         return(new
                SharpDX.Mathematics.Interop.RawRectangleF
                (
                    (int)Mod_Menu_Page_Visual_Style.Rectangle_Menu_DirectX.Left,                                                                                                                     // Left Edge | Make Space Equal to Line Spacing
                    (int)Mod_Menu_Page_Visual_Style.Rectangle_Menu_DirectX.Top + ((int)Mod_Menu_Page_Visual_Style.Line_Spacing) + ((int)Mod_Menu_Page_Visual_Style.Line_Height * Loop_Iteration),    // Top Edge
                    (int)Mod_Menu_Page_Visual_Style.Rectangle_Menu_DirectX.Right,                                                                                                                    // Right Edge | No Text Wrap
                    (int)Mod_Menu_Page_Visual_Style.Rectangle_Menu_DirectX.Top + ((int)Mod_Menu_Page_Visual_Style.Line_Spacing) + ((int)Mod_Menu_Page_Visual_Style.Line_Height * Loop_Iteration + 1) // Bottom Edge | No Text Wrap
                ));
     }
     catch { return(new SharpDX.Mathematics.Interop.RawRectangleF()); }
 }