BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BrawlLib.Internal.ModelEditorSettings Class Reference
Inheritance diagram for BrawlLib.Internal.ModelEditorSettings:

Public Member Functions

 ModelEditorSettings ()
 
 ModelEditorSettings (SerializationInfo info, StreamingContext ctxt)
 
void GetObjectData (SerializationInfo info, StreamingContext context)
 

Static Public Member Functions

static ModelEditorSettings Default ()
 These are the settings that the model viewer will default to the first time it is opened. More...
 

Public Attributes

bool RetrieveCorrAnims
 
bool DisplayExternalAnims
 
bool DisplayNonBRRESAnims
 
bool UseBindStateBox
 
bool UsePixelLighting
 
bool SyncTexToObj
 
bool SyncObjToVIS0
 
bool DisableBonesOnPlay
 
bool Maximize
 
bool GenTansCHR
 
bool GenTansSRT
 
bool GenTansSHP
 
bool GenTansLight
 
bool GenTansFog
 
bool GenTansCam
 
bool DisplayBRRESAnims
 
bool SnapToColl
 
bool FlatBoneList
 
bool BoneListContains
 
bool HideMainWindow
 
bool SavePosition
 
int _width
 
int _height
 
int _posX
 
int _posY
 
uint _rightPanelWidth
 
uint _undoCount
 
ImageType _imageCapFmt
 
ARGBPixel _orbColor
 
ARGBPixel _lineColor
 
ARGBPixel _lineDeselectedColor
 
ARGBPixel _floorColor
 
ARGBPixel _bgColor
 
ARGBPixel _stgBgColor
 
string _screenCapPath
 
string _liveTexFolderPath
 
List< ModelPanelViewportInfo_viewports
 

Constructor & Destructor Documentation

◆ ModelEditorSettings() [1/2]

BrawlLib.Internal.ModelEditorSettings.ModelEditorSettings ( )
inline
123 {
124 }

◆ ModelEditorSettings() [2/2]

BrawlLib.Internal.ModelEditorSettings.ModelEditorSettings ( SerializationInfo  info,
StreamingContext  ctxt 
)
inline
127 {
128 FieldInfo[] fields = GetType().GetFields(); //Gets public fields only
129 foreach (FieldInfo f in fields)
130 {
131 Type t = f.FieldType;
132 f.SetValue(this, info.GetValue(f.Name, t));
133 }
134 }

Member Function Documentation

◆ Default()

static ModelEditorSettings BrawlLib.Internal.ModelEditorSettings.Default ( )
inlinestatic

These are the settings that the model viewer will default to the first time it is opened.

69 {
71 {
72 RetrieveCorrAnims = true,
73 SyncTexToObj = false,
74 SyncObjToVIS0 = false,
75 DisableBonesOnPlay = false,
76 Maximize = false,
77 GenTansCHR = true,
78 GenTansSRT = true,
79 GenTansSHP = true,
80 GenTansLight = true,
81 GenTansFog = true,
82 GenTansCam = true,
85 DisplayBRRESAnims = true,
86 SnapToColl = false,
87 FlatBoneList = true,
88 BoneListContains = false,
89 UseBindStateBox = true,
90 SavePosition = false,
91
92 _imageCapFmt = 0,
93 _undoCount = 50,
94 _orbColor = new ARGBPixel(255, 0, 128, 0),
95 _lineColor = new ARGBPixel(255, 0, 0, 128),
96 _lineDeselectedColor = new ARGBPixel(255, 128, 0, 0),
97 _floorColor = new ARGBPixel(255, 128, 128, 191),
98 _bgColor = new ARGBPixel(255, 230, 230, 250),
99 _stgBgColor = new ARGBPixel(255, 0, 0, 0),
100
101 _viewports = new List<ModelPanelViewportInfo>
102 {
104 //ModelPanelViewport.DefaultFront.GetInfo(),
105 //ModelPanelViewport.DefaultLeft.GetInfo(),
106 //ModelPanelViewport.DefaultTop.GetInfo(),
107 }
108 };
109 foreach (ModelPanelViewportInfo v in s._viewports)
110 {
111 v._backColor = s._bgColor;
112 }
113
114 //s._viewports[0]._percentages = new Vector4(0.0f, 0.5f, 0.5f, 1.0f);
115 //s._viewports[1]._percentages = new Vector4(0.5f, 0.5f, 1.0f, 1.0f);
116 //s._viewports[2]._percentages = new Vector4(0.5f, 0.0f, 1.0f, 0.5f);
117 //s._viewports[3]._percentages = new Vector4(0.0f, 0.0f, 0.5f, 0.5f);
118
119 return s;
120 }
ARGBPixel _stgBgColor
Definition: ViewerSettingsFile.cs:58
bool DisableBonesOnPlay
Definition: ViewerSettingsFile.cs:32
bool Maximize
Definition: ViewerSettingsFile.cs:33
ARGBPixel _lineColor
Definition: ViewerSettingsFile.cs:54
bool GenTansCam
Definition: ViewerSettingsFile.cs:39
bool FlatBoneList
Definition: ViewerSettingsFile.cs:42
bool GenTansFog
Definition: ViewerSettingsFile.cs:38
bool SyncObjToVIS0
Definition: ViewerSettingsFile.cs:31
bool DisplayBRRESAnims
Definition: ViewerSettingsFile.cs:40
bool SyncTexToObj
Definition: ViewerSettingsFile.cs:30
bool GenTansSHP
Definition: ViewerSettingsFile.cs:36
bool SnapToColl
Definition: ViewerSettingsFile.cs:41
bool RetrieveCorrAnims
Definition: ViewerSettingsFile.cs:25
bool GenTansLight
Definition: ViewerSettingsFile.cs:37
ARGBPixel _floorColor
Definition: ViewerSettingsFile.cs:56
ModelEditorSettings()
Definition: ViewerSettingsFile.cs:122
ARGBPixel _orbColor
Definition: ViewerSettingsFile.cs:53
bool DisplayNonBRRESAnims
Definition: ViewerSettingsFile.cs:27
bool BoneListContains
Definition: ViewerSettingsFile.cs:43
bool UseBindStateBox
Definition: ViewerSettingsFile.cs:28
uint _undoCount
Definition: ViewerSettingsFile.cs:50
ARGBPixel _lineDeselectedColor
Definition: ViewerSettingsFile.cs:55
List< ModelPanelViewportInfo > _viewports
Definition: ViewerSettingsFile.cs:63
bool SavePosition
Definition: ViewerSettingsFile.cs:46
bool GenTansCHR
Definition: ViewerSettingsFile.cs:34
bool DisplayExternalAnims
Definition: ViewerSettingsFile.cs:26
ARGBPixel _bgColor
Definition: ViewerSettingsFile.cs:57
ImageType _imageCapFmt
Definition: ViewerSettingsFile.cs:51
bool GenTansSRT
Definition: ViewerSettingsFile.cs:35
static new ModelPanelViewport DefaultPerspective
Definition: modelpanelviewport.cs:1242
ModelPanelViewportInfo GetInfo()
Definition: modelpanelviewport.cs:30
Definition: PixelTypes.cs:16

