C# Класс ChoiceContent, RPGQuest

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
active bool
alignRightSide bool
characterID int
content GUIContent
doubleClick bool
dragDestination DragOrigin
dragID int
dragLevel int
dragOrigin DragOrigin
dragPadding float
dragPrice int
dragShadowOffset Vector2
dragShadowStyle GUIStyle
dragSkin GUISkin
dragStyle GUIStyle
dragTexture Texture2D
dragType DragType
dragable bool
dropID int
dropType DropType
droptarget bool
halfDrag Vector2
info string
isButton bool
leftLabel MultiContent
leftSize Vector2
rightLabel MultiContent
rightSize Vector2
selectFirst bool
title GUIContent
titleLabel MultiContent
titleSize Vector2

Открытые методы

Метод Описание
ActiveChange ( DialoguePosition, dp, bool newActive ) : bool
CheckClicked ( Vector2 position, float scrollOffsetY, Vector2 offset ) : bool
ChoiceContent ( GUIContent c ) : UnityEngine
ChoiceContent ( GUIContent c, bool a ) : UnityEngine
ChoiceContent ( GUIContent c, bool a, string i ) : UnityEngine
ChoiceContent ( GUIContent c, bool a, string i, GUIContent t ) : UnityEngine
ChoiceContent ( string text ) : UnityEngine
CompareGUIContent ( GUIContent gc1, GUIContent gc2 ) : bool
CreateTextures ( DialoguePosition, dp, int i, int maxCol, ColumnFill colFill, float storedYPos, Vector3 pos, float colWidth, float choiceStartX, float maxRightWidth, bool last, bool center, StatusBar, bar ) : Vector3
DrawDrag ( float xPos, float yPos ) : void
Equals ( ChoiceContent, cc ) : bool
EqualsWithoutActive ( ChoiceContent, cc ) : bool
GetBottomPoint ( ) : Vector2
GetTopPoint ( ) : Vector2
HasTextures ( ) : bool
InitContent ( DialoguePosition dp ) : void
InitContent ( GUIStyle textStyle, GUIStyle shadowStyle, TextPosition textPosition, bool scrollable, bool sf ) : void
SetDrag ( DragType t, DragOrigin o, int id, int ul ) : void
SetDragGUI ( GUISkin s, GUIStyle txt, GUIStyle sh, float p, Vector2 so ) : void
SetDrop ( DropType t, DragOrigin d, int id, int charID ) : void
SetTexture ( Texture2D texture, DialoguePosition dp, Vector4 padding, Vector2 p2Offset, bool selected ) : Texture2D
SetTexture ( Texture2D texture, DialoguePosition dp, bool selected ) : Texture2D
SetTexturePosition ( float x, float y ) : void

Приватные методы

Метод Описание
CalcSize ( MultiContent, mc, Texture img ) : Vector2
CalcSize ( MultiContent, mc, Texture img, GUIStyle textStyle ) : Vector2

Описание методов

ActiveChange() публичный Метод

public ActiveChange ( DialoguePosition, dp, bool newActive ) : bool
dp DialoguePosition,
newActive bool
Результат bool

CheckClicked() публичный Метод

public CheckClicked ( Vector2 position, float scrollOffsetY, Vector2 offset ) : bool
position Vector2
scrollOffsetY float
offset Vector2
Результат bool

ChoiceContent() публичный Метод

public ChoiceContent ( GUIContent c ) : UnityEngine
c GUIContent
Результат UnityEngine

ChoiceContent() публичный Метод

public ChoiceContent ( GUIContent c, bool a ) : UnityEngine
c GUIContent
a bool
Результат UnityEngine

ChoiceContent() публичный Метод

public ChoiceContent ( GUIContent c, bool a, string i ) : UnityEngine
c GUIContent
a bool
i string
Результат UnityEngine

ChoiceContent() публичный Метод

public ChoiceContent ( GUIContent c, bool a, string i, GUIContent t ) : UnityEngine
c GUIContent
a bool
i string
t GUIContent
Результат UnityEngine

ChoiceContent() публичный Метод

public ChoiceContent ( string text ) : UnityEngine
text string
Результат UnityEngine

CompareGUIContent() публичный Метод

public CompareGUIContent ( GUIContent gc1, GUIContent gc2 ) : bool
gc1 GUIContent
gc2 GUIContent
Результат bool

CreateTextures() публичный Метод

public CreateTextures ( DialoguePosition, dp, int i, int maxCol, ColumnFill colFill, float storedYPos, Vector3 pos, float colWidth, float choiceStartX, float maxRightWidth, bool last, bool center, StatusBar, bar ) : Vector3
dp DialoguePosition,
i int
maxCol int
colFill ColumnFill
storedYPos float
pos Vector3
colWidth float
choiceStartX float
maxRightWidth float
last bool
center bool
bar StatusBar,
Результат Vector3

