Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
WidgetUnityChan Class Reference
Inheritance diagram for WidgetUnityChan:
Widget EMono IChangeResolution ISkinRoot

Public Member Functions

override void OnActivate ()
 
void OnDestroy ()
 
void Refresh (float angle)
 
override void OnSetContextMenu (UIContextMenu m)
 
- Public Member Functions inherited from Widget
void Test ()
 
bool IsInRightMode ()
 
void Activate ()
 
void RefreshOrder ()
 
virtual void OnActivate ()
 
virtual object CreateExtra ()
 
void Deactivate ()
 
virtual void OnDeactivate ()
 
void Close ()
 
void Reactivate ()
 
virtual void OnManagerActivate ()
 
virtual void OnManagerDeactivate ()
 
void SetAnchor (RectPosition p)
 
void SetPivot (RectPosition p)
 
virtual void OnChangePivot ()
 
void UpdateConfig ()
 
virtual void OnUpdateConfig ()
 
void ClampToScreen ()
 
virtual void OnChangeResolution ()
 
void OnChangePosition ()
 
virtual void OnChangeActionMode ()
 
virtual void OnFlip ()
 
bool IsAlignTop ()
 
Layer AddLayer (Layer l, Transform trans)
 
void RefreshTipPivotPosition ()
 
SkinSet GetSkin ()
 
SkinConfig GetSkinConfig ()
 
void SetSkin (int id, int v=0)
 
void TestSkin ()
 
virtual void ApplySkin ()
 
virtual void OnApplySkin ()
 
void InstantiateDeco (SkinDeco deco)
 
void AddDeco (SkinDeco deco)
 
void RemoveDeco (SkinDeco deco)
 
virtual bool CanShowContextMenu ()
 
void ShowContextMenu ()
 
void SetBaseContextMenu (UIContextMenu m)
 
virtual void OnSetContextMenu (UIContextMenu m)
 
void SetGridContextMenu (UIContextMenu m)
 
void SoundActivate ()
 
void OnChangeResolution ()
 
SkinSet GetSkin ()
 
SkinConfig GetSkinConfig ()
 

Public Attributes

float angleFix
 
bool up
 
GameObject goWorld
 
GameObject prefabWorld
 
Animator animator
 
Camera cam
 
Vector3 scroll
 
- Public Attributes inherited from Widget
Image imageBG
 
SoundData soundActivate
 
UIDragPanel dragPanel
 
RectTransform tipPivotLeft
 
RectTransform tipPivotRight
 

Static Public Attributes

static WidgetUnityChan Instance
 
- Static Public Attributes inherited from EMono
static Core core
 

Additional Inherited Members

- Public Types inherited from Widget
enum  WidgetType { Default , ZoomMenu }
 
enum  State { Active , Inactive }
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Protected Member Functions inherited from Widget
void ClampToScreenEnsured (Component c, Vector2 anchoredPos)
 
void ClampToScreen (RectTransform rect, float margin=10f)
 
- Protected Attributes inherited from Widget
bool flip
 
- Properties inherited from Widget
string ID [get]
 
Config config [get]
 
SkinRoot skinRoot [get]
 
bool IsSealed [get]
 
virtual bool ShowStyleMenu [get]
 
virtual bool AlwaysTop [get]
 
virtual bool IsStaticPosition [get]
 
virtual bool AlwaysBottom [get]
 
virtual Type SetSiblingAfter [get]
 
virtual bool ShowInBuildMode [get]
 
virtual bool RightClickToClose [get]
 
virtual bool AllowRightClickToClose [get]
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 3 of file WidgetUnityChan.cs.

Member Function Documentation

◆ OnActivate()

override void WidgetUnityChan.OnActivate ( )
inlinevirtual

Reimplemented from Widget.

Definition at line 21 of file WidgetUnityChan.cs.

22 {
23 Instance = this;
24 goWorld = Object.Instantiate(prefabWorld);
25 animator = goWorld.GetComponentInChildren<Animator>();
26 cam = goWorld.GetComponentInChildren<Camera>();
27 }
GameObject prefabWorld
GameObject goWorld
static WidgetUnityChan Instance

References animator, cam, goWorld, Instance, and prefabWorld.

◆ OnDestroy()

void WidgetUnityChan.OnDestroy ( )
inline

Definition at line 29 of file WidgetUnityChan.cs.

30 {
31 Object.DestroyImmediate(goWorld);
32 }

References goWorld.

◆ OnSetContextMenu()

override void WidgetUnityChan.OnSetContextMenu ( UIContextMenu  m)
inlinevirtual

Reimplemented from Widget.

Definition at line 40 of file WidgetUnityChan.cs.

41 {
42 m.AddChild("setting").AddToggle("Up", up, delegate(bool a)
43 {
44 up = a;
45 });
47 }
UIContextMenuItem AddToggle(string idLang="", bool isOn=false, UnityAction< bool > action=null)
UIContextMenu AddChild(string idLang, TextAnchor anchor)
void SetBaseContextMenu(UIContextMenu m)
Definition: Widget.cs:608

References UIContextMenu.AddChild(), UIContextMenu.AddToggle(), Widget.SetBaseContextMenu(), and up.

◆ Refresh()

void WidgetUnityChan.Refresh ( float  angle)
inline

Definition at line 34 of file WidgetUnityChan.cs.

35 {
36 animator.transform.localEulerAngles = new Vector3(0f, angle + angleFix, 0f);
37 cam.fieldOfView = (up ? 6f : 12f);
38 }

References angleFix, and up.

Referenced by AM_Adv.RefreshArrow(), and AM_Region.RefreshArrow().

Member Data Documentation

◆ angleFix

float WidgetUnityChan.angleFix

Definition at line 7 of file WidgetUnityChan.cs.

Referenced by Refresh().

◆ animator

Animator WidgetUnityChan.animator

Definition at line 15 of file WidgetUnityChan.cs.

Referenced by OnActivate().

◆ cam

Camera WidgetUnityChan.cam

Definition at line 17 of file WidgetUnityChan.cs.

Referenced by OnActivate().

◆ goWorld

GameObject WidgetUnityChan.goWorld

Definition at line 11 of file WidgetUnityChan.cs.

Referenced by OnActivate(), and OnDestroy().

◆ Instance

WidgetUnityChan WidgetUnityChan.Instance
static

Definition at line 5 of file WidgetUnityChan.cs.

Referenced by OnActivate(), AM_Adv.RefreshArrow(), and AM_Region.RefreshArrow().

◆ prefabWorld

GameObject WidgetUnityChan.prefabWorld

Definition at line 13 of file WidgetUnityChan.cs.

Referenced by OnActivate().

◆ scroll

Vector3 WidgetUnityChan.scroll

Definition at line 19 of file WidgetUnityChan.cs.

◆ up

bool WidgetUnityChan.up

Definition at line 9 of file WidgetUnityChan.cs.

Referenced by OnSetContextMenu(), and Refresh().


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