◆ GetObjectData()

void BrawlLib.Internal.ModelEditorSettings.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)
inline
137 {
138 FieldInfo[] fields = GetType().GetFields(); //Gets public fields only
139 foreach (FieldInfo f in fields)
140 {
141 Type t = f.FieldType;
142 info.AddValue(f.Name, f.GetValue(this));
143 }
144 }

Member Data Documentation

◆ _bgColor

ARGBPixel BrawlLib.Internal.ModelEditorSettings._bgColor

◆ _floorColor

ARGBPixel BrawlLib.Internal.ModelEditorSettings._floorColor

◆ _height

int BrawlLib.Internal.ModelEditorSettings._height

◆ _imageCapFmt

ImageType BrawlLib.Internal.ModelEditorSettings._imageCapFmt

◆ _lineColor

ARGBPixel BrawlLib.Internal.ModelEditorSettings._lineColor

◆ _lineDeselectedColor

ARGBPixel BrawlLib.Internal.ModelEditorSettings._lineDeselectedColor

◆ _liveTexFolderPath

string BrawlLib.Internal.ModelEditorSettings._liveTexFolderPath

◆ _orbColor

ARGBPixel BrawlLib.Internal.ModelEditorSettings._orbColor

◆ _posX

int BrawlLib.Internal.ModelEditorSettings._posX

◆ _posY

int BrawlLib.Internal.ModelEditorSettings._posY

◆ _rightPanelWidth

uint BrawlLib.Internal.ModelEditorSettings._rightPanelWidth

◆ _screenCapPath

string BrawlLib.Internal.ModelEditorSettings._screenCapPath

◆ _stgBgColor

ARGBPixel BrawlLib.Internal.ModelEditorSettings._stgBgColor

◆ _undoCount

uint BrawlLib.Internal.ModelEditorSettings._undoCount

◆ _viewports

List<ModelPanelViewportInfo> BrawlLib.Internal.ModelEditorSettings._viewports

◆ _width

int BrawlLib.Internal.ModelEditorSettings._width

◆ BoneListContains

bool BrawlLib.Internal.ModelEditorSettings.BoneListContains

◆ DisableBonesOnPlay

bool BrawlLib.Internal.ModelEditorSettings.DisableBonesOnPlay

◆ DisplayBRRESAnims

bool BrawlLib.Internal.ModelEditorSettings.DisplayBRRESAnims

◆ DisplayExternalAnims

bool BrawlLib.Internal.ModelEditorSettings.DisplayExternalAnims

◆ DisplayNonBRRESAnims

bool BrawlLib.Internal.ModelEditorSettings.DisplayNonBRRESAnims

◆ FlatBoneList

bool BrawlLib.Internal.ModelEditorSettings.FlatBoneList

◆ GenTansCam

bool BrawlLib.Internal.ModelEditorSettings.GenTansCam

◆ GenTansCHR

bool BrawlLib.Internal.ModelEditorSettings.GenTansCHR

◆ GenTansFog

bool BrawlLib.Internal.ModelEditorSettings.GenTansFog

◆ GenTansLight

bool BrawlLib.Internal.ModelEditorSettings.GenTansLight

◆ GenTansSHP

bool BrawlLib.Internal.ModelEditorSettings.GenTansSHP

◆ GenTansSRT

bool BrawlLib.Internal.ModelEditorSettings.GenTansSRT

◆ HideMainWindow

bool BrawlLib.Internal.ModelEditorSettings.HideMainWindow

◆ Maximize

bool BrawlLib.Internal.ModelEditorSettings.Maximize

◆ RetrieveCorrAnims

bool BrawlLib.Internal.ModelEditorSettings.RetrieveCorrAnims

◆ SavePosition

bool BrawlLib.Internal.ModelEditorSettings.SavePosition

◆ SnapToColl

bool BrawlLib.Internal.ModelEditorSettings.SnapToColl

◆ SyncObjToVIS0

bool BrawlLib.Internal.ModelEditorSettings.SyncObjToVIS0

◆ SyncTexToObj

bool BrawlLib.Internal.ModelEditorSettings.SyncTexToObj

◆ UseBindStateBox

bool BrawlLib.Internal.ModelEditorSettings.UseBindStateBox

◆ UsePixelLighting

bool BrawlLib.Internal.ModelEditorSettings.UsePixelLighting

The documentation for this class was generated from the following file: