monobrowser-core

Render engine for MonoGame


Keywords
Install
Install-Package monobrowser-core -Version 1.0.0

Documentation

MonoBrowser

Render markdown files inside your projects and games!

image

Documenation

Install via Nuget: dotnet add package MonoBrowser --version 0.0.1-alpha

  1. Add component to your game or project
var browserWindow = new Rectangle(10, 10, _graphics.PreferredBackBufferWidth - 20, _graphics.PreferredBackBufferHeight - 20);

var browser = new BrowserComponent(this, browserWindow)
{
    EnableDebug = true,
    EnableScrollbar = true,
    AllowScroll = true,
    DisableImages = false
};

browser.OnLinkClicked += (_, url) =>
{
    // load new page or invoke method inside your game
    Console.WriteLine($"User clicked on: {url}");
};

Components.Add(browser);
  1. Open remote markdown document with browser.Navigate("https://yoursite/readme.md")
  2. Close window with browser.Close()

About

image

  • MonoBrowser - a browser for markdown files (in development) based on MonoBrowser Core.
  • MonoBrowser Core - a lightweight bare minimum browser component & markdown rendering engine written in F# for MonoGame, and adaptable to desktop, mobile, and embedded C#/F# applications.

Support

F# C#

Version

This is alpha version, some markdown tags are missing!

Roadmap

  1. Font dowloading
  2. Styles
  3. Smooth scrolling

Licenses

ImageSharp - allows convert images to PNG and load it to the game

AngleSharp - HTML parser

Markdig - markdown parser

FontStashSharp - fonts and text rendering

Apos Input - events

Inter font - default font