DrawDrag() публичный Метод

public DrawDrag ( float xPos, float yPos ) : void
xPos float
yPos float
Результат void

Equals() публичный Метод

public Equals ( ChoiceContent, cc ) : bool
cc ChoiceContent,
Результат bool

EqualsWithoutActive() публичный Метод

public EqualsWithoutActive ( ChoiceContent, cc ) : bool
cc ChoiceContent,
Результат bool

GetBottomPoint() публичный Метод

public GetBottomPoint ( ) : Vector2
Результат Vector2

GetTopPoint() публичный Метод

public GetTopPoint ( ) : Vector2
Результат Vector2

HasTextures() публичный Метод

public HasTextures ( ) : bool
Результат bool

InitContent() публичный Метод

public InitContent ( DialoguePosition dp ) : void
dp DialoguePosition
Результат void

InitContent() публичный Метод

public InitContent ( GUIStyle textStyle, GUIStyle shadowStyle, TextPosition textPosition, bool scrollable, bool sf ) : void
textStyle GUIStyle
shadowStyle GUIStyle
textPosition TextPosition
scrollable bool
sf bool
Результат void

SetDrag() публичный Метод

public SetDrag ( DragType t, DragOrigin o, int id, int ul ) : void
t DragType
o DragOrigin
id int
ul int
Результат void

SetDragGUI() публичный Метод

public SetDragGUI ( GUISkin s, GUIStyle txt, GUIStyle sh, float p, Vector2 so ) : void
s GUISkin
txt GUIStyle
sh GUIStyle
p float
so Vector2
Результат void

SetDrop() публичный Метод

public SetDrop ( DropType t, DragOrigin d, int id, int charID ) : void
t DropType
d DragOrigin
id int
charID int
Результат void

SetTexture() публичный Метод

public SetTexture ( Texture2D texture, DialoguePosition dp, Vector4 padding, Vector2 p2Offset, bool selected ) : Texture2D
texture Texture2D
dp DialoguePosition
padding Vector4
p2Offset Vector2
selected bool
Результат Texture2D

SetTexture() публичный Метод

public SetTexture ( Texture2D texture, DialoguePosition dp, bool selected ) : Texture2D
texture Texture2D
dp DialoguePosition
selected bool
Результат Texture2D

SetTexturePosition() публичный Метод

public SetTexturePosition ( float x, float y ) : void
x float
y float
Результат void

Описание свойств

active публичное свойство

public bool active
Результат bool

alignRightSide публичное свойство

public bool alignRightSide
Результат bool

characterID публичное свойство

public int characterID
Результат int

content публичное свойство

public GUIContent content
Результат GUIContent

doubleClick публичное свойство

public bool doubleClick
Результат bool

dragDestination публичное свойство

public DragOrigin dragDestination
Результат DragOrigin

dragID публичное свойство

public int dragID
Результат int

dragLevel публичное свойство

public int dragLevel
Результат int

dragOrigin публичное свойство

public DragOrigin dragOrigin
Результат DragOrigin

dragPadding публичное свойство

public float dragPadding
Результат float

dragPrice публичное свойство

public int dragPrice
Результат int

dragShadowOffset публичное свойство

public Vector2 dragShadowOffset
Результат Vector2

dragShadowStyle публичное свойство

public GUIStyle dragShadowStyle
Результат GUIStyle

dragSkin публичное свойство

public GUISkin dragSkin
Результат GUISkin

dragStyle публичное свойство

public GUIStyle dragStyle
Результат GUIStyle

dragTexture публичное свойство

public Texture2D dragTexture
Результат Texture2D

dragType публичное свойство

public DragType dragType
Результат DragType

dragable публичное свойство

public bool dragable
Результат bool

dropID публичное свойство

public int dropID
Результат int

dropType публичное свойство

public DropType dropType
Результат DropType

droptarget публичное свойство

public bool droptarget
Результат bool

halfDrag публичное свойство

public Vector2 halfDrag
Результат Vector2

info публичное свойство

public string info
Результат string

isButton публичное свойство

public bool isButton
Результат bool

leftLabel публичное свойство

public MultiContent leftLabel
Результат MultiContent

leftSize публичное свойство

public Vector2 leftSize
Результат Vector2

rightLabel публичное свойство

public MultiContent rightLabel
Результат MultiContent

rightSize публичное свойство

public Vector2 rightSize
Результат Vector2

selectFirst публичное свойство

public bool selectFirst
Результат bool

title публичное свойство

public GUIContent title
Результат GUIContent

titleLabel публичное свойство

public MultiContent titleLabel
Результат MultiContent

titleSize публичное свойство

public Vector2 titleSize
Результат Vector2