Skip to content

.NET utility suite for working with the rc format

License

Notifications You must be signed in to change notification settings

Aurumaker72/RsrcUtilities

Repository files navigation

RsrcUtilities

.NET utility suite for working with the rc format

RsrcUtilities consists of RsrcCore and RsrcArchitect


⚡ Quickstart

  1. Build, then reference RsrcCore

  2. Create a Dialog object

var dialog = new Dialog
{
    Identifier = "IDD_ABOUTBOX",
    Width = 100,
    Height = 100
};
  1. Initialize the Dialog's root node to a control
dialog.Root = new TreeNode<Control>(new Panel
{
   Rectangle = Rectangle.Empty,
   HorizontalAlignment = Alignments.Fill,
   VerticalAlignment = Alignments.Fill
});
  1. Add any controls you desire
dialog.Root.AddChild(new CheckBox()
{
    Identifier = "IDC_EXAMPLE",
    Caption = "Hello World!",
    Rectangle = new Rectangle(0, 0, 80, 40),
    HorizontalAlignment = Alignments.Center,
    VerticalAlignment = Alignments.Center
});
  1. Serialize it to the format of your liking
new RcDialogSerializer().Serialize(new DefaultLayoutEngine().DoLayout(dialog), dialog);
  1. Generate additional information in the format of your liking
new CxxHeaderResourceGenerator().Generate(dialog.Root);

⭐ Goal

The creation of infrastructure to facilitate the design of rc user interfaces without the hassles of legacy abandonware.

RsrcArchitect

.NET dialog designer accompanying RsrcUtilities
Design dialogs with an interactive, simple experience

💡 Features

  • Intuitive camera
    • Click-drag
    • Mouse-wheel zoom
  • Customizable control renderer
    • Test with your own visual styles
    • Bundled:
      • Windows 10
      • Windows 11
  • Smart selection system
    • Reliably select the intended element
  • Z-Ordering system
    • Reorder controls in the dialog editor
  • Multitasking
    • Tabbed navigation system
  • Powerful and dynamic inspector
    • Provides context-aware information
  • Always reactive
    • Everything reacts to changes immediately with your input
  • Smart positioning system
    • Freeform allows freely positioning controls
    • Grid snaps controls to grid points
    • Snap intelligently snaps controls based on other elements (useful for lists and fluid layouts)

Releases

No releases published

Packages

No packages published

Languages