dicespy

package
v0.0.0-...-d592795 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2017 License: MIT Imports: 25 Imported by: 0

README

diceSpy

Roll20 dice rolls transfer to OBS

Usage (on you own risk)

  • Download archive from releases
  • Run chrome with flag --allow-running-insecure-content
  • Install and activate on roll20.net this extension
  • Run diceSpy.exe
  • On roll20 open WebInspector Console (f12)
  • Make roll by every player
  • Type $.getScript('http://127.0.0.1:1323/script') and press enter
  • Use http://127.0.0.1:1323/display/basic as OBS BrowserSource

Configuration

You can write your own html template using this reference

Documentation

Index

Constants

View Source
const (
	Title = int(core.Qt__UserRole) + 1<<iota
	Link
)
View Source
const Description string = "Roll20 dice rolls adapter for OBS"

Description is description

View Source
const Name string = "dicespy"

Name is plugin ID

View Source
const Version string = "0.3.1"

Version is version

Variables

This section is empty.

Functions

func Close

func Close()

func Init

func Init() error

func Serve

func Serve() error

func StartUI

func StartUI(view *qml.QQmlApplicationEngine)

Types

type ConfigStruct

type ConfigStruct struct {
	HistoryCount int `default:"1"`
}

type DsMocBridge

type DsMocBridge struct {
	core.QObject
	// contains filtered or unexported fields
}

type MyTemplate

type MyTemplate struct {
	// contains filtered or unexported fields
}

func (*MyTemplate) Render

func (t *MyTemplate) Render(w io.Writer, name string, data interface{}, c echo.Context) error

type Plugin

type Plugin struct{}

func NewPlugin

func NewPlugin() *Plugin

func (Plugin) Close

func (p Plugin) Close()

func (Plugin) GetDescription

func (p Plugin) GetDescription() string

GetDescription is desc getter

func (Plugin) GetName

func (p Plugin) GetName() string

GetName is name getter

func (Plugin) GetVersion

func (p Plugin) GetVersion() string

GetVersion is version getter

func (Plugin) Init

func (p Plugin) Init() error

func (Plugin) StartUI

func (p Plugin) StartUI(view *qml.QQmlApplicationEngine)

type Roll

type Roll struct {
	Type       string       `json:"type"`
	Rolls      []RollResult `json:"rolls"`
	ResultType string       `json:"resultType"`
	Total      int          `json:"total"`
	Player     string
	Avatar     string
	OrigRoll   string
	Message    string
	Skill      string
	Mod        string
	Results    []struct {
		V int `json:"v"`
	}
}

type RollResult

type RollResult struct {
	Type string `json:"type"`
	Dice int    `json:"dice,omitempty"`
	Fate bool   `json:"fate,omitempty"`
	Mods struct {
	} `json:"mods,omitempty"`
	Sides   int `json:"sides,omitempty"`
	Results []struct {
		V int `json:"v"`
	} `json:"results,omitempty"`
	Expr string `json:"expr,omitempty"`
	Text string `json:"text,omitempty"`
}

type RollWrapper

type RollWrapper struct {
	P string `json:"p"`
	D struct {
		Content  string `json:"content"`
		Avatar   string `json:"avatar"`
		OrigRoll string `json:"origRoll"`
		Playerid string `json:"playerid"`
		Type     string `json:"type"`
		Who      string `json:"who"`
	} `json:"d"`
}

type Template

type Template struct {
	core.QObject
	// contains filtered or unexported fields
}

type TemplateModel

type TemplateModel struct {
	core.QAbstractListModel
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL