Table of Contents

Class ViewScope

Namespace
BSGameLib.UI
Assembly
BSGameLib.UI.dll

What one view resolves against besides the game's own: where its images' pictures come from, a prefix its {Localize key} keys are looked up under first, and the game's templates it is built with. For a view from somewhere else -- a server's plugin -- whose words and pictures are its own and must meet neither the game's nor another's.

public sealed class ViewScope
Inheritance
ViewScope
Inherited Members

Properties

LocalizationPrefix

Put before each {Localize key} key, and the key looked up as written when the prefixed one is not there, so a view may use the game's own keys too. Null for none.

public string LocalizationPrefix { get; init; }

Property Value

string

Pictures

What its images' Source names. Null, and a Source draws nothing.

public IViewPictures Pictures { get; init; }

Property Value

IViewPictures

Templates

Templates of the game's own the view is built with, as if it referenced them: the theme a view from somewhere else uses by its resources' names ({Resource theme.surface}), since such a view may reference no template itself. A path as a view's References gives one, found the same way. Null or empty for none.

public IReadOnlyList<string> Templates { get; init; }

Property Value

IReadOnlyList<string>